Font size
WorksheetsOOP Kuiz 1
Total questions: 12
Worksheet time: 12mins
Who is founder Java language in the early 1990s?
A. James Gosling
B. Dennis Ritchie
C. Ken Thompson
D. Bjarne Stroustrup
What is object?
A. A group of class
B. An instance of class
C. Static and cannot modify
D. Holding both data and functions
Which of the following is NOT the name of a Reserved Word?
A. Static
B. run
C.Main
D. char
4.Which of the following statement is CORRECT?
A. Every statement in a program must end with a semicolon
B. Every line in a program must end with a semicolon
C. Every class must end with a semicolon
D. Every comment line must end with a semicolon
Select the CORRECT statement that describes a run-time error occur when…
A program compiles successfully and block the program
A compiler detects violation of language syntax rules
A program compiles unsuccessful and dies not execute
A program compiles successfully but encounter an error during execution
Which are the main THREE features of OOP concept?
A. Abstraction, Encapsulation, Inheritance and Polymorphism
B. Inheritance, Encapsulation, Class and Persistence
C.Abstraction, Polymorphism, Class and Constructor Inheritance
D. Encapsulation, Object and Typing are the major concept
What is the value of the following expression:
A. 7
B. 8
C. 9
D. 10
Choose the CORRECT output from the block code in figure above :
A. Under
B. Over
C. Under the limit
D. the limit
What attributes do all real world object have?
A. Objects have identity, state and behaviour
B. Object have state and behaviour
C. Object have size and weight
D.Object have existence
Which of the following is CORRECT ?
A.String alpha (“Hello Quiz!”);
B. String = “Hello Quiz!”;
C. String alpha = new “Hello Quiz!”;
D. String alpha = “Hello Quiz”;
Identify the class name, the attributes and the behaviours of the class below in relevant UML/boxes of the class diagram
The following program show how to accepts input from command line and calculate the sum of three input number. Complete the code snippet above :
