
Test on readLine() Function and Variables
Quiz
•
Information Technology (IT)
•
9th Grade
•
Practice Problem
•
Easy
Isaac Valdez
Used 7+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the readLine() function?
To display output to the user.
To gather input from the user.
To perform calculations.
To store data permanently.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code, what will the output be if the user enters “Pizza”?
var food = readLine(Favorite food: );
println(“You like” + food + “!”);
You like food!
You like Pizza!
You like!
You like Favorite food!
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable is required to store data collected using the readLine() function.
True
False
Only for numbers
Only for strings
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
User input collected with readLine() can only store numbers.
True
False
Only integers
Only decimals
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain how you used readLine() in the Mad Lib Story Pt. 2 Exercise to make your program interactive.
To display the main character.
To change the story of the main character and name of book.
To calculate the score.
To save the game progress.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper function to call to print to the screen?
println
display
show
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
There are three basic types of variables. Which of the following is NOT one of them?
number
boolean
string
array
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
9-sinf (Kompyuter qurilmalari)
Quiz
•
9th Grade
10 questions
Materi Berpikir Komputasional
Quiz
•
9th Grade - University
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
15 questions
Tugas Informatika Kelas 7
Quiz
•
7th Grade - University
15 questions
Table,Image formatting
Quiz
•
5th Grade - University
15 questions
✅ True or False Quiz: Logic Gates
Quiz
•
9th Grade
10 questions
Cyberbezpieczeństwo
Quiz
•
8th Grade - University
15 questions
Sistem Komputer
Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
