Want to create interactive content? It’s easy in Genially!
Java Loops MYSTERY BREAKOUT
Kimberly Ingraham-Be
Created on October 31, 2024
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Adventure Breakout
View
Team Building Mission Escape Game
View
Onboarding Escape Game
View
Christmas Escape Room
View
Flags Challenge
View
Museum Escape Room
View
Education Escape Room
Transcript
Java Coding Presents
Mystery Breakout
Start
Intro
You have entered a dark and unknown world from which you have to get out before it's too late and you will be locked in forever. Use your Java skills to break out!
Continue
Mission 1
Locked
Locked
Locked
Answer the question and you will find out the address of the following scenario
What is the proper line of code in order for me to print out "Hello world" on the SAME line?
System.out.printLN("Hello"); System.out.printLN("World");
System.out.print("Hello"); System.out.print("World");
System.out.println("Hello"); System.out.println("World");
What is the purpose of the initializing expression in a for loop?
To increment or decrement the variable
To tell us how to start the loop
To specify the condition
Mission 2
Completed
Locked
Locked
Drag and discover
Which is the correct way to type a for loop?
for(int j = 0; j<100; j++)
for(int j = 0, j++, j<100)
for(j = 0; j++; j<100)
Which is the correct way to code a do while loop?
do { }while(j < 5);
do { }while(j < 5)
do while(j < 5) { }
Mission 3
Completed
Completed
Locked
What is the command to exit out of a loop structure (like a for loop, switch statement, etc)
exit;
stop;
break;
Which is the sign for boolean OR?
&&
OR
||
How many times will this for loop execute?
20
Infinite loop
21
for(int j = 0; j <= 20; j++)
Remember the code
216
Continue
Completed
Completed
Completed
Mission 4
What is the difference between a while loop and a for loop?
The initializing expression are moved
A while loop checks the condition before
A while loop is more efficient
What is the minimum number of times a while loop will execute?
Infinite
It depends on the condition
14+3
Continue
You have reached the last mission 🎉 Do you know what the code is?
Enter the password
Congratulations, you made it out!
Wrong answer!
Try again