Test on readLine() Function and Variables

Test on readLine() Function and Variables

9th Grade

10 Qs

quiz-placeholder

Similar activities

Kelas 4 bab-1

Kelas 4 bab-1

4th Grade - University

10 Qs

2.5 Layer 3 Devices

2.5 Layer 3 Devices

9th - 12th Grade

12 Qs

9 КЛАСС 7 урок Основные алгоритмические конструкции и тип данных

9 КЛАСС 7 урок Основные алгоритмические конструкции и тип данных

9th Grade - University

13 Qs

Asesmen Diagnostik Kelas 9

Asesmen Diagnostik Kelas 9

9th Grade

15 Qs

Uticaj računara

Uticaj računara

9th Grade

13 Qs

2.3 Infrastructure & Troubleshooting

2.3 Infrastructure & Troubleshooting

9th - 12th Grade

12 Qs

Fundamentals

Fundamentals

7th Grade - University

12 Qs

Quiz 1-15

Quiz 1-15

9th - 12th Grade

15 Qs

Test on readLine() Function and Variables

Test on readLine() Function and Variables

Assessment

Quiz

Information Technology (IT)

9th Grade

Practice Problem

Easy

Created by

Isaac Valdez

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?

print

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?