OOPs Fundamentals

Quiz
•
Computers
•
University
•
Hard
Rajeswari AM
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is true about Java?
Java is a sequence-dependent programming language
Java is a code dependent programming language
Java is a platform-dependent programming language
Java is a platform-independent programming language
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is not a Java feature?
Object-oriented
Use of pointers
Portable
Dynamic and Extensible
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a feature of Java's memory management?
Automatic garbage collection
Manual memory allocation
Static memory allocation
Memory leaks are not possible
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of the Java Virtual Machine (JVM)?
To manage database connections
To provide a graphical user interface
To execute Java bytecode
To compile Java code into bytecode
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following keywords is used to create a class in Java?
define
class
new
object
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java code?
class increment
{
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
32
45
33
22
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare an array in Java?
int[] arr;
int arr{};
array int arr;
int arr[];
Create a free account and access millions of resources
Similar Resources on Wayground
24 questions
java

Quiz
•
University
25 questions
JAVA WEEK 7-12

Quiz
•
University
20 questions
java quiz on exception handling

Quiz
•
University
21 questions
OOP - session 2.1 - JVM, Array, Stack

Quiz
•
University
30 questions
Java Lab

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
25 questions
Java Quiz

Quiz
•
University
21 questions
quiz 2nd/3rd year

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade