Back to marketplace

6.00.1x & 6.00.2x

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

imperative vs. declarative knowledge

Back (Answer)

declarative - statement of facts imperative - recipe or “how-to” computation

#2
Front (Question)

What is the difference between a program and a algorithm?

Back (Answer)

An algorithm is a conceptual idea, a program is a concrete instantiation (representation?) of an algorithm.

#3
Front (Question)

A computational mode of thinking means that everything can be viewed as a math problem involving numbers and formulas. True or False ?

Back (Answer)

True

#4
Front (Question)

Computer Science is the study how to build efficient machines that run programs. True or False ?

Back (Answer)

False

#5
Front (Question)

What does it mean when we say that “the computer walks through the sequence executing some computation”?

Back (Answer)

The computer executes the instructions mostly in a linear sequence, except sometimes it jumps to a different place in the sequence.

#6
Front (Question)

What are primitive operations and what are some examples of primitive operations ? Where are they in a computional machine?

Back (Answer)

A low-level object or operation from which higher-level, more complex objects and operations can be constructed. Examples: addition, subtraction, examine true or false statements In the ALU - arithmetic logic unit

#7
Front (Question)

What “Determines whether a string is legal”?

Back (Answer)

syntax

#8
Front (Question)

What “determines whether a string as meaning”?

Back (Answer)

semantic syntax

#9
Front (Question)

What “assigns a meaning to a legal sentence”?

Back (Answer)

semantics

#10
Front (Question)

What is the output after each expression ? Remember this is one session - each expression is calculated directly after the previous problem.

Card front image
Back (Answer)

• 5.0 and float • 4.0 and float • none type and error

#11
Front (Question)

What sort of expression is this ? and what value is returned ?

Card front image
Back (Answer)

Bool True

#12
Front (Question)

print(ss[-4:-1]) How do you read slicing strings with negative index numbers ?

Back (Answer)

Same as positive Read from left to right remember starting value is inclusive ending value is exclusive

#13
Front (Question)

What is the significance of the stride in slicing ?

Back (Answer)

it allows you to choose the interval at which python takes parts when slicing

#14
Front (Question)

How do you print in reverse order using slicing ?

Back (Answer)

Double colon to signify that this applies to the whole string and then have -1 as the stride value.

#15
Front (Question)

What is the return value of this piece of code ? and why?

Card front image
Back (Answer)

Hot because the computer reads the code in a linar fashion and the value meets the if statement to ‘print’ HOT.

#16
Front (Question)

What does += mean?

Back (Answer)

add whatever number to the varaible that is attached to it mysum += i

#17
Front (Question)

What is a recipe?

Back (Answer)

• Sequence of simple steps • Flow of control process that specifies when each step is executed • A means of determining when to stop

#18
Front (Question)

How many primitives do you need to do any calculation

Back (Answer)

6

#19
Front (Question)

What are expressions ?

Back (Answer)

complex but legal combinations of primiives in a programming language

#20
Front (Question)

What could go wrong when writing a program ?

Back (Answer)

Syntactic errors Static syntactic errors No semantic error but different meaning to what the programmer intended

#21
Front (Question)

The difference between static semantics and semantics?

Back (Answer)

A statement in python may have meaning (it is statically semantically correct), but it may not do what you intended (it is not semantically correct).

#22
Front (Question)

List all the operations on ints and floats

Back (Answer)

Card back image
#23
Front (Question)

How do you bind a value to a variable ?

Back (Answer)

Using the equals sign e.g. pi = 3.14159

#24
Front (Question)

What are the comparison operators for Ints and Floats ?

Back (Answer)

Card back image