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

  • 56Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: CS50 Overview
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What does CS50, Harvard University's introductory computer science course, primarily aim to teach?

Tap to flipClick to flipspace

CS50 primarily aims to teach students how to think and master problem-solving tools, rather than just teaching programming as a side effect.

Or swipe the card

56 cards

  1. What does CS50, Harvard University's introductory computer science course, primarily aim to teach?

    CS50 primarily aims to teach students how to think and master problem-solving tools, rather than just teaching programming as a side effect.

  2. What role does AI play in programming according to the speaker?

    AI is changing programming by assisting with problem-solving, finding bugs, and adding features, effectively making humans less of a bottleneck in software development.

  3. Why is it still important to understand programming fundamentals despite the rise of AI tools?

    Understanding fundamentals ensures programmers remain 'in the driver's seat,' knowing what they are talking about and what problems they can truly solve, similar to how knowing basic arithmetic is still valuable despite calculators.

  4. What is Visual Studio Code (VS Code)?

    VS Code is a popular, largely open-source text editor used by professionals to write code, similar to Notepad or TextEdit, but designed for programming.

  5. What is an API, as mentioned in the context of building a chatbot?

    API stands for Application Programming Interface, which is functionality provided by a company (like OpenAI) that allows other programs to use its features and services.

  6. In the chatbot example, what is a 'model' and which one was used?

    A 'model' refers to a statistical model that drives AI capabilities. In the example, GPT 5 (the latest version at the time) was used.

  7. What is a 'system prompt' in the context of AI chatbots?

    A system prompt provides standardized instructions to the AI on how to behave, such as 'limit your answer to one sentence,' so the user doesn't have to repeat these instructions.

  8. What is the 'rubber duck debugging' concept, and how does CS50 implement it?

    Rubber duck debugging is a technique where programmers explain their code problem aloud to an inanimate object (like a rubber duck) to clarify their thoughts and find mistakes. CS50 provides a virtual duck AI at CS50.AI for this purpose.

  9. What is computational thinking?

    Computational thinking is the application of ideas from computer science to problems generally in the real world.

  10. How do computers fundamentally represent information?

    Computers fundamentally represent all information using zeros and ones, known as binary digits or bits.

  11. What is the difference between unary, binary, and decimal systems?

    Unary uses a single digit (base 1), binary uses two digits (0 and 1, base 2), and decimal uses ten digits (0-9, base 10).

  12. What is a 'bit' in computer science?

    A bit is a single binary digit, representing either a 0 or a 1.

  13. How can electricity represent bits?

    Electricity can represent bits by having an 'on' state (like a light bulb on) for 1 and an 'off' state (like a light bulb off) for 0.

  14. In binary, what number is represented by 000 with three bits?

    000 represents the decimal number 0.

  15. In binary, what number is represented by 111 with three bits?

    111 represents the decimal number 7.

  16. What happens if a computer tries to count beyond its available bits?

    If a computer runs out of available bits (memory), it might 'wrap around' and accidentally end up back at 0, leading to problems.

  17. What is a 'byte' in computer science?

    A byte is a unit of measure consisting of 8 bits.

  18. What is the maximum decimal number that can be represented with one byte (8 bits)?

    The maximum decimal number that can be represented with one byte (8 bits) is 255.

  19. Roughly how high can you count with 32 bits?

    With 32 bits, you can count roughly up to 4 billion (or 2 billion if negative numbers are also represented).

  20. How do computers represent letters of the alphabet?

    Computers represent letters by assigning a unique integer (number) to each letter, which is then stored as a pattern of zeros and ones.

  21. What is ASCII?

    ASCII stands for the American Standard Code for Information Interchange, a standardized mapping of letters, numbers, and symbols to corresponding numerical values (and thus binary patterns).

  22. What is the decimal ASCII value for the capital letter 'A'?

    The decimal ASCII value for the capital letter 'A' is 65.

  23. What is the relationship between uppercase and lowercase letters in ASCII?

    Lowercase letters are consistently 32 decimal values higher than their corresponding uppercase letters in ASCII.

  24. What message do the ASCII numbers 72, 73, 33 represent?

    The numbers 72, 73, 33 represent the message 'HI!'

  25. Why was Unicode created to supersede ASCII?

    Unicode was created because ASCII (with its 256 possible characters) was insufficient to represent all human languages, especially those with many glyphs or accented characters, as well as modern symbols like emoji.

  26. What are emoji, in terms of computer representation?

    Emoji are technically characters (patterns of zeros and ones) standardized within Unicode, displayed as images or graphical fonts.

  27. How do computers represent colors?

    Computers represent colors by assigning integer values to the intensities of primary colors, most commonly red, green, and blue (RGB).

  28. What is a 'pixel' in the context of images?

    A pixel is an individual dot or square that collectively composes an image on a screen.

  29. Why do image and video files often have large file sizes (megabytes)?

    Image and video files are large because each pixel in an image requires multiple bytes (e.g., 3 bytes for RGB) to store its color. Videos are sequences of many images (frames) per second, compounding the data storage.

  30. How do computers represent video?

    A video is represented as a rapid sequence of many still images (frames) displayed per second, creating the illusion of motion.

  31. How do computers represent music?

    Computers represent music by storing multiple numerical values (integers) for each note, such as its frequency (pitch), duration, and loudness (amplitude).

  32. How does a computer distinguish between the number 65 and the letter 'A' (which also has an ASCII value of 65)?

    The computer distinguishes based on context, which is determined by the programmer or the software interpreting the zeros and ones.

  33. What is an 'algorithm'?

    An algorithm is a set of step-by-step instructions for solving some problem.

  34. Describe the 'naive' algorithm for finding a name in a phone book.

    The naive algorithm involves starting at the beginning and checking each page one by one until the name is found. This is a correct but very slow method.

  35. Describe the 'smarter' algorithm for finding a name in a phone book (like an iPhone/Android contact search).

    The smarter algorithm involves repeatedly dividing the problem in half: going to the middle, checking which half the name is in, and discarding the other half. This is a much faster method.

  36. How does the efficiency of the 'halving' algorithm compare to the 'linear' algorithm as the problem size (e.g., phone book pages) increases?

    The 'halving' algorithm (logarithmic, log⁡2N\log_2 Nlog2​N) is much more efficient and grows far slower than the 'linear' algorithm (N) as the problem size increases.

  37. What is 'pseudocode'?

    Pseudocode is an English-like or human-like formulation of step-by-step instructions for solving a problem, using terse and correct human language rather than formal programming syntax.

  38. In pseudocode, what are 'functions'?

    Functions are verbs or actions that get some small piece of work done, representing pieces of functionality or algorithms.

  39. In pseudocode, what are 'conditionals'?

    Conditionals are like a fork in the road, allowing the program to decide which path to take based on a question.

  40. What is a 'Boolean expression'?

    A Boolean expression is a question that has a yes/no or true/false (binary) answer.

  41. What is a 'loop' in programming?

    A loop induces cyclical behavior, allowing a block of code to be executed again and again.

  42. What is the typical first program students write in programming circles?

    The typical first program students write is 'Hello, World!'

  43. What is a 'compiler'?

    A compiler is a program that translates one language to another, specifically high-level human-readable code into low-level machine-understandable zeros and ones.

  44. What is the principle of 'abstraction' in computing?

    Abstraction is the principle of hiding lower-level implementation details and providing higher-level, simpler interfaces or building blocks to work with.

  45. What is Scratch?

    Scratch is a graphical programming language designed at MIT's Media Lab, which allows users to program using drag-and-drop puzzle pieces (blocks) to create games and animations.

  46. In Scratch, what is an 'event block'?

    An event block represents things that can happen while the program is running, such as 'when green flag clicked' to start the program.

  47. What is an 'argument' (or parameter) in the context of a Scratch function block?

    An argument is an input to a function that influences its behavior, represented by a white oval in a Scratch puzzle piece.

  48. What is a 'side effect' in a computer program?

    A side effect is something that happens visually on the screen or audibly out of a speaker as a result of a function being used.

  49. What is a 'return value' in a computer program, contrasted with a side effect?

    A return value is a value that the code can see and use, but the human typically cannot directly see. It is passed back by a function internally for further processing.

  50. In Scratch, what does the 'answer' variable automatically store?

    The 'answer' variable automatically stores the return value (the user's input) from the 'ask [question] and wait' block.

  51. Why is it generally considered bad practice to copy-paste or duplicate code?

    Copy-pasting code is generally bad practice because it can lead to inefficiency and bugs; if a change is needed, it must be updated in multiple places, increasing the chance of errors.

  52. In Scratch, how can you create a custom function (a 'my block')?

    You can create a custom function in Scratch by going to 'My Blocks,' clicking 'Make a Block,' giving it a name, and defining its behavior (including inputs if needed).

  53. What is the coordinate system used in Scratch's 2D world?

    Scratch uses an XY plane (Cartesian coordinate system) where 0,00,00,0 is the center, with positive X values to the right, negative X to the left, positive Y values up, and negative Y values down.

  54. How can you simulate animation for a Sprite in Scratch, such as a trash can lid opening?

    Animation can be simulated by giving a Sprite multiple 'costumes' (different images) and switching between them in rapid succession.

  55. How can you make a Sprite in Scratch 'draggable' by the user?

    To make a Sprite draggable, use the 'set drag mode to draggable' block.

  56. In the Oscar game, how did the trash appear to fall and then 'teleport' into the trash can?

    The trash fell by repeatedly changing its Y-coordinate by -1 (moving down). When it 'teleported' into the trash can, it was actually just resetting its position to a random X and fixed Y=180 (the top of the sky).

Card 1 of 56
Card 1 of 56

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent