
Quiz Round-2
Authored by Nisha Sakthivel
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
20 questions
General knowledge
Quiz
•
3rd Grade - University
15 questions
Història de l'Infermeria
Quiz
•
University
20 questions
Fantastic beasts The crimes of Grindelwald
Quiz
•
1st Grade - University
15 questions
Football Quiz
Quiz
•
KG - Professional Dev...
20 questions
Materials and Methods and Results Discussions Conclusion Rec
Quiz
•
University
20 questions
Rabelais Gargantua chapitres XLI- L
Quiz
•
10th Grade - University
15 questions
UAS AKUNTANSI MANAJEMEN
Quiz
•
University
20 questions
Staircase
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University