Search Header Logo

Python

Authored by Ioana Boiu

Professional Development

9th - 12th Grade

Used 3+ times

Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Insert the code boxes in the correct position in the order to build a line of code witch asks the user for an integer value and assings it to the counter variable-Python

counter = input('Enter an integer value: ')
counter = input(int('Enter an integer value: '))
counter = int('Enter an integer value: ')
1. counter = int(input('Enter an integer value: '))

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Whitch of the following expresion evaluate to a non-zero result?-Python

Any non-zero number or non-empty string
The result of 1 + 1
An empty string
Only the number 0

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A program written in a hight-level programming language is called..

low-level programming language
binary code
machine code
source code

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Arrange the binary numeric operators in the order whitch reflects their priorities: ** , /,-

(a)  

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

menu={"sarmale":20.6 , "cozonac":40.3 , "pui":12.56}

for value in menu.items():

print(value[1],end="")

20.640.312.56

aou

Error

002

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

colectie=[]

colectie.append(1)

colectie.insert(0,2)

dublura=colectie[:]

dublura.append(3)

print(colectie+dublura)

[2,1,2,1,3]

[2,1,3,2,1,3]

Sintax error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following Python code?

numbers = [1, 2, 3]

numbers.append(4)

numbers.extend([5, 6])

print(numbers)

[1, 2, 3, 4, 5, 6]

[1, 2, 3, 4, [5, 6]]

[1, 2, 3, 4, (5, 6)]

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development