Recursion Contest

Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Herman Galioulline
Used 29+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
1234
4321
12344321
43211234
Many digits are printed due to infinite recursion.
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
words.remove(0);
printRightToLeft(words);
words.remove(words.size());
printRightToLeft(words);
words.remove(words.size() - 1);
printRightToLeft(words);
printRightToLeft(words);
words.remove(0);
printRightToLeft(words);
words.remove(words.size() - 1);
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
int val = maximum(data, start);
int val = maximum(data, start - 1);
int val = maximum(data, start + 1);
int val = maximum(data[start - 1], start);
int val = maximum(data[start + 1], start);
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The variable total should be initialized to 1.
The variable x should be initialized to 0.
The condition in the while loop header should be x < n - 1.
The condition in the while loop header should be x <= n.
No change is required; the methods, as currently written, return the same values when they are called with the same positive integer parameter n.
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
I only
II only
III only
II and III only
I, II, and III
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
1
3
4
5
7
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
-1
5
6
7
8
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz 16 - Arrays and Loops

Quiz
•
11th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
12 questions
Arrays Intro

Quiz
•
9th - 12th Grade
10 questions
Quiz 15 - Array Basics

Quiz
•
11th Grade
10 questions
Trắc nghiệm: Bài 18-Các lệnh vào ra đơn giản

Quiz
•
10th Grade
15 questions
Python Basics

Quiz
•
KG - University
13 questions
Unit 4 AP CSA Review

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade