Search Header Logo

Basics Python

Authored by Elif Sulun

Computers

8th - 10th Grade

Used 929+ times

Basics Python
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 SELECT QUESTION

30 sec • 1 pt

Which commands might be correct? (Multiple answers)

random. random(1, 10)

print(random.random( ))

print(random. randint(1,10))

import.random(2.7)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define(assign) variables?

var="String"

func==Hello

var : 123

word= Hello

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one does take you to next line?

\t

\n

/n

\\

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Input

Output

Print

Command

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

:

*

=

==

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these would work as a piece of code?

if string="Dove"

if string=="Dove"

IF string="Dove":

if string=="Dove":

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the end after if statements?

if

Elif

Else

While

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?