Quiz on Object Oriented Programming and Java

Quiz
•
Other
•
University
•
Medium
C Kumar
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary focus of Object-Oriented Programming (OOP)?
Data encapsulation and objects
Sequential execution of code
Functions and procedures
Global data management
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a core principle of OOP?
Encapsulation
Inheritance
Polymorphism
Compilation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'main' method in a Java program?
To create objects
To handle exceptions
To serve as the entry point for execution
To define class properties
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java keyword is used to declare a constant?
const
static
immutable
final
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'printf()' method in Java do?
Prints formatted output
Reads user input
Compiles Java code
Handles exceptions
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a primitive data type in Java?
String
Array
int
Object
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: System.out.println(5 + 3);?
8
5 + 3
53
Error
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java set 1

Quiz
•
University
10 questions
Diagnóstico Tópicos Avanzados de Programación.

Quiz
•
University
15 questions
Αντικειμενοστραφής Προγραμματισμός TEST

Quiz
•
University
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
Quanta

Quiz
•
University
10 questions
Java

Quiz
•
University
20 questions
Android Club Event-1

Quiz
•
University
15 questions
Tech quiz Round 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University