Python Basics

Python Basics

8th Grade

22 Qs

quiz-placeholder

Similar activities

Python Review Quiz

Python Review Quiz

7th - 9th Grade

20 Qs

Python 1

Python 1

7th - 9th Grade

20 Qs

Programming Techniques Survey

Programming Techniques Survey

8th - 12th Grade

19 Qs

Introduction to Python Programming

Introduction to Python Programming

8th - 9th Grade

17 Qs

Python Module

Python Module

6th - 10th Grade

20 Qs

Python basics

Python basics

2nd - 9th Grade

20 Qs

Intro to Python

Intro to Python

6th - 8th Grade

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Bijimol Rajesh

Used 4+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.A player wants to remove the space between the variable name and the text when printing. Which of the following is correct?

print('Hello', name + '.')

print('Hello' "name")

print('Hello' name + '.')

print("Hello', name + '.')

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2.A variable name can start with a number.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.The player needs to guess the number. Which of the following code snippets is correct?

pick = input('What is your guess?') 

     num-pick = int(pick)

pick == input('What is your guess?') 

    num_pick = int(pick)

pick = input(“what is your guess’) 

     num_pick = int(pick)

pick = input('What is your guess?') 

    num_pick = int(pick)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.What is a string in Python?

A data type used for numbers

A sequence of characters

A Boolean value

A type of loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.Which of the following is the correct syntax to define a variable in Python?

name : 'value'

value => name

name = ('value')

value = "name"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6.What is the purpose of the else keyword in Python?

To declare a function

To handle code when the if condition is False

To define a loop

To import a module

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7.Why do you need to use penup() in Turtle graphics?

To refill the pen’s ink

To undo the drawing

To stop the drawing without leaving marks

All of the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?