Search Header Logo

PYTHON SEM1

Authored by Akmal Zahari

Computers

1st Grade

Used 1+ times

PYTHON SEM1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to create an empty list called colours in Python, which of the following is correct?

colours = [ ]

colours = ( )

colours = { }

colours = <>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A box(memory location) where you store values
a type of graphics
Data type
a type of memory

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

equals =
plus + 
forward slash /
asterisk *

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

name = "Dave"

print (name)

Dave

'Dave'

name

(name)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly assigns the string "Tanner" to the variable name?

name  = print( "Tanner")
input("Tanner")
name = "Tanner"
name = input("Tanner")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print function do in python?

It's a variable.
It can input data.

It displays an output

It loops the code.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Python built-in function used to display numbers and text on the screen?

print

input

output

command

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?