
Test on readLine() Function and Variables
Quiz
•
Information Technology (IT)
•
9th Grade
•
Practice Problem
•
Easy
Isaac Valdez
Used 8+ 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
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
Pengenalan Perangkat Lunak Kelas 7
Quiz
•
7th Grade - University
15 questions
G4-Microprocessors and Their Uses
Quiz
•
4th Grade - University
10 questions
7 класс программирование
Quiz
•
7th Grade - University
15 questions
Quiz Konten Kreator
Quiz
•
9th Grade
10 questions
Understanding Programming Concepts
Quiz
•
9th Grade
10 questions
Data Science Introduction -IX
Quiz
•
9th Grade
15 questions
Computer basics
Quiz
•
7th Grade - University
12 questions
File Compression and Digital Audio/Video Formats
Quiz
•
9th - 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Information Technology (IT)
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
18 questions
SAT Prep: Ratios, Proportions, & Percents
Quiz
•
9th - 10th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
