python Intro

python Intro

6th - 8th Grade

8 Qs

quiz-placeholder

Similar activities

Word 2016 Basics - Saving Document, Page Layout, Header & Foot

Word 2016 Basics - Saving Document, Page Layout, Header & Foot

7th Grade

10 Qs

History of computer

History of computer

6th - 8th Grade

10 Qs

Practical Summative Assessment G7-C

Practical Summative Assessment G7-C

7th Grade

10 Qs

HARDWARE AND SOFTWARE

HARDWARE AND SOFTWARE

2nd - 10th Grade

10 Qs

Revision Quiz 2 - Information Technology

Revision Quiz 2 - Information Technology

7th - 8th Grade

10 Qs

TIK kelas 6

TIK kelas 6

6th Grade

10 Qs

Kodu- grade 6 test

Kodu- grade 6 test

6th Grade

10 Qs

brain storming and mind maps

brain storming and mind maps

6th Grade

10 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?

Discover more resources for Computers