1. Home
  2. Explore
  3. Computer Science
  4. Computer Science and Problem Solving

Study methods

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

Computer Science and Problem Solving

  • 47Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: CS Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

How can Computer Science be understood as a toolbox?

Tap to flipClick to flipspace

It is a collection of ideas and techniques used to solve real-life problems.

Or swipe the card

47 cards

  1. How can Computer Science be understood as a toolbox?

    It is a collection of ideas and techniques used to solve real-life problems.

  2. What are the basic stages of computer-based problem solving?

    Give the computer an input, let it process the input, and receive an output.

  3. In the problem-solving model, what does the input represent?

    The problem to be solved.

  4. In the problem-solving model, what does the output represent?

    The goal or result we want.

  5. How do Computer Science and DSA contribute to problem solving?

    They provide ideas and techniques that can be applied to a problem to generate a result.

  6. What electronic component is described as a fundamental part of a computer?

    A transistor.

  7. How many transistors does a computer typically contain, according to the lesson?

    Billions.

  8. What two states can a transistor have at a given time?

    ON or OFF.

  9. What does an ON transistor indicate?

    Current is flowing through it.

  10. What does an OFF transistor indicate?

    Current is not flowing through it.

  11. How are a transistor's electrical states represented as binary digits?

    ON, with current, is represented by 111; OFF, with no current, is represented by 000.

  12. What is a bit in the transistor-based explanation?

    A bit represents the state of one transistor: whether current is present or absent.

  13. Why are computers said to understand zeros and ones?

    Their transistors have two electrical states, ON and OFF, which are represented by 111 and 000.

  14. What happens to the number of possible states when one more transistor is added?

    The number of possibilities doubles.

  15. How does the coin-flip example illustrate binary possibilities?

    One coin has 222 outcomes, two coins have 444, and three coins have 888.

  16. What does the prefix “bi-” indicate in the term “binary”?

    Two; binary numbers use the two digits 000 and 111.

  17. When listing binary combinations in order, where should you begin checking the bulbs?

    At the rightmost bulb.

  18. When advancing to the next binary combination, what do you do if the rightmost bulb is OFF?

    Turn it ON.

  19. When advancing a binary count, what happens if the rightmost bulb is ON?

    Turn it OFF and carry the change to the bulb on its left; continue left if needed until an OFF bulb can be turned ON.

  20. What should you do when every bulb in a binary representation is ON?

    Add a new bulb to the left to represent more values.

  21. When adding a new bulb after reaching an all-ON combination, how is the next starting state formed?

    Turn the existing ON bulbs OFF, then add a new ON bulb on the left.

  22. What binary combination represents zero with one bulb?

    000

  23. What binary combination represents one with one bulb?

    111

  24. What binary combination represents decimal 222?

    101010

  25. What binary combination represents decimal 333?

    111111

  26. What binary combination represents decimal 444?

    100100100

  27. What binary combination represents decimal 555?

    101101101

  28. What binary combination represents decimal 666?

    110110110

  29. What binary combination represents decimal 777?

    111111111

  30. What binary combination represents decimal 888?

    100010001000

  31. What binary combination represents decimal 999?

    100110011001

  32. What binary combination represents decimal 101010?

    101010101010

  33. What binary combination represents decimal 111111?

    101110111011

  34. What binary combination represents decimal 121212?

    110011001100

  35. What binary combination represents decimal 131313?

    110111011101

  36. What binary combination represents decimal 141414?

    111011101110

  37. What binary combination represents decimal 151515?

    111111111111

  38. How many combinations can be represented using nnn bulbs or bits?

    2n2^n2n combinations.

  39. What is the largest value representable with nnn bits?

    2n−12^n - 12n−1.

  40. What values can be represented with three bits?

    Values from 000 through 777, giving 888 total combinations.

  41. What values can be represented with four bits?

    Values from 000 through 151515, giving 161616 total combinations.

  42. Why does adding one bit increase the number of possible combinations?

    It doubles the number of combinations because the new bit can be either 000 or 111.

  43. What is a compiler?

    A software program that converts the code you write into machine code.

  44. What is machine code in the lesson's explanation?

    Code represented using zeros and ones.

  45. Why is machine code suitable for a computer to understand?

    It uses 000 and 111, which correspond to the computer's transistors being OFF or ON.

  46. Does a programmer need to manually convert every written program into zeros and ones?

    No. The compiler performs the conversion into machine code.

  47. What role does the compiler play between a programmer and the computer?

    It translates the programmer's code into machine code that the computer can understand.

Card 1 of 47
Card 1 of 47

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent