Python Basics

Python Basics

8th Grade

15 Qs

quiz-placeholder

Similar activities

Python

Python

8th Grade - Professional Development

10 Qs

Python Class 8 Assessment

Python Class 8 Assessment

6th - 8th Grade

10 Qs

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

Grade 8

Grade 8

8th Grade

19 Qs

computing 8 ( unit 4) Part 1

computing 8 ( unit 4) Part 1

8th Grade

14 Qs

Python Intro

Python Intro

7th - 8th Grade

12 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Revision G8

Revision G8

8th Grade

10 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

8th Grade

Hard

Created by

nisma basheer

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Python?

Python is a type of pasta.

Python is a type of snake.

Python is a type of car.

Python is a high-level programming language.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between Python 2 and Python 3.

Python 2 is legacy, Python 3 is the present and future.

Python 2 and Python 3 have identical syntax.

Python 2 has better performance than Python 3.

Python 2 is no longer supported, Python 3 is still in development.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the key features of Python?

Complexity, Readability, Limited Standard Library, Minimal Community Support

Simplicity, Readability, Versatility, Extensive Standard Library, Community Support

Efficiency, Readability, Narrow Scope, Limited Functionality

Complexity, Readability, Limited Versatility, Small Standard Library

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is PEP 8?

PEP 8 is a programming language.

PEP 8 is a software development methodology.

PEP 8 is the official style guide for Python code.

PEP 8 is a version control system.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A variable in Python is a programming language.

A variable in Python is a mathematical equation.

A variable in Python is a named location used to store data values.

A variable in Python is a type of snake.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you comment in Python?

Use '//' for multi-line comments

Use '/* comment */' for single-line comments

Use '//' for comments

Use '#' for single-line comments or '''comment''' for multi-line comments

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types in Python?

double

int, float, complex, str, bool, list, tuple, dict, set

char

array

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?