Java Quiz on Monday 7th November

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


  • 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

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s