
APP Quiz 1

Quiz
•
Computers
•
University
•
Hard
Lakshminarayanan R
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
int x = 5;
if (x++ == 5) {
System.out.println("x was 5");
} else {
System.out.println("x was not 5");
}
System.out.println("x is now " + x);
x was 5, x is now 6
x was not 5, x is now 6
x was 5, x is now 5
x was not 5, x is now 5
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the type of variable ‘b’ and ‘d’ in the following Java snippet?
int a[], b;
int []c, d;
‘b’ and ‘d’ are int
‘b’ and ‘d’ are arrays of type int
‘b’ is int variable; ‘d’ is int array
‘d’ is int variable; ‘b’ is int array
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output?
5 and Class B
10 and Class A
5 and Class A
10 and Class B
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java program?
Compilation error
Runtime error
5 6 5 6
5 6 5
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a type of polymorphism in Java Programming?
Multiple polymorphism
Compile time polymorphism
Multilevel polymorphism
Execution time polymorphism
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the result of the following code?
Static method
Instance method
Compilation error
Runtime error
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of this ?
1
120
0
125
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
C++ Puntatori

Quiz
•
University
10 questions
Python - Functions

Quiz
•
University
6 questions
Java Method Overloading

Quiz
•
University
14 questions
Quiz z Pythona

Quiz
•
11th Grade - University
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
10 questions
BCSC0006 - Quiz 1 - Arrays

Quiz
•
University
10 questions
Diseño de programas en C

Quiz
•
University
12 questions
C++ Basics (1)

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University