python basic 3

python basic 3

6th - 8th Grade

27 Qs

quiz-placeholder

Similar activities

ICT - HTML

ICT - HTML

6th - 7th Grade

25 Qs

Скреч

Скреч

5th - 7th Grade

24 Qs

Microsoft Server Admin 98-365 Part 3

Microsoft Server Admin 98-365 Part 3

KG - Professional Development

22 Qs

ICT 7 Quiz #1

ICT 7 Quiz #1

7th Grade

24 Qs

Projetos RUP (Fase de Iniciação)

Projetos RUP (Fase de Iniciação)

1st - 12th Grade

22 Qs

Համակարգչային ցուցադրություններ

Համակարգչային ցուցադրություններ

8th Grade

22 Qs

Computer Pretest1(Arduino Grade8_t1)

Computer Pretest1(Arduino Grade8_t1)

3rd Grade - University

25 Qs

Year 8 January review

Year 8 January review

8th Grade

23 Qs

python basic 3

python basic 3

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Medium

Created by

Bijimol Rajesh

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.What is the purpose of the if statement in Python?

Stops the loop from repeating again

Allows the user to input an answer

Activates a set of code if a condition is met

Provides a variable its value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2.What does the command print() do in Python?

Provides a variable its value

Outputs a string

Stops the loop from repeating again

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.What is the purpose of the print command in Python?

Store a value

Display words on the screen

Repeat a given command

Stop a loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.What does the while loop in Python do?

Runs once

Stops a loop

Continues the loop as long as a condition is true

Imports a library

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.What is the function of the import command?

Imports a random number

Imports the random module

Imports a random string

Imports a loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6.Which of the following is an example of a variable declaration in Python?

import random

var = 2

print("Hello")

if answer == "yes":

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7.What will be the output of the following code?

print("Hello, World!")

Hello, World!

"Hello, World!"

Error

none

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?