Flashcard on Object Oriented Programming and Java

Flashcard on Object Oriented Programming and Java

Assessment

Flashcard

Other

University

Practice Problem

Hard

Created by

Wayground 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?