Flashcard on Object Oriented Programming and Java

Flashcard on Object Oriented Programming and Java

Assessment

Flashcard

Other

University

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the primary focus of Object-Oriented Programming (OOP)?

Back

Data encapsulation and objects

2.

FLASHCARD QUESTION

Front

Which of the following is NOT a core principle of OOP? Encapsulation, Inheritance, Polymorphism, Compilation

Back

Compilation

3.

FLASHCARD QUESTION

Front

What is the purpose of the 'main' method in a Java program?

Back

To serve as the entry point for execution

4.

FLASHCARD QUESTION

Front

Which Java keyword is used to declare a constant?

Back

final

5.

FLASHCARD QUESTION

Front

What does the 'printf()' method in Java do?

Back

Prints formatted output

6.

FLASHCARD QUESTION

Front

Which of the following is a primitive data type in Java? String, Array, int, Object

Back

int

7.

FLASHCARD QUESTION

Front

What is the output of the following code: System.out.println(5 + 3);?

Back

8

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?