
HiTech Quiz 6
Authored by Venkatesh iGen
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the output of this program?
0
1
120
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why would you use a base case?
So that the code loops forever
So that the code does not loop forever
Because coding
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
2
3
4
ArrayIndexOutOfBoundsException
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
static void print(int x){
if(x==0) {
return;
}
System.out.print(x%2);
print(x/2);
}
What will be the output of the above code segment if the print() method is called with the parameter 9?
001
100
1001
101
1110
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code segment.
String one = "ABC123";
String two = "C";
String three = "3";
System.out.println(one.indexOf(two));
System.out.println(one.indexOf(three));
System.out.println(two.indexOf(one));
What is printed when the code segment is executed?
2
5
-1
2
5
2
2
6
-1
3
6
-1
-1
-1
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Name the condition at which the recursive method will stop calling itself.
Base case
Worst Case
Best Case
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following condition is true?
Recursion is always better than iteration.
Recursion uses more memory as compared to iteration.
Recursion uses less memory as compared to iteration.
Iteration is always better and simpler than recursion.
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
Excel avanzado
Quiz
•
Professional Development
22 questions
Python basics
Quiz
•
Professional Development
20 questions
Internet 101
Quiz
•
Professional Development
20 questions
Python Programming - Test 1
Quiz
•
University - Professi...
17 questions
WordPress
Quiz
•
Professional Development
20 questions
JavaScript
Quiz
•
Professional Development
18 questions
Almacenamiento de datos
Quiz
•
Professional Development
19 questions
Les disques durs
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development