Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

01 - Introduction to Python

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

A computer ________________ is a detailed, step-by-step set of instructions telling a computer exactly what to do.

a)

program

b)

algorithm

c)

function

d)

language

2.

Computer languages that are designed to be used and understood by humans are ________________.

a)

machine code

b)

high-level languages

c)

natural languages

d)

binary code

3.

A statement is ________________.

a)

a part of an algorithm

b)

a complete computer command

c)

a solution to a problem

d)

a translation of machine language

4.

Which of the following is FALSE about compilers?

a)

They translate a program written in a high-level language into machine code

b)

Compiled code can be used multiple times without recompilation

c)

If an error is found in a line, the compiler pauses the translation and prompts the user to correct the error

d)

It optimises the code

5.

Which of the following is an interpreted language?

a)

C

b)

C++

c)

Python

d)

Fortran

6.

Which of the following translators do not produce an object file?

a)

Compiler

b)

Interpreter

c)

Assembler

7.

Which of the following symbols is used to place a multiline comment?

a)

+

b)

#

c)

" ( or ' )

d)

" " " ( or ' ' ' )

8.

Which if the following is a disadvantage of Python?

a)

Compulsory variable declaration before using them

b)

Python is not easy to understand

c)

Python is slower than compiled programs in cases of large-scale simulations

d)

Python is an open-source programming language

9.

Which of the following is TRUE about Python?

a)

Python is a low-level language

b)

Python does not support object-orientated programming techniques

c)

Python is a compiled language

d)

Python is an open-source programming language

10.

The items listed in the parenthesis of a procedure definition are called ________________ .

a)

comments

b)

scripts

c)

parameters

d)

variables