Introduction to Computer Science
- 78Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
78 questions
- 1David Malan, the lecturer, initially pursued a concentration or major in_____during his first year and a half of college, as he enjoyed history and constitutional law in high school.
Hint
Think about the subject David Malan was comfortable with in high school and continued to study in college before discovering computer science.
Answer
government
- 2In David Malan's sophomore year, he followed friends to a class called CS50, where he was taught by a famous computer scientist named Brian_____, who is now at Princeton.
Hint
Recall the name of the professor who taught CS50 and inspired David Malan, later known for his work at Princeton.
Answer
Kernighan
- 3The MIT 'hack' described by David Malan suggests that getting an education from MIT is like trying to drink from a fire hose, implying there will be_____information.
Hint
Consider the analogy of drinking from a fire hose; it means an overwhelming quantity.
Answer
so much
- 4The ultimate goal by the end of CS50 is to remove 'training wheels' so that students are well-equipped to_____new ideas beyond the class itself.
Hint
The course aims to empower students to independently acquire knowledge in the future.
Answer
teach themselves
- 5According to the CS50 syllabus, what ultimately matters in the course is where you end up relative to_____, not relative to your classmates.
Hint
The course emphasizes individual progress and growth from a student's starting point.
Answer
yourself when you began
- 6CS50 Puzzle Day is presented as an opportunity to solve problems collaboratively, emphasizing that computer science is fundamentally about_____solving, not just programming languages.
Hint
Think about the core skill that CS50 Puzzle Day aims to foster.
Answer
problem
- 7The CS50 Hackathon is an overnight event where students dive into their own final projects, which are the_____of the course.
Hint
This term refers to the culminating project or experience of a course of study.
Answer
capstone
- 8The objective of the final project in CS50 is to create something that the course didn't even_____students how to do, signaling readiness for independent work.
Hint
This project aims to demonstrate a student's ability to learn and apply concepts independently.
Answer
teach you
- 9Computer science, at its core, is the study of_____, focusing on how to represent and process it.
Hint
Consider the fundamental subject that computer science investigates.
Answer
information
- 10What CS50 primarily teaches is_____thinking, which is the application of computer science ideas to various problems.
Hint
This type of thinking involves breaking down problems and developing solutions in a way that can be executed by a computer.
Answer
computational
- 11In the problem-solving model, the problem to be solved is known as the_____, and the goal is to produce a solution, which is the output.
Hint
Think about what goes into a system or process before it's transformed.
Answer
input
- 12When counting with fingers in 'unary notation,' otherwise known as base_____, you are literally using your fingers as digits.
Hint
Think about a base system where each finger up represents a single unit.
Answer
one
- 13By permuting fingers on one hand to represent two potential states (down or up), one can count as high as 31, using a system called base_____, also known as binary.
Hint
This system uses only two states, analogous to how computers process information.
Answer
two
- 14Computers typically understand or speak in zeros and ones, which is known as the_____system.
Hint
This system uses only two digits to represent all information.
Answer
binary
- 15A 'bit' is a technical term that stands for a_____digit, meaning it can be either a zero or a one.
Hint
The 'bi' in bit refers to the two possible values.
Answer
binary
- 16In contrast to the binary system, the decimal system is known by 'dec' implying_____, because it uses zero through nine.
Hint
Think about the number of unique digits available in the decimal system.
Answer
10
- 17A binary digit, or zero, can be thought of as a light bulb that is_____, while a one is a light bulb that is on.
Hint
Consider the two states of a simple electrical switch.
Answer
off
- 18Inside electronic devices like computers and phones are millions of tiny light switches called_____that can be turned on or off.
Hint
These are the fundamental semiconductor devices used for switching or amplifying electronic signals and electrical power.
Answer
transistors
- 19With three bits (three light bulbs or switches), one can count as high as_____starting from zero.
Hint
Think about the total number of distinct patterns possible with three binary digits.
Answer
seven
- 20In the decimal system, columns are weighted by powers of 10, such as 10 to the 0, 10 to the 1, and 10 to the 2, which correspond to the ones, tens, and_____columns.
Hint
Recall standard place values in numbers like 123.
Answer
hundreds
- 21In the binary world, with only zeros and ones, the columns are weighted by powers of_____, resulting in ones, twos, and fours columns for three bits.
Hint
This is the base of the binary system.
Answer
two
- 22To count higher than seven with binary, you need to add another_____, effectively requiring more memory.
Hint
Think about the fundamental unit of information in binary.
Answer
bit
- 23A 'byte' is a common unit of measure in computing that consists of_____bits.
Hint
This specific number of bits is a standard grouping for representing characters or small integers.
Answer
eight
- 24With 8 bits (1 byte), starting from zero, you can count as high as_____in decimal.
Hint
Calculate 28−1, considering zero as the first possibility.
Answer
255
- 25Computers represent letters by assigning each letter a_____, which is then stored as zeros and ones.
Hint
Think about how non-numeric characters must be handled in a purely binary system.
Answer
number
- 26Capital letter A is represented by the decimal number_____, and capital B by 66, and so on.
Hint
Recall the specific decimal value assigned to the first uppercase letter in the standard encoding.
Answer
65
- 27The mapping system that assigns numbers to letters, punctuation, and other characters, primarily for English, is called_____.
Hint
This acronym stands for American Standard Code for Information Interchange.
Answer
ASCII
- 28Using 8 bits, ASCII can represent a total of_____different characters, which is enough for English but not all human languages.
Hint
Consider the range of values possible with 8 binary digits, including zero.
Answer
256
- 29When a phone receives the decimal values 72, 73, 33, it interprets them from the ASCII chart to display the message_____.
Hint
Match the decimal numbers to their corresponding ASCII characters.
Answer
HI!
- 30A newer standard called_____is designed to be backwards compatible with ASCII but can represent up to 4 billion possible characters for all human languages and pictograms.
Hint
This standard is a super set of ASCII, created to handle a much wider range of global characters and symbols.
Answer
Unicode
- 31Emoji are essentially just_____on a keyboard, represented by patterns of zeros and ones or decimal numbers.
Hint
Think about how a computer fundamentally stores and processes these graphical symbols.
Answer
characters
- 32Different companies like Google and Microsoft have their own artists who_____emoji descriptions differently, leading to varied appearances across devices.
Hint
Think about how different artists might create their own versions of a given concept.
Answer
interpret
- 33To represent color, computers typically use a system called_____, which stands for Red Green Blue.
Hint
This acronym represents the primary colors of light used in digital displays.
Answer
RGB
- 34For a single dot on the screen, known as a pixel, devices typically use three numbers, or_____bytes, representing 24 bits in total for its color.
Hint
This number corresponds to the R, G, and B components of a color.
Answer
three
- 35A photograph is composed of millions of bytes because there are at least three bytes used to represent every single_____on the screen.
Hint
Think about the smallest individual unit of an image on a digital display.
Answer
pixel
- 36Videos are effectively 'motion pictures' created by displaying a sequence of images or_____fast enough for the human eye to perceive continuous movement.
Hint
This term refers to individual still images that make up a video sequence.
Answer
frames
- 37To represent sound, computers can assign numbers to properties like_____, volume, and duration of musical notes.
Hint
Think about the characteristic of a sound that relates to how high or low it is.
Answer
pitch
- 38The 'secret sauce' that converts inputs to outputs and problems to solutions in computing is an_____, which consists of step-by-step instructions for solving a problem.
Hint
This term refers to a finite sequence of well-defined, computer-implementable instructions, typically to solve a class of specific problems or to perform a computation.
Answer
algorithm
- 39Professor Brian Kernighan emphasized that an algorithm must be very_____, meaning it needs to be explicit and leave no room for ambiguity.
Hint
Consider the quality of instructions that ensure a computer can follow them perfectly.
Answer
precise
- 40When searching for John Harvard in a physical phone book, starting at the beginning and looking page by page is an algorithm that would take_____steps in the worst case if there are N pages.
Hint
If you have to check every single page, the number of steps is directly proportional to the total number of pages.
Answer
N
- 41An improved algorithm for finding a name in a phone book involves going to the middle, determining if the name is to the left or right, and then tearing the problem in_____, a process known as 'divide and conquer.'
Hint
This strategy repeatedly reduces the search space by a significant fraction.
Answer
half
- 42For a phone book with 1,000 pages, the 'divide and conquer' algorithm would take roughly_____steps maximally, significantly fewer than a linear search.
Hint
This number is related to the logarithm base 2 of the problem size.
Answer
10
- 43On an xy plot where the y-axis is time to solve and the x-axis is problem size, the 'divide and conquer' algorithm has a shape that can be described as_____base 2 of n.
Hint
This mathematical function grows very slowly compared to linear growth.
Answer
log
- 44Implementing algorithms as programmers means translating conceptual steps into_____, such as C, Python, or Ruby.
Hint
This refers to the instructions written in a programming language.
Answer
code
- 45Pseudocode is a way to express algorithms using a programmer's own vernacular of English, making it correct, precise, and_____.
Hint
This term refers to being clearly defined and having an end, as opposed to infinite.
Answer
finite
- 46In pseudocode, actions or verbs like 'pick up phone book' or 'open to middle' are referred to as_____.
Hint
These are bite-sized tasks that a computer can perform.
Answer
functions
- 47The 'if, else if, else' constructs in pseudocode are examples of_____, which represent forks in the road where the program decides which path to take.
Hint
These control structures allow a program to execute different code blocks based on whether certain conditions are met.
Answer
conditionals
- 48Questions with a yes or no answer, a true or false answer, or a one or zero answer are technically called_____expressions.
Hint
This term is named after a mathematician and relates to logical operations.
Answer
Boolean
- 49In pseudocode and many programming languages,_____has logical significance, indicating which actions belong to which conditional or loop.
Hint
This visual formatting helps to show the structure and hierarchy of code blocks.
Answer
indentation
- 50A 'go back to' instruction in an algorithm, which makes the program repeat a set of steps, creates a_____.
Hint
This control structure allows a block of code to be executed multiple times.
Answer
loop
- 51An 'infinite loop' is a mistake or_____in code where the program gets stuck in a cycle forever, not responding to the user.
Hint
This term refers to an error or flaw in a computer program.
Answer
bug
- 52Artificial intelligence (AI) chatbots are typically implemented by_____them based on lots and lots of data, rather than writing infinite conditionals.
Hint
This process involves exposing an AI model to a large dataset to learn patterns and make predictions.
Answer
training
- 53Under the hood, large language models (LLMs) used in AI are typically implemented with_____networks, inspired by biological brains.
Hint
These are computational models inspired by the structure and function of biological neurons.
Answer
neural
- 54In programming circles, 'rubber duck debugging' or 'rubber ducking' is a valuable technique where programmers talk through their problems to a rubber duck (or other inanimate object), and the mere act of explaining often helps them realize their own_____.
Hint
The act of verbalizing a problem often helps to clarify thought and reveal errors.
Answer
mistakes
- 55CS50's own AI-based tools are designed to guide students to solutions rather than handing them something outright, akin to a good teaching_____.
Hint
Think about the role of an assistant instructor in a university course.
Answer
fellow
- 56In computer science, 'levels of abstraction' mean that programmers can operate at different granularities, from the low-level zeros and ones to higher-level_____.
Hint
These are human-readable programming constructs that simplify interaction with the computer.
Answer
languages
- 57The C programming language is an older but omnipresent language known for being incredibly fast and good at making devices operate quickly, providing a_____foundation for other languages.
Hint
This language provides the underlying understanding necessary to grasp more advanced or abstracted languages.
Answer
conceptual
- 58The initial challenge in learning programming in languages like C is often the_____muscle memory, such as knowing where to place semicolons and parentheses.
Hint
This refers to the rules that dictate the structure of a programming language.
Answer
syntax
- 59Scratch is a graphical programming language from MIT where users program by dragging and dropping_____pieces, also known as blocks, instead of typing code.
Hint
This visual metaphor helps to illustrate how code components fit together logically.
Answer
puzzle
- 60In Scratch, the default character that users control is a_____.
Hint
Think about the iconic animal sprite in the Scratch environment.
Answer
cat
- 61Movement in the Scratch world uses x,y-coordinates, with the center of the screen at 0, 0, and vertical movement on the_____-axis ranging from -180 to 180 pixels.
Hint
Think about vertical movement on a standard Cartesian coordinate system.
Answer
y
- 62In Scratch, the 'when green flag clicked' block is a common event block used to_____a program.
Hint
This visual cue in the Scratch interface signifies initiation.
Answer
start
- 63In Scratch, the white oval with text inside a puzzle piece, like in 'say hello, world,' indicates an_____to that function.
Hint
This is the information provided to the function for it to use.
Answer
input
- 64When a function in Scratch causes something visual to happen on the screen, like a speech bubble appearing, it is generally called a_____.
Hint
This term refers to any observable change to the system's state or output beyond its explicit return value.
Answer
side effect
- 65The 'answer' block in Scratch is an example of a_____value, which is a value handed back by a function and can be stored in a variable.
Hint
Think about the output that a function provides for further use in a program.
Answer
return
- 66Inputs to a function are now known as_____, such as the message and number of seconds in a 'say for specific seconds' block.
Hint
This term is used to describe the values passed into a function when it is called.
Answer
arguments
- 67In Scratch, using a 'join' block to combine 'hello, space' and the 'answer' input demonstrates how_____can become inputs to other functions.
Hint
Think about how the result of one operation can be used as the starting point for the next.
Answer
outputs
- 68When stacking Scratch blocks, the nesting of blocks, similar to parentheses in math, indicates that operations inside the nested block are performed_____.
Hint
Think about the order of operations in mathematical expressions.
Answer
first
- 69The 'text to speech' extension in Scratch allows the cat sprite to_____something audibly.
Hint
This feature converts written text into spoken words.
Answer
speak
- 70If a Scratch program is repeatedly dragging the same blocks or copying and pasting code, it is generally considered poor design because it involves unnecessary_____.
Hint
Good programming practice aims to avoid redundant code.
Answer
repetition
- 71In Scratch, users can invent their own puzzle pieces or_____, allowing them to reuse code and hide implementation details.
Hint
These are custom blocks that encapsulate a set of operations.
Answer
functions
- 72The 'forever' block in Scratch is a type of_____that causes the code inside it to run continuously.
Hint
This control structure ensures that actions repeat indefinitely.
Answer
loop
- 73A 'when motion exceeds' block in Scratch is a category of block that constantly waits for an_____, which is something that can happen on the screen like a click or mouse movement.
Hint
This term refers to an action or occurrence detected by the program.
Answer
event
- 74The game 'Oscartime' uses randomness to make trash reappear at different locations, achieved by picking random_____in a range.
Hint
Think about how a computer can simulate unpredictable values.
Answer
numbers
- 75The Harvard sprite's movement in 'Ivy's Hardest Game' is quantized as plus/minus changes to its x and y coordinates, illustrating that movement is all about_____at the end of the day.
Hint
Think about how digital positions are fundamentally represented.
Answer
numbers
- 76The MIT sprite in 'Ivy's Hardest Game' perpetually chases the Harvard logo by_____toward the Harvard sprite and then moving one step.
Hint
Think about how a sprite might orient itself to follow another.
Answer
pointing
- 77Making an adversary faster in a game can be done by changing the number of_____it moves at a time, for example, from one to two or more.
Hint
This directly relates to how quickly a sprite covers distance.
Answer
steps
- 78When implementing a complex game like 'Oscartime,' it's best to take proverbial_____steps, implementing one tiny feature at a time.
Hint
This approach involves breaking down a large task into smaller, manageable increments.
Answer
baby

Ask anything
We've read this whole study set, so questions about it get the best answers.