Pre Python Assessment

Pre Python Assessment

Assessment

Flashcard

Computers

8th Grade

Hard

Created by

Liam Harber

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

19 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Why should variable names not start with numbers in Python?

Back

Because it is not allowed by the Python syntax

2.

FLASHCARD QUESTION

Front

What is the output of the following code snippet?

Back

Hello

3.

FLASHCARD QUESTION

Front

Which of the following is a correct if statement in Python?

  • if x = 5:
  • if x == 5:
  • if (x == 5)
  • if x := 5

Back

if x == 5:

4.

FLASHCARD QUESTION

Front

What is the purpose of a for loop in Python?

Back

To execute a block of code a fixed number of times

5.

FLASHCARD QUESTION

Front

What is the output of the following code snippet?

Back

4 5 6 7

6.

FLASHCARD QUESTION

Front

Which of the following is a data type in Python? integer, float, string, All of the above

Back

All of the above

7.

FLASHCARD QUESTION

Front

What will be the output of the following code.

Back

25

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?