JAVA FUNDAMENTALS

Quiz
•
Education, Other
•
University
•
Hard
Shashank Jain
Used 51+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following can be operands of arithmetic operators?
Numeric
Boolean
Both Numeric & Characters
Characters
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class Output {
public static void main(String args[]) {
int a = 1;
int b = 2;
int c;
int d;
c = ++b;
d = a++;
c++;
b++;
++a;
System.out.println(a + " " + b + " " + c); }
}
3 2 4
3 2 3
2 3 4
2 4 4
3 4 4
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these can be returned by the operator &?
Integer
Boolean
Integer or Boolean
Character
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class comma_operator {
public static void main(String args[]) {
int sum = 0;
for (int i = 0, j = 0; i < 5 & j < 5; ++i, j = i + 1)
sum += i;
System.out.println(sum); }
}
5
4
6
14
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of these can not be used for a variable name in Java?
identifier
identifier & keyword
keyword
none of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java code?
class operators {
public static void main(String args[]) {
int x = 8;
System.out.println(++x * 3 + " " + x); }
}
24 8
24 9
27 9
27 8
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is not an operator in Java?
instanceof
sizeof
>>>=
new
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Dart Final

Quiz
•
University
15 questions
NEW SYMPO Final round

Quiz
•
University
15 questions
Soal Quiz Robotic Kelas 11

Quiz
•
12th Grade - University
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
10 questions
Tokens Lexeme and Pattern

Quiz
•
University
10 questions
First_Year_Orientation

Quiz
•
University
10 questions
Java Single Array Quiz

Quiz
•
University
10 questions
PRUEBA DE JAVA MASTERY

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 Education
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