User Input in Python

User Input in Python

9th Grade

5 Qs

quiz-placeholder

Similar activities

Informatika2

Informatika2

11th Grade

10 Qs

Contadores y Acumuladores

Contadores y Acumuladores

University

10 Qs

Evaluación Tecnología periodo 1 grado 9°

Evaluación Tecnología periodo 1 grado 9°

9th Grade

10 Qs

UAS Praktikum PWL

UAS Praktikum PWL

University

10 Qs

Algoritma

Algoritma

7th Grade - University

10 Qs

Minggu 2 - Pre Test

Minggu 2 - Pre Test

University

10 Qs

SSC Summer Camp Pre-Quiz

SSC Summer Camp Pre-Quiz

9th - 12th Grade

10 Qs

Conhecimentos sobre o App Inventor

Conhecimentos sobre o App Inventor

9th Grade - University

10 Qs

User Input in Python

User Input in Python

Assessment

Quiz

Information Technology (IT)

9th Grade

Medium

Created by

Saifeddin Alghlayini

Used 17+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What function do you need to call to ask the user of the program to enter text?

input()

read()

text()

print()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

After a program takes information from a user, where is this information typically stored?

In a database.

In a variable.

In a separate file.

In the program's output console.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type does input() return by default?

Integer

Float

String (text)

Boolean

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which function can be used to convert a string (text) received from user input into an integer, allowing for mathematical operations?

str()

float()

convert()

int()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line of code correctly stores a number entered by the user?

  • num = input("Enter number: ")

  • num = int(input("Enter number: "))

num = str(input("Enter number: "))

num = float()