PLD EXAM (copy)

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Where does the name 'Python' come from?

1 / 23

flashcard set

Earn XP

Description and Tags

24 Terms

1

Where does the name 'Python' come from?

The name comes from Monty Python’s Flying Circus, a comedy series enjoyed by Guido van Rossum.

New cards
2

What is a command list in Python?

A complete set of commands in a program.

New cards
3

What are the three logical operators in Python?

and, or, not.

New cards
4

What does True + 1 evaluate to in Python?

It evaluates to 2.

New cards
5

Who created Python and when was it first released?

Created by Guido van Rossum, first released in 1991.

New cards
6

What is an interpreted language?

A language where code is executed line-by-line by an interpreter.

New cards
7

How do you create a single-line comment in Python?

Start the comment with the # symbol.

New cards
8

How do you denote multi-line comments in Python?

Use triple quotes (''' ... ''').

New cards
9

What defines a high-level language?

It simplifies interactions with complex computer processes.

New cards
10

What is the purpose of isinstance() in Python?

To verify variable types.

New cards
11

How can you change the separator in a print statement?

Use the sep parameter in the print() function.

New cards
12

What does the end parameter in the print() function do?

It changes the ending character of the print output.

New cards
13

What are syntax errors?

Errors identified during compilation, such as missing parentheses.

New cards
14

How do you gather user input in Python?

Use the input() function.

New cards
15

What will the following code print? 'for number in range(1, 6): if number % 2 != 0: print(number)'

It will output the odd numbers: 1, 3, 5.

New cards
16

What is a valid identifier in Python?

An identifier that starts with a letter or underscore and is followed by letters, numbers, or underscores (e.g., mile).

New cards
17

What is the Order of Operations acronym in Python?

PEMDAS (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction).

New cards
18

What character is used for exponentiation in Python?

The symbol **.

New cards
19

What should you do to mix strings and numbers in Python?

Convert numbers to strings using str() before concatenation.

New cards
20

What is the purpose of flowcharts in programming?

To graphically represent the steps of a process.

New cards
21

What does a decision symbol in flowcharts denote?

Decision-making points with Yes/No conditions.

New cards
22

What is a sequential flowchart?

A flowchart where steps occur with no branching.

New cards
23

What is a counter loop?

A loop that repeats processes a fixed number of times.

New cards
24

What do flowcharts help improve in programming?

Understanding of algorithms and logical programming approaches.

New cards

Explore top notes

note Note
studied byStudied by 28 people
... ago
5.0(2)
note Note
studied byStudied by 159 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 63 people
... ago
5.0(2)
note Note
studied byStudied by 135 people
... ago
5.0(2)
note Note
studied byStudied by 53 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (29)
studied byStudied by 10 people
... ago
5.0(1)
flashcards Flashcard (44)
studied byStudied by 55 people
... ago
5.0(3)
flashcards Flashcard (26)
studied byStudied by 23 people
... ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 77 people
... ago
5.0(2)
flashcards Flashcard (67)
studied byStudied by 5 people
... ago
4.0(1)
flashcards Flashcard (95)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
robot