What is the purpose of the readLine() function?

Test on readLine() Function and Variables

Flashcard
•
Information Technology (IT)
•
9th Grade
•
Easy
Quizizz Content
Used 1+ times
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
To gather input from the user.
2.
FLASHCARD QUESTION
Front
In the following code, what will the output be if the user enters “Pizza”?
var food = readLine(Favorite food: );
println(“You like” + food + “!”);
Back
You like Pizza!
3.
FLASHCARD QUESTION
Front
A variable is required to store data collected using the readLine() function.
Back
True
4.
FLASHCARD QUESTION
Front
User input collected with readLine() can only store numbers.
Back
False
5.
FLASHCARD QUESTION
Front
Explain how you used readLine() in the Mad Lib Story Pt. 2 Exercise to make your program interactive.
Back
To change the story of the main character and name of book.
6.
FLASHCARD QUESTION
Front
What is the proper function to call to print to the screen?
Back
println
7.
FLASHCARD QUESTION
Front
There are three basic types of variables. Which of the following is NOT one of them? number, boolean, string, array
Back
array
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
STAAR Strategy flashcards 1

Flashcard
•
9th Grade
10 questions
Irregular Verbs

Flashcard
•
10th Grade
6 questions
Första världskriget

Flashcard
•
7th - 9th Grade
12 questions
Khan Academy JavaScript

Flashcard
•
8th Grade
9 questions
Graphic Programming Basics Flashcard

Flashcard
•
9th Grade
10 questions
Combining Sentences Flashcard

Flashcard
•
9th Grade
5 questions
Post-test Active and Passive Voice

Flashcard
•
9th Grade
14 questions
6.1.1 JavaScript Flashcard

Flashcard
•
8th Grade
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