What is LessonUp
Search
Channels
Log in
Register
‹
Return to search
OOP mentore week 9
Welcome!
1 / 16
next
Slide 1:
Slide
Natuurkunde
Middelbare school
This lesson contains
16 slides
, with
interactive quizzes
and
text slide
.
Start lesson
Save
Share
Print lesson
Items in this lesson
Welcome!
Slide 1 - Slide
Static binding happens at runtime
A
True
B
False
Slide 2 - Quiz
Java allows multiple inherintance
A
True
B
False
Slide 3 - Quiz
Using Optional<> avoid all NullPointerExceptions
A
True
B
False
Slide 4 - Quiz
You can add a char to a ArrayList<Characters>
(without getting exceptions)
A
True
B
False
Slide 5 - Quiz
Writing good tests guarantees a program will not crash
A
True
B
False
Slide 6 - Quiz
Which interpretation of the keyword abstract is false?
A
Making a class abstract means that all of its methods should be abstract
B
Making a class abstract means that it cannot be instantiated
C
A concrete subclass must implement abstract methods in its parent
Slide 7 - Quiz
Which is not a valid way to start a new thread?
A
Extend the class Thread and call .start() on an instance of this class
B
Create a Thread with a lambda as argument and call .start()
C
Implement the interface Runnable and call .run()
Slide 8 - Quiz
Which of the following cannot be caught in a catch block?
A
StackOverflowError
B
IOException
C
ArrayIndexOutOf BoundsException
Slide 9 - Quiz
When attempting to cast between incompatible types...
A
The program will not compile
B
The program will raise an exception on runtime
C
The incompatible fields will be filled with null
Slide 10 - Quiz
Which statement about BufferedReader and Scanner is false?
A
Scanner can be used to read from an InputStream
B
A BufferedReader is a reader that takes a reader as an argument
C
BufferedReader can only read a single character at a time
Slide 11 - Quiz
Which is true?
A
This method does not compile
B
This method will raise an ArrayIndexOutOf BoundsExcpetion
C
This method will raise a NullPointException
D
This method will work without problema
Slide 12 - Quiz
A
CoffeeMachine extends Machine and Grinder extends CoffeeMachine
B
CoffeeMachine extends Machine and CoffeeMachine implements Ginder as interface
C
CoffeMachine extends Machine and Grinder is attribute of CoffeMachine by use of composition
D
CoffeeMachine extends Machine but not relation between CoffeeMachine and Grinder (they don't share properties)
Slide 13 - Quiz
Which is
true?
A
The test does not compile
B
The test passes
C
The test fails
D
The test leads to a runtime exception
Slide 14 - Quiz
What is
the outcome?
A
The program does not compile
B
18
C
36
D
54
Slide 15 - Quiz
Which
is true?
A
The program does not compile
B
A runtime exception occurs
C
"A pair of animals" is printed
D
"A pair of coatis" is printed
Slide 16 - Quiz
More lessons like this
Summer Holiday
June 2023
- Lesson with
39 slides
Engels
Voortgezet speciaal onderwijs
Leerroute 3
CCNA1-ITNv7-H8
June 2020
- Lesson with
18 slides
ICT
MBO
Studiejaar 1
PLUSLES ENGELS WEEK 10
March 2021
- Lesson with
30 slides
Engels
Middelbare school
havo
Leerjaar 1
Practice Test - Ghost Story Reader
June 2022
- Lesson with
40 slides
Engels
Middelbare school
havo, vwo
Leerjaar 4
Lesweek 5 - Bufferweek
September 2024
- Lesson with
15 slides
Applicatie- en mediaontwikkelaar
MBO
Studiejaar 1
Les tweedejaars luchtvaarttechniek (1e in januari)
January 2023
- Lesson with
19 slides
Engels
MBO
Studiejaar 2
Week 7 O18 les 1 | Passive form grammar
February 2023
- Lesson with
11 slides
Engels
Middelbare school
havo
Leerjaar 4
Agile marketing Quiz (en)
March 2022
- Lesson with
29 slides
Communication & multimedia design
HBO
Studiejaar 2