Python

Python

Assessment

Flashcard

Computers

KG - Professional Development

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

34 questions

Show all answers

1.

FLASHCARD QUESTION

Front

To create a newline at the end of prompt, you can use which of the following expressions? Options: \new, \n, \break, \return

Back

\n

2.

FLASHCARD QUESTION

Front

What is a variable?

Back

A box(memory location) where you store values.

3.

FLASHCARD QUESTION

Front

What will the output be from the following code?
print("Hello" + str(2) + "world!")?

Back

Hello2world!

4.

FLASHCARD QUESTION

Front

Code repeated / looped until a condition has been met or a set number of times. Options: Sequence, Selection, Iteration, Variable

Back

Iteration

5.

FLASHCARD QUESTION

Front

Decides if a string only contains numbers: isalpha(), int(), string()

Back

isnumeric()

6.

FLASHCARD QUESTION

Front

Tells the interpreter that the code which follows is a function

Back

def

7.

FLASHCARD QUESTION

Front

Python identifies blocks of code by

Back

aligning up the starts of lines (indentation)

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?