
Java Semester Test
Authored by Douglas Ray
Computers
11th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid condition to go in an if statement for Karel?
ballsPresent()
frontIsClear()
leftIsBlocked()
turnLeft()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Say Karel is on a location with one tennis ball. After the following code runs, how many tennis balls will there be at that location?
0
1
2
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?
noBallsPresent()
ballsPresent()
frontIsClear()
takeBall()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why does a programmer indent their code?
Helps show the structure of the code.
Easier for other people to understand.
A key part of good programming style!
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Say you want to write a program to have Karel put down 300 tennis balls. Which control structure would you use?
If Statement
While Loop
For Loop
Nested While Loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program: (Assume the user enters ‘Florence’ then ‘Fernandez’.)
Fernandez Florence
Fernandez
Florence
FlorenceFernandez
Florence Fernandez
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style?
user_age
UserAge
userAge
User age
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
30 questions
แบบทดสอบกลางภาค วิทยาการคำนวณ ม.6
Quiz
•
9th - 12th Grade
40 questions
EE092206
Quiz
•
11th - 12th Grade
40 questions
PBO XI RPL
Quiz
•
11th Grade
30 questions
INTRODUCTION TO APPLICATION SOFTWARE
Quiz
•
1st Grade - University
31 questions
Digital Literacy Chapter 11 Review
Quiz
•
9th - 12th Grade
35 questions
Microsoft Word
Quiz
•
6th - 12th Grade
32 questions
MTA- Windows Operating System 3
Quiz
•
9th - 12th Grade
30 questions
EmTech_Lesson 1 & 2
Quiz
•
11th - 12th Grade
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade