Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python: Quiz 1.03 - Code Structure and Workings

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

High-level code is usually translated to machine code by which 2 programs?

a)

Compilers and Interpreters

b)

Compilers and Translators

c)

Translators and Constructors

d)

Constructors and Interpretors

2.

Python is which kind of Language?

a)

Interpreted Language

b)

Compiled Language

c)

Low-level Language

d)

Dialect of Mandarin

3.

How does a Compiler work?

a)

Takes in a whole Source Code file and compiles it into an executable file

b)

Reads a source code from top-to-bottom, line by line

c)

Transforms the 1's and 0's of binary code into a high-level, human-readable language

d)

All of these Options are correct

4.

How does an Interpreter work?

a)

Takes in a whole Source Code file and compiles it into an executable file

b)

Reads a source code from top-to-bottom, line by line

c)

Transforms the 1's and 0's of binary code into a high-level, human-readable language

d)

All of these Options are correct

5.

A "bug" in coding means...

a)

An error in code, resulting in unwanted behavior

b)

An insect that got stuck in the hardware, causing damage

c)

An error in the language that cannot be fixed by the programmer

d)

Nothing. We do not use the word "bug" in coding

6.

When you find an error in code, what do we call the process of finding and fixing the error?

a)

Debugging

b)

Error Fixing

c)

Troubleshooting

d)

Fine-tuning

7.

What is a good way to avoid bugs while writing code? (Pick all that apply)

a)

Test your code regularly as you write

b)

Copy open-source code from experienced developers

c)

Write your full script, then run it and see what happens

d)

Practice

8.

What is Programming?

a)

Writing instructions for a digital machine

b)

Hypnotism

c)

Creating an Excel Calendar

d)

Keeping logs of events on a PC

9.

A written map of code logic without using any strict rules or specific syntax is known as...

a)

Pseudo Code

b)

Decomposition

c)

A Code Map

d)

A Code Graph

10.

Breaking down a larger, primary task into multiple smaller tasks is known as...?

a)

Being organized

b)

Decomposition

c)

Pseudo Code

d)

Code Parsing

11.

Lines in a script that won't be read by the computer but are used for coders to keep notes or leave instructions are known as...?

a)

Comments

b)

Note Blocks

c)

Doodles

d)

Errors