wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Cert - Day 1 (AM)

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

Python is an example of:

a)
Procedural Programming Language
b)
Assembly Language
c)
Machine Language
d)
High-Level Programming Language
2.

Select the TRUE statements. (Select TWO answers)

a)

Python is a good choice for low-level programming, e.g., when you want to implement an effective driver

b)

Python is free, open-source, and multiplatform

c)

Python 3 is backwards compatible with Python 2

d)

Python is a good choice for creating and executing tests for applications

3.

A complete set of known commands is called:

a)

A Machine List

b)

A Low-Level List

c)

An Instruction List

4.

What is a source code?

a)

Machine code executed by computers

b)

A program written in a high-level programming language

c)

Another name for a source file

5.

What do you call a computer program which directly executes instructions written in a programming language?

a)

An interpreter

b)

A translator

c)

A compiler

6.

What Python version is covered in this course?

a)

Python 3

b)

Python 2

c)

Python 1

7.

What is CPython?

a)

A compiled language used to perform high-level programming functions

b)

The default implementation of the Python programming language

c)

Another name for Cython, a superset of the Python programming language

8.

What is IDLE?

a)

An acronym that stands for Interactive Development and Learning Extension

b)

A version of Python

c)

An acronym that stands for Integrated Development and Learning Environment for Python

9.

What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of execution?

a)

A debugger

b)

An editor

c)

A console

10.

How did Python, the programming language get its name?

a)
From the snake species Python
b)
From the Monty Python's Flying Circus show
c)
Named after its creator, Guido van Rossum
d)
From the Greek word 'Python', meaning 'prophet'
11.

Which of the following is an example of a Python file extension?

a)

py

b)

pi

c)

p

12.

What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts?

a)

A console

b)

Jython

c)

An editor

d)

A compiler

13.

What is the expected behavior of the following program?

prin("Goodbye!")

a)

The program will output Goodbye! to the screen

b)

The program will generate an error mesage on the screen

c)

The program will output ("Goodbye!")

d)

The program will output "Goodbye!"

14.

What is the best definition of a script?

a)

It's an error message generated by the compiler

b)

It's an error message generated by the interpreter

c)

It's a text file that contains sequences of zeroes and ones

d)

It's a text file that contains instructions which make up a Python program

15.

What is machine code?

a)

A medium-level programming language consisting of the assembly code designed for the computer processor

b)

A low-level programming language consisting of binary digits/bits that the computer reads and understands

c)

A high-level programming language consisting of instruction lists that humans can read and understand

d)

A low-level programming language consisting of hexadecimal digits that make up high-level language instructions

16.

What is TRUE about compilation? (Select TWO answers)

a)

Both you and the end user must have the compiler to run your code

b)

The code is converted directly into machine code executable by the processor

c)

It tends to be faster than interpretation

d)

It tends to be slower than interpretation

17.

What do you call a file containing a program written in a high-level programming language?

a)

A target file

b)

A code file

c)

A source file

d)

A machine file

18.

What are the four fundamental elements that make a language?

a)

An alphabet, morphology, phonetics and semantics

b)

An alphabet, a lexis, phonetics and semantics

c)

An alphabet, phonetics, phonology and semantics

d)

An alphabet, a lexis, a syntax and semantics