
OOP evaluation

Quiz
•
Computers
•
University
•
Hard
pubudu s
Used 3+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Example {
public static void main(String[] args) {
String str1 = "hello";
String str2 = "world";
String result = str1 +" "+ str2;
System.out.println(result);
}
}
helloworld
hello world
worldhello
Compilation Error
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What would the new value of A be?
A=5;
System.out.println(A++);
6
3
5
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what's the output of below code?
public static void main(String []args){
int z =50;
System.out.println(x);
m();
}
public static void m(){
int z =55;
System.out.println(x);
}}
55,50
55,55
50,55
50,50
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code output?
int x = 1;
System.out.println(++x);
1
2
compilation error
runtime error
5.
MULTIPLE SELECT QUESTION
30 sec • 2 pts
Which statement(s) are equivalent to i = i + 1?
i += 1
i--
i -= 1
i++
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
If a=10, b=5, c=12
Find result for : 8 * (a + b + c) – a % c
78
206
77
216
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
public class A{
int h =10;
static int p=20;
public static void main(String args[]){
int x =5;
System.out.println(x);
System.out.println(p);
System.out.println(h);
}
}
5,20,Erorr
Error
Error,5,20
5,20,10
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java Quiz set 3

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
10 questions
Talent Next Java MCQ-1

Quiz
•
University
11 questions
Array

Quiz
•
University
10 questions
Temel Java Bilgisi Ölçme Testi

Quiz
•
University
10 questions
java quiz on Encapsulation and Abstraction

Quiz
•
University
16 questions
PSC ALM QUIZ

Quiz
•
University
10 questions
Динамические библиотеки

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