
Java Programming Quiz for swapna

Quiz
•
Other
•
University
•
Hard
A Sanjib Kumar Patro
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output? java int a = 10; System.out.println(a++ + ++a);
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 Wayground
15 questions
Java Debugging Questions - M

Quiz
•
University
15 questions
Technoquiz..3

Quiz
•
University
20 questions
Tech-Pictionary Round 1

Quiz
•
University
16 questions
oops

Quiz
•
University
24 questions
Java MCQs on Threads and Exceptions

Quiz
•
University
16 questions
CO KHI ĐIỆN LỰC 1- CHƯƠNG 7( MÁY NÉN CÁNH DẪN)

Quiz
•
University
20 questions
QUIZERIA

Quiz
•
University
20 questions
Java Programming Challenge

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