
Quiz Round-2

Quiz
•
Other
•
University
•
Hard
Nisha Sakthivel
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
1) Find the output of the following code.
Public class Solution{
Public static void main(String args[]){
Int i;
for(i = 1; i < 6; i++){
if(i > 3) continue;
}
System.out.println(i);
}
}
a) 3
b) 4
c) 5
d) 6
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2) Which of the below is valid way to instantiate an array in java?
a) int myArray [] = {1, 3, 5};
b) int myArray [] [] = {1,2,3,4};
c) int [] myArray = (5, 4, 3);
d) int [] myArray = {“1”, “2”, “3”};
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
3) What will be output of below program?
public class Test {
public void main(String[] args) {
int x = 10*20-20;
System.out.println(x);
}
}
a) Runtime Error
b) Prints 180
c) Prints 0
d) Compile-time error
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
4) What is output of the code in Python Language:
>>>strl = 'All the Best'
>>>strl=[-3]
a) ’I’
b) ’e’
c) ’H’
d) ’b’
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
5) What will be the output of the following code :
print type(type(int))
a) type
b) type \ 'type\'
c) 3
d) Error
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
6) time.time() returns ________
a) the current time
b) the current time in milliseconds
c) the current time in milliseconds since midnight, January 1, 1970
d) the current time in milliseconds since midnight, January 1, 1970 GMT (the Unix time)
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
7) What will be the output of the following code snippet?
<script type="text/javascript">
a = 5 + "9";
document.write(a);
</script>
a) Compilation Error
b) 14
c) Runtime Error
d) 59
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
LATIHAN SOAL SBMPTN BAHASA INDONESIA

Quiz
•
University
20 questions
DBMS Quiz Full

Quiz
•
University
20 questions
Логарифмічні рівняння та нерівності

Quiz
•
University
20 questions
Pengujian Hipotesis 1

Quiz
•
University
20 questions
UTS TEKNIK PENULISAN ILMIAH

Quiz
•
University
15 questions
Object Oriented Programming Language Quiz 3

Quiz
•
University
16 questions
CE-424-QUIZ#1

Quiz
•
University
25 questions
C Programming

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University