Object Oriented Programming with Java
ToledoSlackGitHub Org 1GitHub Org 2
Primary version
Primary version
  • About this Course
  • Introduction to Computer Programming
    • Introduction to Computer Programming
    • Challenges
    • Multiple Choice
  • Basic Building Blocks
    • Basic Building Blocks
    • Challenges
    • Multiple Choice
  • Starting in Java
    • Starting in Java
    • Challenges
    • Multiple Choice
  • Storing and Processing Data
    • Storing and Processing Data
    • Challenges
    • Multiple Choice
  • Making Decisions
    • Making Decisions
    • Challenges
    • Test Yourself
    • Multiple Choice
  • Loop Constructs
    • Loop Constructs
    • Challenges
    • Multiple Choice
  • Strings
    • Strings
    • Challenges
    • Multiple Choice
  • Arrays
    • Arrays
    • Challenges
    • Multiple Choice
  • Object Oriented Thinking
    • Object Oriented Thinking
  • All About Objects
    • All About Objects
    • Multiple Choice
  • Defining Classes
    • Defining Classes
    • Challenges
    • Multiple Choice
  • Methods
    • Methods
    • Challenges
    • Multiple Choice
  • Constructors
    • Constructors
    • Multiple Choice
  • Inheritance
    • Inheritance
  • Starting with JavaFX
    • Starting with JavaFX
  • Hands On
    • Hands on MQTT
    • Hands on GSON
  • Hack @ IT
    • Hack @ IT
    • Caesar Encryption
      • Solution
    • Complex Numbers
  • Assignments
    • Number Characteristics
    • Linear Equation
    • LineSegment
  • Videos
    • Videos
  • Sources
    • Sources
Powered by GitBook
On this page
  1. Starting in Java

Multiple Choice

  1. What is the entry point of a Java application ?

  2. What is common use of a Hello World application ?

  3. How do we call a line of code that performs a specific action and is terminated with a semicolon ?

  4. Code in main() is placed between ...

  5. When we expect a positive integral value from the user and he/she inputs a negative number, than this may lead to a ...

  6. When we want to add double quotes inside our string that is outputted to the terminal we need to make use of ...

     Hello, my name is "Nico De Witte"
  7. What code statement can be used to output our name and age to the terminal as shown below ?

     Hello, my name is Nico and I am 32 years of age.
  8. The rectangle's (process step) in a flowchart will often map on ... in Java.

  9. When we forget to place a curly brace than we create a ...

  10. How do we call \n, \t, \r ?

  11. How do we call a piece/line of code as shown below?

    System.out.println("Single line of code here");
    int number = 15;
    double size = number * 3.3;
  12. What is not a use of creating a basic "Hello World" application?

  13. When we forget to place a semicolon ; at the end of a statement, then we create a ...

  14. What is the problem with the code below?

    public static void main(String[] args) {
        int sum;
        System.out.println("Sum = " + sum);
    }
  15. Suppose you write an application that needs to generate a list of numbers between 0 and 100 (both inclusive, so [0, 100]). However, the application generates values 100 exclusive, so [0, 100[. De app does run without crashing. What kind of error did you make?

  16. What is the problem with the code below?

    public static void main(String[] args) {
      int numberOfPeople = 15;
      System.out.println(There are + numberOfPeople + in the building);  
    }
  17. What is the result of the following statement?

    System.out.println("The total is " + 88 + 12 + " euro.");
PreviousChallengesNextStoring and Processing Data

Last updated 5 years ago