Search Header Logo

python quiz1

Authored by nikhil patten

Engineering

University

Used 4+ times

python quiz1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What command is used to display numbers and text on the screen?

print

input

output

command

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a variable?

A box where you store values

a type of graphics

Data type

a type of memory

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What symbol is used in Python to assign values to a variable?

equals =

plus +

forward slash /

asterisk *

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output?
name = 'Dave'
print(name)

Dave

'Dave'

name

(name)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does (10 + 16) equal?

20

22

24

26

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these would work as a piece of code?

IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is input?

A function that allows us to ask the user to enter some data.

To plug in something.

Data displayed on a screen.

A function

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?