Python for Beginners (Module 3.1): Reading user input

Python for Beginners (Module 3.1): Reading user input

7th Grade

21 Qs

quiz-placeholder

Similar activities

Python Quiz 2.1

Python Quiz 2.1

6th - 8th Grade

22 Qs

Python Quiz

Python Quiz

7th Grade

18 Qs

Python - Year 9 - Homework 1

Python - Year 9 - Homework 1

7th - 9th Grade

25 Qs

Python Assessment

Python Assessment

7th Grade

20 Qs

Class 8A Unit 9.1 Python Basic

Class 8A Unit 9.1 Python Basic

6th - 8th Grade

20 Qs

Introduction to Python programming

Introduction to Python programming

6th - 8th Grade

20 Qs

Python

Python

6th - 7th Grade

21 Qs

Өткен сабақты қайталау

Өткен сабақты қайталау

7th Grade

20 Qs

Python for Beginners (Module 3.1): Reading user input

Python for Beginners (Module 3.1): Reading user input

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Annie Young

Used 9+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code display?

print("Hello, World!")

Hello World!

Hello, World!

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to print a string in Python?

print(Hello, Python!)

print("Hello, Python!")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you get input from the user in Python?

input = "Enter your name"

name = input("Enter your name")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you get input from the user in Python?

input = name("Enter your name")

name = input("Enter your name")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you get input from the user in Python?

age = input("What is your age? ")

input = ("What is your age? ")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output?

name = input("What is your name? ")

print(f'Hello, {name}')


Assume the user inputs "John".

Hello, John

What is your name? Hello

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print?

print("Python")

print(Python)

Python

"Python"

"python"

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?