PLD EXAM (copy)

0.0(0)
studied byStudied by 0 people
0.0(0)
linked notesView linked note
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

Where does the name 'Python' come from?

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

2
New cards

What is a command list in Python?

A complete set of commands in a program.

3
New cards

What are the three logical operators in Python?

and, or, not.

4
New cards

What does True + 1 evaluate to in Python?

It evaluates to 2.

5
New cards

Who created Python and when was it first released?

Created by Guido van Rossum, first released in 1991.

6
New cards

What is an interpreted language?

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

7
New cards

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

Start the comment with the # symbol.

8
New cards

How do you denote multi-line comments in Python?

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

9
New cards

What defines a high-level language?

It simplifies interactions with complex computer processes.

10
New cards

What is the purpose of isinstance() in Python?

To verify variable types.

11
New cards

How can you change the separator in a print statement?

Use the sep parameter in the print() function.

12
New cards

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

It changes the ending character of the print output.

13
New cards

What are syntax errors?

Errors identified during compilation, such as missing parentheses.

14
New cards

How do you gather user input in Python?

Use the input() function.

15
New cards

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.

16
New cards

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).

17
New cards

What is the Order of Operations acronym in Python?

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

18
New cards

What character is used for exponentiation in Python?

The symbol **.

19
New cards

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

Convert numbers to strings using str() before concatenation.

20
New cards

What is the purpose of flowcharts in programming?

To graphically represent the steps of a process.

21
New cards

What does a decision symbol in flowcharts denote?

Decision-making points with Yes/No conditions.

22
New cards

What is a sequential flowchart?

A flowchart where steps occur with no branching.

23
New cards

What is a counter loop?

A loop that repeats processes a fixed number of times.

24
New cards

What do flowcharts help improve in programming?

Understanding of algorithms and logical programming approaches.