PCEP Module 1: Introduction to Programming With Python Flashcards

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. (61 cards)

1
Q

What is the only language a computer understands directly?

A

Machine Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s a complete list of commands called?

A

Instructions List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What makes a language?

A

Alphabet, Lexis, Syntax, Semantics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the name for the set of symbols used to form words in a language?

A

Alphabet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the set of words a language gives you?

A

Lexis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Q: What are the rules for checking if a sentence is written correctly?

A

Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the rules for checking if a sentence makes sense?

A

Semantics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Q: What acts as the “alphabet” of machine language?

A

The IL, or Instructions List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Q: What’s a program written in a high-level language called?

A

Source Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Q: What is the file containing source code called?

A

Source File

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are languages humans write in and computers can understand called?

A

High Level programing Languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the two ways to turn high-level code into machine language?

A

Compilation and Interpretation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

C or I: What tool turns code into a file you can share?

A

Compiler, or translator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

C or I: What tool reads and runs code each time it’s used?

A

Interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a written program called?

A

Computer File

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Where is source code saved?

A

Text Files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does an interpreter read code?

A

Top to Bottom, Left to Right

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens if an interpreter finds an error?

A

It stops and shows an error message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

C or I: Which is faster at running code: compiler or interpreter?

A

Compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

C or I: Which one only the programmer needs to have installed?

A

Compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

C or I: Which one stores the code in machine language?

A

Compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

C or I: Which one might delay running your code?

A

Compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

C or I: With a compiler, what do you need for every hardware type?

A

Complier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

C or I: Which one runs the code right away?

A

Interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
C or I: Which one keeps the code in its original form (not machine code)?
Interpreter
24
C or I: Which one shares computer power and runs slower?
Interpreter
25
C or I: Who needs the interpreter to run the code?
Interpreter
26
True or False: Python is interpreted
True
27
What tool does Python need to run?
Interpreter
28
What are interpreted languages often called?
Scripting Languages
29
What are programs written in interpreted languages called?
Scripts
30
What is Python?
An interpreted object oriented and high level language
31
What is Python used for?
General Purpose Programming
32
Where does Pythons name come from?
Monty Pythons Flying Circus
33
Who was the creator of Python
Guido Van Rossum
34
When and where was Guido Van Rossum Born?
1956, Haarlem the Netherlands
35
Why did Guido Create Python?
To pass the time during Christmas holiday
36
What were Guido’s 4 goals for Python?
1. Easy to understand but powerful 2. Open source 3. Code that reads like English 4. Great for quick everyday tasks
37
True or False: Python is free and works on many systems.
True
38
What are Python’s main competitors?
Ruby and Perl
39
True or False: Python is used for mobile apps.
False
40
What are the two types of Python?
Python 2 and Python 3
40
Which version is older: Python 2 or Python 3?
Python 2
40
Which version of Python is used today?
Python 3
41
True or False: Python 2 and 3 work perfectly together.
False
42
True or False: Python 2 and 3 are different languages.
True
42
What language is Python built with?
C Programming Language
43
What’s the most popular Python from the Python Software Foundation?
CPython
44
What is Cython used for?
To turn Python code into C for faster execution
45
What is Jython used for?
To add Python to big Java systems
46
What is PyPy used for?
Testing new Python features
47
What is an Editor?
A tool that helps you write code
48
What is a Console?
Where you run and stop your code
49
What is a debugger?
A tool to run code step-by-step and check for problems
50
What does IDLE stand for?
Integrated Development and Learning Environment
51
What’s the name of the window where you write your code in IDLE?
The Editor Window
52
True or False: You should name your file before starting.
True
53
True or False: Python files need a .py extension.
True
54
What happens when you hit F5 in IDLE after saving?
Your code runs and gets saved for reuse
55
What does IDLE help you keep track of?
Matching parentheses
56
What 4 things does IDLE show when there’s an error?
1. Traceback path 2. Where the error happened 3. The line and cursor location 4. The error name and explanation