Home > IB Computer Science 2018 > Java Quiz on Monday 7th November

Java Quiz on Monday 7th November

November 3, 2016 Leave a comment Go to comments

Need for and use of data types

  • int
  • double
  • String
  • boolean

Definition example, advantages of: Encapsulation, Polymorphism, Inheritance

  • Creating basic classes
  • instance variables
  • a constructor
  • methods

References and NullPointerExceptions

Basic algorithms and method definition

  • Passing parameters
  • Returning values
  • Basic flow of control (if, for, while)
  • Looping through arrays
  • Standard algorithms such as finding the max of an array, etc

Questions types:

  • Write a method that…
  • Interpret code (and perhaps create trace table)
  • Outline/explain the advantages/disadvantages of…
  • Adding code/variables to a class to change its behaviour, e.g. adding a constructor or encapsulating a variable

Remember

  • Get clues as to the structure of your answer by the number of marks available
  • You can get marks for writing code in longer answer questions
  • If you don’t know the full algorithm, you can still get marks for whatever code you do write
  • What, when, how, why, otherwise
Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s