
MileStone 1 Quiz Set 2
Authored by Prema,Asst.Prof, Chennai
Computers
University
Used 1+ 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
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
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
10 questions
Java Control Flow statements
Quiz
•
University
10 questions
C++ Array Quiz
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
10 questions
Node.js
Quiz
•
University
10 questions
P1_APLab2Quiz_B3B4
Quiz
•
University
15 questions
E-COMMERCE - CHAPTER 3
Quiz
•
University
12 questions
Basic Cloud Computing Concepts Quiz
Quiz
•
University
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
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University