Java is a

Q1Programming

Quiz
•
Other
•
University
•
Medium
Omnia Elrashidy
Used 3+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
low-level programming language
not object-oriented (class-based) programming language
functional, imperative and reflective programming language
All the above
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a correct Java program to print "Hello World!" on output ?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for OR comparison in Java?
+
||
==
&&
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
public class Main {
public static void main(String[] args) {
int x = 10;
x++;
System.out.println(x);
} }
10
11
9
Compile-time error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
public class Main {
public static void main(String[] args) {
int x = 10;
int y = 2;
int result = x % y;
System.out.println(result); } }
2
2.5
1
0
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
public class Main {
public static void main(String[] args) {
boolean a = false;
boolean b = false;
boolean result = a || b;
System.out.println(result); } }
true
false
Compile-time error
Runtime error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which operator is used to decrement a variable by one in Java?
++
--
+=
*=
8.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which operator is used for performing string concatenation in Java?
+
-
*
/
Similar Resources on Quizizz
10 questions
Java Quiz

Quiz
•
University
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
10 questions
Algoritma Struktur Data (1)

Quiz
•
University
10 questions
UNIT2_PYTHON

Quiz
•
University
5 questions
Java Quizz

Quiz
•
University
10 questions
B4 - Expressions and Arithmetic Operators

Quiz
•
University
9 questions
Java

Quiz
•
University
10 questions
Java 1

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade