What is the purpose of the readLine() function?

Test on readLine() Function and Variables

Quiz
•
Information Technology (IT)
•
9th Grade
•
Easy
Isaac Valdez
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
10 questions
Network secutiry

Quiz
•
9th Grade - University
15 questions
Campeonato Brasileiro

Quiz
•
9th Grade
15 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
15 questions
ICT G7 Chapter 2.2 Direct Data Entry Devices

Quiz
•
7th Grade - University
15 questions
Lesson 1: System Attacks and External Threats

Quiz
•
9th - 12th Grade
8 questions
IT - Unit 1 - L05 - K8 - Importance of documenting an RIU.

Quiz
•
9th Grade
15 questions
Module 3 - Unity Scripting Basics

Quiz
•
9th - 12th Grade
10 questions
Conhecimentos sobre o App Inventor

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University