1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Computer Science

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Computer Science

  • 78Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
David 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.

78 questions

  1. 1
    David 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

  2. 2
    In 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

  3. 3
    The 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

  4. 4
    The 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

  5. 5
    According 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

  6. 6
    CS50 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

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

  8. 8
    The 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

  9. 9
    Computer 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

  10. 10
    What 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

  11. 11
    In 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

  12. 12
    When 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

  13. 13
    By 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

  14. 14
    Computers 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

  15. 15
    A '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

  16. 16
    In 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

  17. 17
    A 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

  18. 18
    Inside 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

  19. 19
    With 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

  20. 20
    In 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

  21. 21
    In 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

  22. 22
    To 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

  23. 23
    A '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

  24. 24
    With 8 bits (1 byte), starting from zero, you can count as high as
    _____
    in decimal.
    Hint

    Calculate 28−12^8 - 128−1, considering zero as the first possibility.

    Answer

    255

  25. 25
    Computers 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

  26. 26
    Capital 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

  27. 27
    The 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

  28. 28
    Using 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

  29. 29
    When 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!

  30. 30
    A 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

  31. 31
    Emoji 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

  32. 32
    Different 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

  33. 33
    To 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

  34. 34
    For 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

  35. 35
    A 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

  36. 36
    Videos 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

  37. 37
    To 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

  38. 38
    The '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

  39. 39
    Professor 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

  40. 40
    When 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

  41. 41
    An 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

  42. 42
    For 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

  43. 43
    On 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

  44. 44
    Implementing 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

  45. 45
    Pseudocode 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

  46. 46
    In 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

  47. 47
    The '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

  48. 48
    Questions 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

  49. 49
    In 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

  50. 50
    A '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

  51. 51
    An '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

  52. 52
    Artificial 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

  53. 53
    Under 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

  54. 54
    In 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

  55. 55
    CS50'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

  56. 56
    In 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

  57. 57
    The 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

  58. 58
    The 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

  59. 59
    Scratch 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

  60. 60
    In Scratch, the default character that users control is a
    _____
    .
    Hint

    Think about the iconic animal sprite in the Scratch environment.

    Answer

    cat

  61. 61
    Movement 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

  62. 62
    In 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

  63. 63
    In 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

  64. 64
    When 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

  65. 65
    The '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

  66. 66
    Inputs 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

  67. 67
    In 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

  68. 68
    When 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

  69. 69
    The 'text to speech' extension in Scratch allows the cat sprite to
    _____
    something audibly.
    Hint

    This feature converts written text into spoken words.

    Answer

    speak

  70. 70
    If 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

  71. 71
    In 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

  72. 72
    The '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

  73. 73
    A '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

  74. 74
    The 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

  75. 75
    The 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

  76. 76
    The 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

  77. 77
    Making 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

  78. 78
    When 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

1 of 78
Question 1 of 78

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent