Computer Science Introduction
- 100Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
100 questions
- 1CS 50 is Harvard University's introduction to the intellectual Enterprises of Computer Science and the arts of_____.
Hint
This refers to the practical skill taught in the course, alongside the theoretical aspects of computer science.
Answer
programming
- 2Artificial intelligence is expected to continue changing programming, and it is considered an_____time for the field.
Hint
The text describes the current period with AI as having a positive and stimulating characteristic.
Answer
exciting
- 3One benefit of AI in programming is its ability to help solve problems and find_____or mistakes in code.
Hint
Think about common issues encountered when writing software.
Answer
bugs
- 4Historically, humans have been the_____in programming, limiting the number of features and bug fixes due to time and team size constraints.
Hint
This term refers to a point of congestion or limitation in a process.
Answer
bottleneck
- 5The overarching goal of a class like CS 50 is to teach students how to_____, not just how to program.
Hint
Beyond syntax and specific languages, what fundamental skill does computer science aim to develop?
Answer
think
- 6CS 50 introduces languages such as Scratch, C, Python, SQL, HTML, CSS, and_____.
Hint
This is a common client-side scripting language used for web development.
Answer
JavaScript
- 7Visual Studio Code (VS Code) is a popular, largely open-source software used by professionals to write_____.
Hint
VS Code is primarily an editor for this purpose.
Answer
code
- 8VS Code is essentially a_____editor, similar to Notepad or TextEdit, but without word processing features.
Hint
It's a basic program for writing plain text, specifically for programming.
Answer
text
- 9Commands are written in the_____window of VS Code to tell the computer what to do.
Hint
This is a common interface for interacting with the operating system using text commands.
Answer
terminal
- 10The Python language is being used to code a program named_____.
Hint
This is the specific file name mentioned for the chatbot program.
Answer
chat.py
- 11The chatbot program is built on top of an API (Application Programming Interface) provided by a company called_____.
Hint
This company is well-known for its AI models, including ChatGPT.
Answer
OpenAI
- 12In the API call, the_____
modelparameter is set to `GPT`, which is described as the latest and greatest version as of that day.Hint
This indicates a specific version number of a popular AI model.
Answer
5
- 13To make the chatbot program more dynamic, the_____
promptvariable is used to getfrom the human.Hint
This allows the user to ask different questions each time the program runs.
Answer
input
- 14In programming, a_____is a placeholder that stores some value, similar to X, Y, or Z in math.
Hint
This term refers to a named storage location for data in a program.
Answer
variable
- 15A_____
system promptcan be used to provide standardizedto the AI, such as 'limit your answer to one sentence.'Hint
This helps control the AI's behavior and output format.
Answer
instructions
- 16The AI models nowadays, like GPTs, can have_____that can be influenced by the system prompt.
Hint
This refers to the distinctive characteristics or mannerisms the AI can adopt.
Answer
personalities
- 17The 'rubber duck debugging' method encourages programmers to_____their confusion to an inanimate object to help organize their thoughts and find mistakes.
Hint
The act of speaking out loud about a problem.
Answer
verbalize
- 18CS 50 provides its own_____AI-based software for students to use, designed to act as a good human tutor.
Hint
This is a digital tool inspired by a common debugging technique.
Answer
virtual duck
- 19Using AI-based software other than CS 50's own, such as Claude, Gemini, or ChatGPT, is_____in the course.
Hint
The course syllabus specifies restrictions on external AI tools.
Answer
not allowed
- 20The virtual duck AI in CS 50 is designed to lead students to a solution without simply_____it.
Hint
This implies the AI provides guidance rather than direct answers.
Answer
spoiling
- 21Computer science is fundamentally the study of information and problem_____.
Hint
This is the core activity computer science aims to facilitate.
Answer
solving
- 22Computational thinking is the application of ideas from computer science to_____generally in the real world.
Hint
It's about applying CS principles to practical challenges.
Answer
problems
- 23A problem can be distilled into an input, an output, and a 'black box' in the middle that represents the_____.
Hint
This is the process or mechanism that transforms the input to the desired result.
Answer
solution
- 24Computers ultimately use_____and ones to represent all information.
Hint
This is the binary foundation of all digital data.
Answer
zeros
- 25The unary notation, also known as base_____, is a system where you essentially use single digits, like fingers on a hand.
Hint
Think about how many distinct symbols are used in this counting system.
Answer
one
- 26In binary, a single binary digit (0 or 1) is called a_____.
Hint
This is a fundamental unit of information in computing.
Answer
bit
- 27In the world of computers, a light bulb being off can represent a_____, while a light bulb being on can represent a 1.
Hint
This simple on/off state maps directly to binary values.
Answer
zero
- 28Electricity's simple nature, either flowing or not, maps nicely to binary's two states, distinguishing between_____and off.
Hint
Think of a light switch.
Answer
on
- 29Computers don't have light bulbs inside, but rather millions of tiny switches called_____.
Hint
These are the fundamental building blocks of modern digital circuits.
Answer
transistors
- 30With 3 bits, you can count up to_____, starting from 0, for a total of 8 possible combinations.
Hint
Consider the number of unique states possible with three binary digits (23−1).
Answer
7
- 31The decimal system, otherwise known as_____, uses 10 digits from 0 through 9.
Hint
This is the common numerical system humans use.
Answer
base 10
- 32In the decimal system, the number 123 is understood because it's calculated as 100 times 1, plus 10 times 2, plus 1 times_____.
Hint
Consider the place value of the last digit.
Answer
3
- 33Changing the base from 10 to 2 means that the columns in binary represent powers of_____, such as 1, 2, 4, 8, and so forth.
Hint
In a base system, the place values are powers of the base.
Answer
2
- 34With 8 bits (one byte), turning all light bulbs on represents the decimal number_____.
Hint
This is the maximum value for an 8-bit unsigned integer (28−1).
Answer
255
- 35The number 256 is common in computer science because it refers to 8 of something, specifically 28, which equals_____possibilities when including zero.
Hint
This is the total count of unique states with 8 bits.
Answer
256
- 36Nowadays, it's common to use 32 bits or even 64 bits at a time to represent numbers, with 32 bits capable of representing roughly_____billion values (or 2 billion if negative numbers are included).
Hint
This is the approximate value of 232.
Answer
4
- 37The rapid advancement in computer speed, memory, and available data on the internet are among the reasons for the recent explosion in_____intelligence.
Hint
This technology has seen significant growth due to hardware and data improvements.
Answer
artificial
- 38To represent a capital letter A, computers use a standardized pattern of zeros and ones that corresponds to the integer_____.
Hint
This is the ASCII value for uppercase 'A'.
Answer
65
- 39The American Standard Code for Information Interchange (_____), standardized how letters and numbers are mapped to numerical representations.
Hint
This acronym represents a foundational character encoding standard.
Answer
ASCII
- 40The lowercase letters in ASCII are_____away from their uppercase counterparts.
Hint
Consider the numerical difference between 'A' (65) and 'a' (97).
Answer
32
- 41A computer can convert an uppercase letter to a lowercase letter by changing a single bit in the_____'s place of its 8-bit pattern.
Hint
This specific bit corresponds to adding or subtracting 32 from the ASCII value.
Answer
32
- 42The message 'HI!' received as 3 bytes, translating to the numbers 72, 73, and 33, corresponds to the letters H, I, and an_____point.
Hint
Think about common punctuation marks represented by ASCII values.
Answer
exclamation
- 43A superset of ASCII that allows for a vast number of characters, including accented letters and emojis, is known as_____.
Hint
This character encoding standard supports a much wider range of global languages and symbols.
Answer
Unicode
- 44With 7 or 8 bits, ASCII can represent_____possible characters.
Hint
Calculate the total number of combinations possible with 8 binary digits (28).
Answer
256
- 45Unicode uses more bits per character (e.g., 16, 24, or 32 bits) to represent_____human languages, past, present, and future.
Hint
The goal of Unicode is comprehensive character encoding.
Answer
all
- 46If you have 32 bits available for a character, you can represent approximately_____billion characters in total.
Hint
This is the approximate value of 232.
Answer
4
- 47Emojis are technically_____that are displayed as images, rather than actual image files.
Hint
They are encoded and standardized like letters or symbols.
Answer
characters
- 48The 'face with tears of joy' emoji, which corresponds to the decimal number 4,036,991,106, might look different on iPhones versus Android devices because companies are free to_____the standardized pattern of zeros and ones as they see fit.
Hint
Different platforms render the same character in their own visual style.
Answer
interpret
- 49Colors are represented in computers as_____integers.
Hint
Like letters and numbers, colors are ultimately assigned numerical values.
Answer
integers
- 50One common technique for representing colors is to use a combination of three colors: some amount of red, some amount of green, and some amount of_____.
Hint
This additive color model is often abbreviated as RGB.
Answer
blue
- 51In the RGB system, 0 represents none of a color, while_____represents the maximum amount.
Hint
This is the maximum value for a single byte, often used for color intensity.
Answer
255
- 52Mixing 0 red, 0 green, and 0 blue results in the color_____.
Hint
This is the absence of all light or color in an additive model.
Answer
black
- 53Mixing the maximal amount of red, green, and blue (255 each) results in the color_____.
Hint
This is the combination of all colors in an additive model.
Answer
white
- 54Individual dots or squares that collectively compose an image are generally known as_____.
Hint
This term refers to the smallest addressable element in a raster image.
Answer
pixels
- 55Using the RGB system, each pixel's color requires 8 bits for red, 8 for green, and 8 for blue, totaling_____bits or 3 bytes.
Hint
Calculate the sum of bits for each color channel (8+8+8).
Answer
24
- 56A video is essentially a whole bunch of_____flying across the screen, tricking the mind into seeing motion.
Hint
Think of a flip book.
Answer
images
- 57To represent musical notes, one might use numbers for frequency (pitch), duration, and_____.
Hint
This refers to the amplitude or intensity of the sound.
Answer
loudness
- 58The computer distinguishes between the letter 65 and the number 65 based on the_____provided by the programmer or software.
Hint
This refers to how the data is intended to be used or interpreted.
Answer
context
- 59Base 10 is the same as the_____system, which humans use daily.
Hint
This is the common name for the base-10 number system.
Answer
decimal
- 60Algorithms are step-by-step instructions for_____some problem.
Hint
This is the core purpose of an algorithm in computer science.
Answer
solving
- 61Software is essentially an_____of an algorithm in code that the computer understands.
Hint
This refers to the practical translation of an abstract algorithm into a working program.
Answer
implementation
- 62The 'naive' algorithm of searching a phone book by looking one page at a time is correct but_____.
Hint
Consider its efficiency for large problems.
Answer
slow
- 63A smarter algorithm for searching a phone book involves going to the middle and tearing the problem in_____, reducing the search space significantly.
Hint
This strategy is characteristic of binary search.
Answer
half
- 64The third and most efficient algorithm, which involves repeatedly dividing the problem in half, has a_____growth curve.
Hint
Think about the mathematical function that describes very slow growth.
Answer
logarithmic
- 65The efficiency and quality of algorithm design are important, as solving a problem_____means using the least amount of CPU, RAM, or other resources.
Hint
Focus on the optimization aspect of problem solving.
Answer
better
- 66Pseudo code is an English-like or human-like formulation of step-by-step instructions, using terse correct_____.
Hint
It's a high-level description of code logic.
Answer
English
- 67In pseudo code,_____
functionsare verbs orthat get a small piece of work done.Hint
Think of what actions a program can perform.
Answer
actions
- 68_____
Conditionalsin pseudo code represent a fork in the road, deciding which way to go based on a.Hint
These control structures allow different paths based on certain criteria.
Answer
question
- 69A_____
Boolean expressionis a question that has a yes or no, true or false, or 1 oranswer.Hint
This type of expression evaluates to one of two binary states.
Answer
0
- 70The 'go back to' instructions in pseudo code are generally called_____, which induce cyclical behavior.
Hint
This control structure allows for repetition of code.
Answer
loops
- 71Low-level programming involves representing patterns of zeros and ones that tell the computer what_____to perform, such as adding numbers or loading data.
Hint
These are the basic operations a computer can execute.
Answer
functionality
- 72The very first program students typically write in programming circles is '_____' (two words).
Hint
This is a traditional introductory program that outputs a simple greeting.
Answer
hello world
- 73A_____
compileris a program that translates oneto another, making it easier for humans to write code.Hint
This tool bridges the gap between high-level code and machine code.
Answer
language
- 74The principle of_____in computing allows us to trust that someone else solved really hard low-level problems, enabling easier programming at higher levels.
Hint
This concept involves hiding complex details and providing simpler interfaces.
Answer
abstraction
- 75Scratch is a_____programming language designed by MIT's Media Lab, using drag-and-drop puzzle pieces.
Hint
It's known for its visual interface rather than text-based coding.
Answer
graphical
- 76In Scratch, the programming area is where you write your code by dragging and dropping_____pieces.
Hint
These represent the functional blocks of code.
Answer
puzzle
- 77By default, the main character or_____
spritein Scratch is a.Hint
This is the iconic animal associated with the Scratch environment.
Answer
cat
- 78The two-dimensional world in which Scratch lives uses an XY_____for positioning sprites.
Hint
Think of a coordinate system.
Answer
plane
- 79In Scratch, the green flag means 'go' and the red stop sign means '_____'.
Hint
These are universal controls for starting and ending a program.
Answer
stop
- 80Some functions in Scratch, like the 'say' block, can take_____or inputs that influence their behavior, represented by editable white ovals.
Hint
These are values passed to a function.
Answer
arguments
- 81A_____
side effectin a computer program is often something that happenson the screen or audibly out of a speaker.Hint
This refers to an observable change or output.
Answer
visually
- 82A function is the_____of an algorithm in code.
Hint
It's the concrete form an abstract algorithm takes within a program.
Answer
incarnation
- 83The 'ask and wait' block in Scratch returns a_____
return value, which is something thecan see but the human cannot directly.Hint
This is data that a function produces for other parts of the program.
Answer
code
- 84In Scratch, the_____
answervariable automatically stores thereturn valuefrom theblock.Hint
This specific variable is predefined to hold the user's input from a question.
Answer
ask
- 85The_____
joinfunction in Scratch takes twoand combines them into a single string.Hint
It requires two pieces of text or values to concatenate.
Answer
arguments
- 86When the 'hello' and 'answer' are joined, the combined phrase becomes the_____to the 'say' block.
Hint
The output of one function often serves as the input for the next.
Answer
input
- 87In programming, if you find yourself copying and pasting or duplicating puzzle pieces, you are probably doing something_____, suggesting a need for better design.
Hint
This practice often leads to inefficiencies and errors in code.
Answer
wrong
- 88To avoid repetition, common functionality can be factored out into a_____, which allows the code to be modularized and better designed.
Hint
This control structure helps execute a block of code multiple times without rewriting it.
Answer
loop
- 89Creating your own block in Scratch allows you to define a new_____with a specific set of actions.
Hint
This feature enables modularity and reusability of code.
Answer
function
- 90By adding an input (argument) to a custom block, like 'N' for the number of times to meow, you can make the block's behavior more_____.
Hint
This allows the block to respond to different conditions or values.
Answer
dynamic
- 91The 'forever' block in Scratch ensures that a set of actions or checks are_____executed.
Hint
This control structure creates an infinite loop.
Answer
constantly
- 92In the Oscar game, the trash can_____
spriteuses differentto simulate animation, such as its lid going up or Oscar popping out.Hint
These are different visual appearances for a sprite.
Answer
costumes
- 93The_____
set drag mode to draggableblock is a Scratch feature that allows users tosprites by clicking on them.Hint
This enables interactive manipulation of objects on the screen.
Answer
move
- 94When the trash touches Oscar, it appears to go into the trash can but actually just_____to a different X location at the top of the screen.
Hint
This is a quick, invisible jump from one location to another.
Answer
teleported
- 95A_____
scoreis used in the game to keep track of how many pieces of trash have been collected.Hint
This is a named storage location that holds a numerical value that changes during the game.
Answer
variable
- 96The Harvard Crest sprite in 'Ib's Hardest Game' uses an XY plane for movement, where changing its X by 1 moves it right, and changing its Y by 1 moves it_____.
Hint
Think about standard Cartesian coordinates; positive Y is typically upwards.
Answer
up
- 97To prevent the Harvard Crest from going through walls, the program checks if it's touching a wall and then changes its X by a negative or positive value to make it_____off.
Hint
This simulates a physical reaction to hitting a barrier.
Answer
bounce
- 98The Yale sprite moves autonomously by checking if it's touching a wall and then turning around_____degrees, effectively bouncing back.
Hint
This angle represents a complete reversal of direction.
Answer
180
- 99To make the Yale sprite move faster and increase game difficulty, you would increase the number of_____it moves per step.
Hint
This controls the distance covered in each movement iteration.
Answer
steps
- 100The MIT sprite follows the Harvard logo by continuously pointing towards the Harvard logo's_____and then moving one step.
Hint
This ensures the sprite's direction is always oriented towards its target.
Answer
outline

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