Test on readLine() Function and Variables

Test on readLine() Function and Variables

Assessment

Flashcard

Information Technology (IT)

9th Grade

Easy

Created by

Quizizz Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the purpose of the readLine() function?

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?