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

Study methods

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

Computer Science Introduction

  • 100Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
CS 50 is Harvard University's introduction to the intellectual Enterprises of Computer Science and the arts of
.

100 questions

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

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

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

  4. 4
    Historically, 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

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

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

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

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

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

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

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

  12. 12
    In the API call, the model parameter 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

  13. 13
    To make the chatbot program more dynamic, the prompt variable is used to get
    _____
    from the human.
    Hint

    This allows the user to ask different questions each time the program runs.

    Answer

    input

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

  15. 15
    A system prompt can be used to provide standardized
    _____
    to the AI, such as 'limit your answer to one sentence.'
    Hint

    This helps control the AI's behavior and output format.

    Answer

    instructions

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

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

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

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

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

  21. 21
    Computer science is fundamentally the study of information and problem
    _____
    .
    Hint

    This is the core activity computer science aims to facilitate.

    Answer

    solving

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

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

  24. 24
    Computers ultimately use
    _____
    and ones to represent all information.
    Hint

    This is the binary foundation of all digital data.

    Answer

    zeros

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

  26. 26
    In binary, a single binary digit (0 or 1) is called a
    _____
    .
    Hint

    This is a fundamental unit of information in computing.

    Answer

    bit

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

  28. 28
    Electricity'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

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

  30. 30
    With 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−12^3 - 123−1).

    Answer

    7

  31. 31
    The decimal system, otherwise known as
    _____
    , uses 10 digits from 0 through 9.
    Hint

    This is the common numerical system humans use.

    Answer

    base 10

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

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

  34. 34
    With 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−12^8 - 128−1).

    Answer

    255

  35. 35
    The number 256 is common in computer science because it refers to 8 of something, specifically 282^828, which equals
    _____
    possibilities when including zero.
    Hint

    This is the total count of unique states with 8 bits.

    Answer

    256

  36. 36
    Nowadays, 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 2322^{32}232.

    Answer

    4

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

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

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

  40. 40
    The lowercase letters in ASCII are
    _____
    away from their uppercase counterparts.
    Hint

    Consider the numerical difference between 'A' (65) and 'a' (97).

    Answer

    32

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

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

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

  44. 44
    With 7 or 8 bits, ASCII can represent
    _____
    possible characters.
    Hint

    Calculate the total number of combinations possible with 8 binary digits (282^828).

    Answer

    256

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

  46. 46
    If you have 32 bits available for a character, you can represent approximately
    _____
    billion characters in total.
    Hint

    This is the approximate value of 2322^{32}232.

    Answer

    4

  47. 47
    Emojis are technically
    _____
    that are displayed as images, rather than actual image files.
    Hint

    They are encoded and standardized like letters or symbols.

    Answer

    characters

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

  49. 49
    Colors are represented in computers as
    _____
    integers.
    Hint

    Like letters and numbers, colors are ultimately assigned numerical values.

    Answer

    integers

  50. 50
    One 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

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

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

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

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

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

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

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

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

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

  60. 60
    Algorithms are step-by-step instructions for
    _____
    some problem.
    Hint

    This is the core purpose of an algorithm in computer science.

    Answer

    solving

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

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

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

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

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

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

  67. 67
    In pseudo code, functions are verbs or
    _____
    that get a small piece of work done.
    Hint

    Think of what actions a program can perform.

    Answer

    actions

  68. 68
    Conditionals in 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

  69. 69
    A Boolean expression is a question that has a yes or no, true or false, or 1 or
    _____
    answer.
    Hint

    This type of expression evaluates to one of two binary states.

    Answer

    0

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

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

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

  73. 73
    A compiler is a program that translates one
    _____
    to another, making it easier for humans to write code.
    Hint

    This tool bridges the gap between high-level code and machine code.

    Answer

    language

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

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

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

  77. 77
    By default, the main character or sprite in Scratch is a
    _____
    .
    Hint

    This is the iconic animal associated with the Scratch environment.

    Answer

    cat

  78. 78
    The two-dimensional world in which Scratch lives uses an XY
    _____
    for positioning sprites.
    Hint

    Think of a coordinate system.

    Answer

    plane

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

  80. 80
    Some 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

  81. 81
    A side effect in a computer program is often something that happens
    _____
    on the screen or audibly out of a speaker.
    Hint

    This refers to an observable change or output.

    Answer

    visually

  82. 82
    A function is the
    _____
    of an algorithm in code.
    Hint

    It's the concrete form an abstract algorithm takes within a program.

    Answer

    incarnation

  83. 83
    The 'ask and wait' block in Scratch returns a return value, which is something the
    _____
    can see but the human cannot directly.
    Hint

    This is data that a function produces for other parts of the program.

    Answer

    code

  84. 84
    In Scratch, the answer variable automatically stores the return value from the
    _____
    block.
    Hint

    This specific variable is predefined to hold the user's input from a question.

    Answer

    ask

  85. 85
    The join function in Scratch takes two
    _____
    and combines them into a single string.
    Hint

    It requires two pieces of text or values to concatenate.

    Answer

    arguments

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

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

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

  89. 89
    Creating 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

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

  91. 91
    The 'forever' block in Scratch ensures that a set of actions or checks are
    _____
    executed.
    Hint

    This control structure creates an infinite loop.

    Answer

    constantly

  92. 92
    In the Oscar game, the trash can sprite uses different
    _____
    to simulate animation, such as its lid going up or Oscar popping out.
    Hint

    These are different visual appearances for a sprite.

    Answer

    costumes

  93. 93
    The set drag mode to draggable block is a Scratch feature that allows users to
    _____
    sprites by clicking on them.
    Hint

    This enables interactive manipulation of objects on the screen.

    Answer

    move

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

  95. 95
    A score
    _____
    is 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

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

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

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

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

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

1 of 100
Question 1 of 100

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent