Python Inputs

Python Inputs

6th - 10th Grade

11 Qs

quiz-placeholder

Similar activities

Pythonkod

Pythonkod

6th - 8th Grade

7 Qs

Introduction to Programming

Introduction to Programming

9th - 12th Grade

16 Qs

Quiz- Grade 7 & 8- Python (2nd term)

Quiz- Grade 7 & 8- Python (2nd term)

7th Grade

8 Qs

IGCSE Computer Science - Chapter 9: Problem-Solving and Design

IGCSE Computer Science - Chapter 9: Problem-Solving and Design

9th - 10th Grade

10 Qs

Python - Variables and Input

Python - Variables and Input

1st - 10th Grade

16 Qs

APCSA - Unit 3

APCSA - Unit 3

9th - 12th Grade

10 Qs

Big Idea 3

Big Idea 3

9th - 12th Grade

15 Qs

# REVIEW 1 DATA TYPES

# REVIEW 1 DATA TYPES

10th Grade

15 Qs

Python Inputs

Python Inputs

Assessment

Quiz

Computers

6th - 10th Grade

Hard

Created by

Thomas Martinez

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will this python code do?

print("Hello, World")

Display Hello, World

Sent a message to our printer to print Hello, World in a paper

Display "Hello, World"

Nothing its syntax is wrong

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

how do we assign to the variable x a value of 5?

var x = 5;

var x = 5

x = 5

(x) == 5

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Whats wrong with the script below?

print(a+b)

a = 5

b = 10

The program doesn' t now what a and b is.

The print function should be print("a+b")

The print function should be print(a + b)

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

click the correct input statement:

name=int(input("Enter name")

name=input(Enter name)

name=input("Enter your name:")

print=input("Enter your name")

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Assign a string to a variable named food

food=pizza

pizza=food

pizza="food"

food="pizza"

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

why will the following script won't work?

user_input1 = input("Enter a number: ")

user_input2 = input("Enter a second number: ")


print(user_input1 + user_input2)

Because variables cannot be longer than 1 word

Because user_input1 and user_input2 is a string

Because input is an invalid function

Because python will always thing that it has to add 1+2

It will work

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

When we get an input what type of variable is it?Examble:

input_var = input("Input: ")

float

string

int

key

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?