Python Training - Basics

Python Training - Basics

Professional Development

10 Qs

quiz-placeholder

Similar activities

PLAL Agile Onboarding

PLAL Agile Onboarding

Professional Development

10 Qs

Exam Prep 1

Exam Prep 1

Professional Development

10 Qs

Google Meet - Exit Quiz

Google Meet - Exit Quiz

Professional Development

10 Qs

Kali Linux Quiz 2

Kali Linux Quiz 2

Professional Development

10 Qs

PDSB 210622

PDSB 210622

University - Professional Development

10 Qs

CS332_8051 Viva

CS332_8051 Viva

12th Grade - Professional Development

15 Qs

How Well Do You Them?

How Well Do You Them?

Professional Development

10 Qs

Python Data Structures & Statements

Python Data Structures & Statements

Professional Development

11 Qs

Python Training - Basics

Python Training - Basics

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Nathan Swain

Used 4+ times

FREE Resource

AI

Enhance your content

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following code is an example of which data type in Python:

x = [ 1, 2, 3]

Array

List

Tuple

Dictionary

Answer explanation

Lists are created using square brackets [].

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following code is an example of which Python data type:

x = {"a": 1, "b": 2}

Array

List

Tuple

Dictionary

Answer explanation

The curly braces {} give it away, this is an example of a Dictionary.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Spaces are not important in Python.

True

False

Answer explanation

Spacing is very important in Python. Indenting code indicate blocks of code. The best practice is to indent using 4 spaces.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which character is used to start a Python comment?

#

/

!

-

Answer explanation

Python was using hashtags before they were cool!

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Which of the following are valid Python arithmetic operators?

$

**

//

%

Answer explanation

The supported arithmetic operators of Python are: +, -, , /, //, %, and ** .

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Which of the following are valid Python comparison operators?

>

!=

=

<=

Answer explanation

A single = is the assigment operator. To compare equality, use two == .

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Which of the following are valid types of loops in Python?

do

while

do while

for

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?