
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
Αντικειμενοστραφής Προγραμματισμός TEST

Quiz
•
University
20 questions
CIE-1_DSA:Unit1&Unit2

Quiz
•
University
20 questions
Quanta

Quiz
•
University
18 questions
Pemrograman

Quiz
•
University
15 questions
R programming

Quiz
•
University
20 questions
Android Club Event-1

Quiz
•
University
20 questions
Computer Awareness

Quiz
•
University
15 questions
Tech quiz Round 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University