CS first quiz

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:53 PM on 9/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards

What are the 3 basic instruction types?

Input, process, output.

2
New cards

What is a variable?

A named reference to a value.

3
New cards

What does = mean in Python?

Assignment; it assigns a value to a variable.

4
New cards

What is an expression?

A piece of code evaluated to produce a value.

5
New cards

What does print() do?

Displays output

6
New cards

What does input() do?

Gets input from the user and returns it as a string.

7
New cards

What is a string?

Text, usually written inside quotes, like "Hello".

8
New cards

What is the difference between "123" and 123?

"123" is a string; 123 is an integer

9
New cards

What does int() do?

Converts a numeric string into an integer

10
New cards

What does int() do?

Converts a numeric string into an integer.

11
New cards

Syntax error

Code violates Python's rules; the program cannot run.

12
New cards

What is a runtime error?

An error that happens while the program is running.

13
New cards

What is a logic error?

The program runs but produces the wrong result.

14
New cards

What is a ValueError?

An invalid value is used, like int("Henry").

15
New cards

What is a NameError?

A variable/name is used that doesn't exist.

16
New cards

What is a TypeError?

An operation uses incompatible/incorrect types.


17
New cards
18
New cards

What is an algorithm?

A sequence of instructions that solves a problem.