python Intro

python Intro

6th - 8th Grade

8 Qs

quiz-placeholder

Similar activities

computational thinking year 7

computational thinking year 7

6th - 7th Grade

11 Qs

Blockly Coding Challenge

Blockly Coding Challenge

6th Grade

13 Qs

Sumatif Harian 3

Sumatif Harian 3

7th Grade

12 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

Encryption and Public Keys

Encryption and Public Keys

6th - 8th Grade

8 Qs

ICT Grade 8

ICT Grade 8

8th Grade

10 Qs

Spanish constitution

Spanish constitution

6th Grade

12 Qs

ЭХ 2 модуль

ЭХ 2 модуль

6th - 8th Grade

12 Qs

python Intro

python Intro

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Hard

Created by

Yara Rabea

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the input() function do in Python?

It prints output to the screen.

It takes input from the user.

It stores data in a file.

It checks whether the user input is valid.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code do?

name = input("Enter your name: ")

print("Hello, " + name)

It prints the user's name without greeting.
It greets the user by name.
It stores the name in a variable for later use.
It asks for the user's age.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for taking an input from the user?

readInput()
getInput()
input()
userInput()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of value returned by the input() function?

string
integer
boolean
list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print?

age = input("Enter your age: ")

print("You are " , age , " years old.")

You are years old.
Your age is years.
You are old.
You are years old.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will correctly display the string "Python is fun!"?

console.log('Python is fun!')
print('Python is fun!')
print("Python is fun!")
echo 'Python is fun!'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you ask the user to enter a number and store it in a variable called num?

num = input('Enter a number: ')
num = int(input('Please provide a number: '))
num = 'Please enter a number:'
num = float(input('Please enter a number: '))

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?