
Topic 4.3 Video 1
Authored by Myra Deister
Computers
11th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MATCH QUESTION
1 min • 1 pt
Match each of the following:
Allows us to repeat a task multiple time
for loop
Returns true if two strings are the same
.equals method
returns a portion of a string
.compareTo method
returns the number of characters
substring method
Returns 0 if the strings are equal
.length method
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why did an index out of bounds exception occur?
The index out of bounds exception occurred because the program tried to access a letter using an index that is outside the length of the string.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What was done to debug the index out of bounds error and obtain the correct output?
Adjust the condition of the for loop to stop at the position that is equal to length of word - length of sub
Adjust the condition of the for loop to stop at the position that is less than the length of word - length of sub
Adjust the condition of the for loop to stop at the position that is less than or equal to length of word - length of sub
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed as a result of the following code segment?
for (int k = 0; k < 20; k+=2)
{
if (k % 3 == 1)
System.out.println(k + " ");
}
0 2 4 6 8 10 12 14 16 18
4 16
0 6 12 18
1 4 7 10 13 16 19
4 10 16
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the values of var1 and var2 after the following code segment is executed and the while loop finishes?
int var1 = 0; int var2 = 2;
while ((var2 != 0) && ((var1 / var2) >= 0))
{
var1 = var1 + 1;
var2 = var2 - 1;
}
var1 = 0, var2 = 2
var1 = 1, var2 = 1
var1 = 3, var2 = -1
var1 = 2, var2 = 0
The loop won't finish executing because of a division by zero.
6.
OPEN ENDED QUESTION
3 mins • 1 pt
Upload a screenshot of the last screen of the video. Make sure your name is displayed and the title of the video. There is an example on the left.
Evaluate responses using AI:
OFF
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
Social media influencers
Quiz
•
6th - 12th Grade
10 questions
1.1 - System Architecture - CPU [OCR] [GCSE]
Quiz
•
9th - 12th Grade
10 questions
Паскаль. Основные команды
Quiz
•
8th - 11th Grade
10 questions
Computer Education Grade 3 Volume 4 Quiz
Quiz
•
3rd Grade - University
10 questions
CALL: Causative Verb
Quiz
•
10th - 11th Grade
11 questions
CompTIA A+February27
Quiz
•
11th Grade
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...
Quiz
•
10th Grade - University
10 questions
INTERNET AND INTRANET
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
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
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Los mandatos y las recetas
Lesson
•
11th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade