Which of these cannot be used for a variable name in Java?
JAVA Basics

Quiz
•
Arts
•
University
•
Medium
Jamunadevi T
Used 162+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
identifier & keyword
identifier
keyword
none of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which component is used to compile, debug and execute the java programs?
JRE
JIT
JDK
JVM
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an OOPS concept in Java?
Polymorphism
Compilation
Inheritance
Encapsulation
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these are selection statements in Java?
break
continue
for()
if()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value stored in x in following lines of code?
int x, y, z;
x = 0;
y = 1;
x = y = z = 8;
1
9
8
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
24
23
20
25
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following for loop declaration is not valid?
for ( int i = 99; i >= 0; i / 9 )
for ( int i = 7; i <= 77; i += 7 )
for ( int i = 20; i >= 2; - -i )
for ( int i = 2; i <= 20; i = 2* i )
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
BANKSY

Quiz
•
University
10 questions
Święta - Wigilijne zagadki

Quiz
•
1st Grade - University
13 questions
Mengenal Huruf ABC

Quiz
•
University
11 questions
Folklor naszych sąsiadów

Quiz
•
1st Grade - University
15 questions
POZYTYWIZM

Quiz
•
12th Grade - University
10 questions
Difference between c and c++ and java

Quiz
•
University
12 questions
Epoki literackie cz. I

Quiz
•
8th Grade - University
11 questions
W świecie Pani Dulskiej

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