Search Header Logo

8.1-Python-input and print

Authored by Serkan Oektem

Computers

9th - 12th Grade

Used 18+ times

8.1-Python-input and print
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command (function) is used to prompt the user to enter data?

print ()

enter ()

insert ()

input ()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the right use of input function?

input X

X = input ()

input () = X

X , input ()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The insert () function allows the user to enter data.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

input ("Enter your name: ") is an invalid statement.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

name = input ("Enter your name: ") is an invalid statement.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, any type of user input, text or numbers, is a string (text) value by default.

True

False

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

score = int (input ("Score"))

Which of the following is/are true? (choose all applicable)

int () is unnecessary addition to input command if a numeric data is entered

int () ensures numeric input is converted to integer

if the user enters a non-numeric data, the program craashes

if the user enters a non-numeric data, the program rejects the input

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?