Java Fundamentals Challenge

Quiz
•
Computers
•
University
•
Medium
Veeraswamy D
Used 1+ times
FREE Resource
53 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main principle of Object-Oriented Programming?
Data encapsulation only
Single inheritance only
Encapsulation, inheritance, polymorphism, and abstraction.
Static typing only
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a Java data type?
integer
float
boolean
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to create a class in Java?
class
function
create
define
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an int variable in Java?
-1
1
0
null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which control structure is used to execute a block of code repeatedly?
Loop
Function
Variable
Condition
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'try' block in exception handling?
The purpose of the 'try' block is to catch exceptions that may occur during code execution.
To define a function in Python.
To declare variables in a program.
To optimize code performance.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is inheritance in the context of Object-Oriented Programming?
Inheritance allows a subclass to inherit attributes and methods from a superclass, enabling code reuse and establishing a class hierarchy.
Inheritance is a method for creating new classes without any relationship to existing ones.
Inheritance is the process of deleting attributes from a class.
Inheritance allows a class to operate independently without any parent class.
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Test 1 (class,object,constructor,this)

Quiz
•
University
50 questions
Java Test4

Quiz
•
University
50 questions
RESTful API exam

Quiz
•
University
52 questions
Final Exam - Introduction to Computing

Quiz
•
University
50 questions
selenium mock test - 2/5/19 - 15:43

Quiz
•
University - Professi...
50 questions
html css and javascript

Quiz
•
University
50 questions
SKILL QUIZ

Quiz
•
University
50 questions
WEBKA

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University