Java Basics
Control Statements
Object Oriented Programming
Data Types
Algorithms
100

This keyword is used to define a class in Java.

What is 'class'?

100

This is the simplest kind of loop in Java, commonly called a "for loop".

What is 'for (initialization; termination; increment)'?

100

This principle of OOP restricts direct access to some of an object's components.

What is 'encapsulation'?

100

This data structure allows elements to be added and removed in a last-in-first-out manner.

What is 'stack'?  

100

This searching algorithm repeatedly halves the search space and requires the list to be sorted.

What is binary search?

200

Single Line comment

What is //

200

This keyword is used to exit a loop immediately.

What is 'break'?

200

This keyword is used to inherit properties and behaviors from another class.

What is 'extends'?

200

Primitive data type that can hold whole numbers, not fractions

What is 'int'?

200

This sorting algorithm compares adjacent elements and swaps them if they’re out of order, continuing until the list is sorted.

What is bubble sort?

300

This is the method signature for the main method in a Java application.

What is 'public static void main(String[] args)'?

300

This control structure is used to handle multiple cases based on a variable's value.


What is 'switch'?

300

This feature of OOP allows a method to perform different functionality depending on the object that invokes it.

What is 'polymorphism'?

300

A sequence of characters, used to store text.

What is a "String"?

300

This type of algorithm solves a problem by calling itself with a smaller input.

What is a recursive algorithm?


400

This is used in Java to create a constant variable, its value cannot be changed after assignment.

What is 'final'?

400

This type of loop continues until its condition evaluates to false.

What is 'while' loop?

400

This is the relationship defined when one class uses one or more objects from another class as its components.

What is 'composition'?

400

Primative Data Types

What is byte, short, long, int, float, double, boolean, and char?

400

This type of algorithm optimizes problems by making the locally optimal choice at each stage.

What is 'greedy algorithm'?

500

This is the syntax for instantiating a new object in Java.

What is 'new ClassName()'?

500

This loop is guaranteed to execute at least once before checking its loop condition.

What is 'do-while' loop?

500

This OOP principle is violated when a child class must call a method to function correctly that isn't part of its declared interface.

What is 'Liskov substitution principle'?

500

 Defines a contract for classes to implement, specifying a set of methods.


What is Interfaces?

500

his strategy breaks a problem into smaller subproblems, solves them independently, and then combines the results.

What is divide and conquer?

M
e
n
u