
MileStone 1 Quiz Set 2
Quiz
•
Computers
•
University
•
Hard
Prema,Asst.Prof, Chennai
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct?
128 >> 1 gives
32
64
-64
-32
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Both class Error and class Exception are children of this parent:
Throwable
Catchable
Runnable
Problem
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Here is an abstract method defined in the parent:
public abstract int sumUp(int[] arr);
Which of the following is required in a non-abstract child?
public abstract int sumUp(int[] arr){…}
public int sumUp( int[] arr){….}
public double sumUp ( int [] arr){….}
public int sumUp( long[] arr){…..}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the code below:
interface MyInterface{
void doSomething();
}
class MyClass implements MyInterface {
//xx
}
Choose the valid option that can be substituted in place of xx in the MyClass class
public void doSomething();
void doSomething() {/* valid code fragments */}
private void doSomething () {/*valid code fragments */}
protected void doSomething() {/*valid code fragments */}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
compile-time error at line 1
compile-time error at line 2
An attempt to run A from the command line fails
An attempt to run B from the command line fails
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class TestLiterals{
public static void main(String[] args){
float f1 = 2.0;
float f2 = 4.0f;
float result = f1 * f2;
System.out.println(result);
}
}
What is the output?
A value which is exactly 8.0
Compilation error at line 3
Compilation error at Line 4
Compilation error at Line 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following,
class Dogs{
public String toString(){
return “theDogs”;
}
}
public class TestDogs{
public static void main(String[] args){
Dogs [][] dogs = new Dogs[3][];
System.out,println(dogs[2][0].toString());
}
}
What is the result?
null
theDogs
Compilation fails
NullPointerException is thrown at runtime
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
TIU Quiz-4
Quiz
•
University
10 questions
Taller SQL
Quiz
•
University
10 questions
Objektumok kezelése, hozzáférés szabályozás, ..
Quiz
•
University
10 questions
Quiz on OOPs- Day 1 (30-01-2025)
Quiz
•
University
15 questions
Quiz 1
Quiz
•
University
12 questions
Cuadros de dialogo con JOptionPane
Quiz
•
University
15 questions
NFA, DFA Definition
Quiz
•
University
15 questions
Array - Data Structures
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
