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

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

What does CS50 stand for?

Tap to flipClick to flipspace

CS50 is Harvard University's Introduction to the Intellectual Enterprises of Computer Science and the Art of Programming.

Or swipe the card

76 cards

  1. What does CS50 stand for?

    CS50 is Harvard University's Introduction to the Intellectual Enterprises of Computer Science and the Art of Programming.

  2. Who was the professor of CS50 when David Malan took the class?

    The professor was Brian Kernighan, a famous computer scientist now at Princeton.

  3. What is the core message about the applicability of computer science in CS50?

    Computer science, and CS50 specifically, is applicable to the broader world, including arts, humanities, social sciences, natural sciences, and beyond.

  4. What is the CS50 philosophy regarding student progress?

    What ultimately matters in CS50 is not where a student ends up relative to their classmates, but where they end up relative to themselves when they began.

  5. What is a traditional item given to students who complete CS50?

    A proudly held 'took CS50' t-shirt.

  6. What is the purpose of CS50 Puzzle Day?

    CS50 Puzzle Day emphasizes that computer science is about problem-solving, often collaboratively, rather than just programming languages.

  7. What is the CS50 Hackathon?

    An overnight opportunity for students to dive into their final projects, which are the capstone of the course.

  8. What is the CS50 Fair?

    A campus-wide exhibition for students, faculty, and staff to view students' final projects.

  9. What is the ultimate objective of the CS50 final project?

    To create something that was not explicitly taught in the course, signaling readiness to teach oneself new ideas.

  10. Define computer science as taught in CS50.

    Computer science is the study of information – how to represent it and how to process it. More fundamentally, it's about computational thinking and problem-solving.

  11. What are the three components of the problem-solving model presented in CS50?

    Input (the problem to solve), Algorithm (how to process the input), and Output (the solution).

  12. In mathematics, what is unary notation also known as?

    Base one.

  13. How high can one count on a single human hand using a clever base system, not unary?

  14. What is the binary system also known as?

    Base two.

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

    A bit is a binary digit, representing either a zero or a one.

  16. How do computers physically represent zeros and ones?

    By using millions of tiny light switches called transistors that can be turned off (zero) or on (one).

  17. Why do computers use only two states (on/off) instead of multiple voltage levels?

    It is simpler and more reliable to do extremes (fully on or fully off) to avoid errors and murky interpretations between different voltage levels.

  18. In the decimal system, what does each column represent?

    Powers of 10 (e.g., ones, tens, hundreds, which are 10010^0100, 10110^1101, 10210^2102).

  19. In the binary system, what does each column represent?

    Powers of 2 (e.g., ones, twos, fours, which are 202^020, 212^121, 222^222).

  20. How many distinct patterns can be represented with three bits?

    Eight distinct patterns (from 0 to 7, including 0).

  21. What decimal number does the binary 000 represent?

  22. What decimal number does the binary 001 represent?

  23. What decimal number does the binary 010 represent?

  24. What decimal number does the binary 011 represent?

  25. What decimal number does the binary 100 represent?

  26. What decimal number does the binary 111 represent?

  27. What binary number represents the decimal number 8?

    1000 (using four bits).

  28. How many bits are in a byte?

    Eight bits.

  29. What is the highest decimal number that can be represented with 8 bits (1 byte), starting from zero?

  30. How do computers represent letters like 'A'?

    By assigning each letter a unique number, which is then stored in binary (zeros and ones).

  31. What decimal number represents a capital 'A' in ASCII?

  32. What does ASCII stand for?

    American Standard Code for Information Interchange.

  33. How many different characters can be represented with ASCII (using 8 bits)?

    256 characters (from 0 to 255).

  34. If a computer receives the decimal numbers 72, 73, 33 in the context of a text message, what message is displayed?

    HI!

  35. What is Unicode?

    A newer standard for character encoding that uses more bits (e.g., 16, 24, or 32 bits) to represent all human languages, past, present, and future, including pictograms like emoji.

  36. How many possible characters can 32 bits represent?

    As many as 4 billion possible characters.

  37. Why do emoji sometimes appear as black squares or black and white hearts on older devices?

    The device's software is not updated to the latest Unicode version, or the manufacturer hasn't updated their fonts to include the new emoji artwork.

  38. How do computers represent colors?

    Using a system called RGB (Red Green Blue), where three numbers (typically three bytes, 24 bits) represent the intensity of red, green, and blue for a single pixel.

  39. What is a pixel?

    A single dot on the screen, whose color is represented by a set of numbers.

  40. If 72, 73, 33 represents a color in RGB, what color is it roughly?

    Yellow.

  41. Where do the millions of bytes in a photograph come from?

    They correspond to the color information (at least three bytes) for every single pixel in the image.

  42. How do computers represent videos?

    As a sequence of many individual images (frames) displayed quickly, typically 24 or 30 frames per second, creating the illusion of motion.

  43. Why are video files typically very large (gigabytes)?

    Because they consist of many images (frames) per second, and each image contains millions of bytes of color information.

  44. How can computers represent sound?

    By assigning numbers to properties like pitch (frequency), volume, and duration for each musical note or sound event. This can use multiple bytes per sound event.

  45. How does a computer know if a pattern of zeros and ones represents a message, a color, or a sound?

    It depends on the context and the software used to open or interpret that pattern. A programmer can also explicitly tell the computer how to treat the data.

  46. What is an algorithm?

    Step-by-step instructions for solving some problem.

  47. What was Brian Kernighan's memorable demonstration of an algorithm?

    Shaving his beard in class.

  48. Describe the 'linear search' algorithm for finding a name in a phone book.

    Start at the beginning and look page by page until the name is found (or the end of the book is reached).

  49. What is the worst-case time complexity of a linear search in a phone book of N pages?

    N steps (e.g., 1,000 pages, 1,000 steps).

  50. Describe a slightly faster but still flawed algorithm for finding a name in a phone book.

    Go twice as fast, turning two pages at a time, but with a bug that could miss the name.

  51. Describe the 'binary search' algorithm for finding a name in a phone book.

    Go to the middle of the phone book, determine if the name is in the left or right half, tear the problem in half, and repeat until the name is found or not present.

  52. What is the worst-case time complexity of a binary search in a phone book of N pages?

    Approximately log⁡2N\log_2 Nlog2​N steps (e.g., for 1,000 pages, roughly 10 steps).

  53. How does the time to solve a problem using binary search change if the problem size (phone book pages) doubles from 1,000 to 2,000?

    It only takes one additional step.

  54. What is pseudocode?

    An informal high-level description of an algorithm or program, using a mix of English vernacular and programming-like constructs.

  55. In pseudocode, what are 'functions'?

    Actions or verbs; bite-sized tasks a computer can do.

  56. In pseudocode, what are 'conditionals' (e.g., if, else if, else)?

    Proverbial forks in the road where the program decides which way to go based on a question.

  57. What is a 'Boolean expression'?

    A question with a yes or no, true or false, black or white, or one or zero answer.

  58. What is the logical significance of indentation in pseudocode and many programming languages?

    It indicates which lines of code are part of a conditional block or loop, determining whether they are executed.

  59. What is a 'loop' in programming?

    A construct that makes the program go back to a previous line, creating a cycle to repeat actions again and again.

  60. What guarantees that the binary search algorithm (with its 'go back to' loops) will not result in an infinite loop?

    The problem is continually divided in half, ensuring that eventually, the search space will be exhausted, and the person will either be found or confirmed absent.

  61. What is the common cause of a computer freezing or spontaneously rebooting?

    A 'bug' in the code, where a programmer made a mistake and didn't anticipate a scenario, leading to undefined behavior.

  62. How is artificial intelligence (AI) typically implemented, especially for chatbots like ChatGPT, rather than with infinite conditionals?

    By training it on vast amounts of data using large language models, which are often implemented with neural networks.

  63. What are neural networks in the context of AI?

    Software implementations inspired by biological neurons, forming graphs or networks where 'neurons' transmit 'signals' to produce an answer based on input data.

  64. What is 'rubber duck debugging'?

    A programming technique where you explain a problem line-by-line to an inanimate object (like a rubber duck) to help you logically identify errors in your code.

  65. What is the name of CS50's own AI-based tool for students?

    CS50.ai, which takes the persona of a rubber duck.

  66. Why is C taught early in CS50, despite being an older language?

    It provides a strong conceptual foundation for understanding how computers work at a lower level, which then makes learning newer languages like Python easier.

  67. What are 'arguments' in the context of functions?

    Inputs to a function.

  68. What is a 'side effect' of a function?

    Something visually or audibly apparent that the function does, beyond returning a value.

  69. What is a 'return value' of a function?

    A value that the function hands back to you, which can be stored in a variable and reused.

  70. What are 'variables' in programming?

    Placeholders (like x, y, z in math) used to store return values or other data, typically described with actual words in programming.

  71. What is the benefit of creating custom blocks or functions in a programming language like Scratch?

    It allows you to invent your own reusable puzzle pieces, abstracting away implementation details and simplifying your main program.

  72. What does it mean to 'abstract away' implementation details?

    To hide the specific inner workings of a function or component once it has been defined, so you only need to know what it does, not how it does it.

  73. In Scratch, what is an 'event'?

    Something that can happen on the screen, such as a click, drag, or mouse movement, which can trigger a block of code.

  74. How can you implement animation, like Oscar the Grouch popping in and out of his trash can, in Scratch?

    By quickly switching between different 'costumes' (images) of the sprite, often within a loop and based on a conditional (e.g., touching the mouse pointer).

  75. How can a sprite be made to reappear at a different random location after being 'collected' in Scratch?

    By using a 'go to random x' block and setting the y-coordinate to a fixed top position, effectively 'teleporting' it.

  76. What is the general advice for implementing complex programs or games in Scratch (or any language)?

    Take proverbial baby steps, implementing one tiny feature at a time, rather than trying to build everything at once.

Card 1 of 76
Card 1 of 76

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent