
EPAM quiz
Authored by karthik kota
Computers
1st - 5th Grade
Used 24+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int x = 0, y = 0 , z = 0 ;
x = (++x + y-- ) * z++;What will be the value of "x" after execution ?
-2
-1
0
1
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
class Numbers{
public static void main(String args[]){
int a=20, b=10;
if((a < b) && (b++ < 25)){
System.out.println("This is any language logic");
}
System.out.println(b);
}
}
12
11
10
Compiler error
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
class LogicalCompare{
public static void main(String args[]){
String str1 = new String("OKAY");
String str2 = new String(str1);
System.out.println(str1 == str2);
}
}
true
false
0
1
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
class Test{
public void display(int x, double y){
System.out.println(x+y);
}
public double display(int p, double q){
return (p+q);
}
public static void main(String args[]){
Test test = new Test();
test.display(4, 5.0);
System.out.println(test.display(4, 5.0));
}
}
9.0 9.0
9 9
Compilation Error
None of these
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
interface A{
public void method1();
}
class One implements A{
public void method1(){
System.out.println("Class One method1");
}
}
class Two extends One{
public void method1(){
System.out.println("Class Two method1");
}
}
public class Test extends Two{
public static void main(String[] args){
A a = new Two();
a.method1();
}
}
Class One method1
Class Two method1
Nothing will be printed
Compilation Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Rectangle{
public int area(int length, int width){
return length*width;
}
}
class Square extends Rectangle{
public int area(long length, long width){
return (int) Math.pow(length, 2);
}
}
public class Test{
public static void main(String args[]){
Square r = new Square();
System.out.println(r.area(5 , 4));
}
}
Will not compile.
Will compile and run printing out 20
Runtime error
Will compile and run printing out 25
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the program?
public class CommandArgsThree
{
public static void main(String [] args)
{
String [][] argCopy = new String[2][2];
int x;
argCopy[0] = args;
x = argCopy[0].length;
for (int y = 0; y < x; y++)
{
System.out.print(" " + argCopy[0][y]);
}
}
}
and the command-line invocation is
> java CommandArgsThree 1 2 3
0 0
1 2
0 0 0
1 2 3
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Formatting in Word
Quiz
•
4th Grade
15 questions
Графы Все темы
Quiz
•
KG - 3rd Grade
10 questions
Technology in Teaching and Learning
Quiz
•
1st Grade
15 questions
Python - тест
Quiz
•
1st - 12th Grade
15 questions
Grasshopper App Quiz
Quiz
•
4th - 6th Grade
11 questions
N4/5 BM - Understanding Business
Quiz
•
3rd Grade
10 questions
Quiz-IoT & Arduino
Quiz
•
1st - 5th Grade
15 questions
N4 Database Design and Development
Quiz
•
3rd Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade