0% found this document useful (0 votes)
177 views

Quiz and Test Module 1

This document contains a quiz and test on Python fundamentals for Module 1 of a Python Essentials course. The quiz and test cover topics like Python's position among programming languages, key Python concepts like compilation vs interpretation, and basic Python syntax.

Uploaded by

josegmay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views

Quiz and Test Module 1

This document contains a quiz and test on Python fundamentals for Module 1 of a Python Essentials course. The quiz and test cover topics like Python's position among programming languages, key Python concepts like compilation vs interpretation, and basic Python syntax.

Uploaded by

josegmay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Quiz and Test Python Essentials 1 - Module 1

Centro público integrado de formación profesional


Nuevo (desglose IES Campanillas)

Quiz and Test


Python Essentials 1
Module 1

José García Python - PCEP-30-02


Quiz and Test Python Essentials 1 - Module 1

Índice
JAVASCRIPT ESSENTIALS 1 (JSE) - MODULE 1 ............................................................ ¡ERROR! MARCADOR NO DEFINIDO.
JAVASCRIPT ESSENTIALS 1 (JSE) MODULE 1 .............................................................................................¡ERROR! MARCADOR NO DEFINIDO.
Introduction to JavaScript and Computer Programming .....................................................¡Error! Marcador no definido.
QUIZ ....................................................................................................................................................................................................................4
TEST ...................................................................................................................................................................................................................5

José García 2 Python - PCEP-30-02


Quiz and Test Python Essentials 1 - Module 1
Python Essentials 1 - Module 1

Python Essentials 1:
Module 1

Introduction to Python and computer programming


In this module, you will learn about:

• the fundamentals of computer programming, i.e., how the computer works, how the program is executed,
how the programming language is defined and constructed;
• the difference between compilation and interpretation;
• what Python is, how it is positioned among other programming languages, and what distinguishes the
different versions of Python.

José García 3 Python - PCEP-30-02


Quiz and Test Python Essentials 1 - Module 1
Quiz
Python is an example of:
a. a high-level programming language
b. a natural language
c. a machine language

A complete set of known commands is called:


a. an instruction list
b. a machine list
c. a low-level list

What is a source code?


a. Machine code executed by computers
b. Another name for a source file
c. A program written in a high-level programming language

What do you call a computer program which directly executes instructions written in a programming
language?
a. A translator
b. A compiler
c. An interpreter

What Python version is covered in this course?


a. Python 1
b. Python 3
c. Python 2

What is CPython?
a. The default implementation of the Python programming language
b. A compiled language used to perform high-level programming functions
c. Another name for Cython, a superset of the Python programming language

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

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

How did Python, the programming language, get its name?


a. Guido van Rossum named it to honor Python of Catana, a dramatic poet of the time of Alexander the
Great
b. Guido van Rossum named it to honor Monty Python's Flying Circus, a BBC comedy series popular in the
19705
c. Guido van Rossum named it after the Pythonidae - a family of large, nonvenomous snakes

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


a. Dpi
b. p
c. py

José García 4 Python - PCEP-30-02


Quiz and Test Python Essentials 1 - Module 1
Test
What do you call a command-line interpreter which lets you interact with your OS and execute Python
commands and scripts?
a. An editor
b. A console
c. A compiler
d. Jython

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

What do you call a file containing a program written in a high-level programming language?
a. A target file
b. A source file
c. A machine file
d. A code file

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 instructions which make up a Python program
d. It's a text file that contains sequences of zeroes and ones

What is machine code?


a. A low-level programming language consisting of hexadecimal digits that make up high-level language
instructions
b. A medium-level programming language consisting of the assembly code designed for the computer
processor
c. A low-level programming language consisting of binary digits/bits that the computer reads and
understands
d. A high-level programming language consisting of instruction lists that humans can read and understand

What is true about compilation? (Select two answers)


a. Both you and the end user must have the compiler to run your code
b. It tends to be slower than interpretation
c. The code is converted directly into machine code executable by the processor
d. It tends to be faster than interpretation

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 message on the screen
c. The program will output "'Goodbye!"
d. The program will output ("Goodbye! ")

José García 5 Python - PCEP-30-02


Quiz and Test Python Essentials 1 - Module 1
What is Python?
a. It's a programming language that is a superset of the C language, designed to produce Python-like
performance with code written in C
b. It's the default, reference implementation of Python, written in the C language
c. It's a programming language that is a superset of Python, designed to produce C-like performance with
code written in Python
d. It's the default, reference implementation of the C language, written in Python

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

What is the expected behavior of the following program?


print("Hello!")
a. The program will output Hello! to the screen
b. The program will generate an error message on the screen
c. The program will output "Hello!" to the screen
d. The program will output ("Hello!") to the screen

José García 6 Python - PCEP-30-02

You might also like