What will be the output? java int a = 10; System.out.println(a++ + ++a);

Java Programming Quiz

Quiz
•
Other
•
University
•
Hard
A Sanjib Kumar Patro
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
21
22
20
23
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid Java keyword?
static
Integer
this
final
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output? java int x = 5; int y = ++x * 2 + x--; System.out.println(y);
13
18
16
12
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following? java String s1 = "Java"; String s2 = new String("Java"); System.out.println(s1 == s2);
true
false
error
null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which concept allows you to use the same method name with different parameters?
Inheritance
Polymorphism
Encapsulation
Abstraction
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed? java String str = "abc"; str.concat("d"); System.out.print(str);
abcd
abc
Error
null
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output be? java int[] a = {1, 2, 3}; System.out.println(a.length);
3
2
4
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Round 2

Quiz
•
University
18 questions
Pemrograman

Quiz
•
University
25 questions
Розробка клієнт-серверних застосувань

Quiz
•
University
15 questions
Tech quiz Round 1

Quiz
•
University
20 questions
Round 1

Quiz
•
University
15 questions
Αντικειμενοστραφής Προγραμματισμός TEST

Quiz
•
University
20 questions
Quanta

Quiz
•
University
18 questions
Repaso Programacion I

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade