Computer Science Midterm Exam - Study Notes
46 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following could be described as an input for a computer? (Select all that apply)

  • Touchscreen (correct)
  • Microphone (correct)
  • Speaker
  • Monitor
  • All of the above
  • Which of the following could be described as processing and the output of processing?

  • After counting the number of clicks, the screen updates. (correct)
  • If you guess wrong, then you get a message. (correct)
  • If your guess matches the right number, then music plays. (correct)
  • If your high score is greater than the last high score, then the score is updated on the screen. (correct)
  • All of the above
  • What types of information could a computer store?

  • Apps
  • Photos
  • Music
  • Location
  • All of the above (correct)
  • Which problems cannot be solved with computing? (Select all that apply)

    <p>Take actions to reverse climate change</p> Signup and view all the answers

    Measure today's air quality.

    <p>Input</p> Signup and view all the answers

    Retain the air quality data for each day.

    <p>Storage</p> Signup and view all the answers

    Compare today's air quality with the air quality from recent days.

    <p>Processing</p> Signup and view all the answers

    Which word is best defined as "a language used to describe how HTML elements should be styled"?

    <p>CSS</p> Signup and view all the answers

    Which of these tasks are most appropriate for CSS? (Select all that apply)

    <p>Change the font size</p> Signup and view all the answers

    Which are you more likely to find in a CSS file? (Select all that apply)

    <p>1 clouds { 2 height: 50px; 3}</p> Signup and view all the answers

    Debug the following image tag <img src=rainbow.jpg" alt="a rainbow">

    <p>Add a starting quotation mark to the name of the rainbow.jpg file</p> Signup and view all the answers

    Color is a CSS property which

    <p>specifies the color of text.</p> Signup and view all the answers

    If you can't afford to copyright your work and want to protect it from being copied then you can

    <p>Get a free Creative Commons license.</p> Signup and view all the answers

    Given the following website, what would you add to the CSS file so the images of clouds and rainbows have a height of 50 px?

    <p>1 .clouds { 2 height: 50px; 3} 4 5 .rainbows { 6 height: 50px; 7}</p> Signup and view all the answers

    Given this webpage, predict the HTML.

    <!DOCTYPE html> <html> <head> </head> <body> <h1>My Pets</h1> <h2>Dog</h2> <h4>Lula</h4> <h4>Slowpoke</h4> </body> </html> Signup and view all the answers

    Predict the CSS given the webpage and HTML below.

    <p>1 h1 { 2 font-size: 100px; 3 color: blue; 4} 5 6 p { 7 font-size: 50px; 8}</p> Signup and view all the answers

    Which of the following is an example of your digital footprint?

    <p>All of the above</p> Signup and view all the answers

    Which of the following elements most likely increase a website's trustworthiness?

    <p>Sources are cited</p> Signup and view all the answers

    Defines a paragraph.

    <p> </p> Signup and view all the answers

    Defines the largest bold header.

    <h1> </h1> Signup and view all the answers

    Contains an ordered list of numbered list items.

    <ol> </ol> Signup and view all the answers

    Contains an unordered list of bulleted list items.

    <ul> </ul> Signup and view all the answers

    Defines a list item within the ol/ul container.

    <li> </li> Signup and view all the answers

    Used to leave comments or notes (aka "comment out").

    <!-- --> Signup and view all the answers

    Insert a line break between paragraphs.

    <br> Signup and view all the answers

    Insert a horizontal rule (line) between paragraphs.

    <hr> Signup and view all the answers

    Insert an ampersand.

    <p>&amp;</p> Signup and view all the answers

    Insert an image into HTML code.

    <img src=" " alt=" "> Signup and view all the answers

    Connects stylesheet to the HTML code.

    <head> <link rel="stylesheet" href=“__.css"> </head> Signup and view all the answers

    Format for setting styles on the stylesheet.

    <p>Rule-Set = Selector { property: value; }</p> Signup and view all the answers

    Specifies the color of text.

    <p>color: value;</p> Signup and view all the answers

    Specifies the style of font.

    <p>font-family: value;</p> Signup and view all the answers

    Aligns text left, right, or center.

    <p>text-align: value;</p> Signup and view all the answers

    Specifies the appearance of decorative lines on text (most common are line, color, style).

    <p>text-decoration: value;</p> Signup and view all the answers

    Specifies the background color of an element.

    <p>background-color: value;</p> Signup and view all the answers

    Specifies the color for all four sides of an element's border.

    <p>border-color: value;</p> Signup and view all the answers

    Allows you to add rounded corners to elements.

    <p>border-radius: value;</p> Signup and view all the answers

    Specifies the line style for all four sides of an element's border.

    <p>border-style: value;</p> Signup and view all the answers

    Places elements on the left or right side of the screen and allows text and other elements to wrap around it.

    <p>float: value;</p> Signup and view all the answers

    Specifies the height of the content area of an element.

    <p>height: value;</p> Signup and view all the answers

    Specifies the size of the margin area around an element.

    <p>margin: value;</p> Signup and view all the answers

    Creates a link to other external sites or other pages for the same site.

    <p><a href=" .html"> </a></p> Signup and view all the answers

    What is a computer?

    <p>A computer is an electronic device that can process and store information. It accepts input from a user, processes the information, and produces output, often in the form of visual displays, audio, or printed documents. Computers can perform a wide variety of tasks, from simple calculations to managing complex systems.</p> Signup and view all the answers

    Choose an app. Use this example to explain input, processing, storage, and input.

    <p>Let's take the example of a weather app.</p> <ol> <li> <p><strong>Input:</strong> The app receives input from various sources, such as weather sensors, weather stations, and satellite data. This data is the raw information that the app uses.</p> </li> <li> <p><strong>Processing:</strong> The app processes the gathered data to generate forecasts, calculate temperature, humidity, wind speed, and other weather conditions. It uses algorithms and models to make predictions and provide meaningful insights for the user.</p> </li> <li> <p><strong>Storage:</strong> The app might store historical data or user preferences so it can provide personalized information. Data is efficiently organized within the device's storage.</p> </li> <li> <p><strong>Output.</strong> The app presents the processed information to the user through a visual interface, such as displaying maps, charts, and textual descriptions of weather conditions. The user can also interact with the app by using gestures or buttons, sending new input back to the app.</p> </li> </ol> Signup and view all the answers

    What is the difference between HTML and CSS?

    <p>HTML (HyperText Markup Language) provides the structure and content of a webpage. It defines the layout, headings, paragraphs, images, and other elements. CSS (Cascading Style Sheets) controls the visual presentation and styling of the webpage. It defines the colors, fonts, sizes, spacing, and overall appearance.</p> Signup and view all the answers

    Why should students who did NOT choose to be in this elective class still give their best effort to master the lessons from the Code.org curriculum?

    <p>Developing computational thinking skills is valuable in today's world, regardless of career path. Critical thinking, problem-solving, creativity, and collaboration—all emphasized in computer science—are transferable to nearly every field. Even if students don't choose to pursue technology careers, the skills they gain from computer science can benefit them across various academic and professional endeavors.</p> Signup and view all the answers

    Study Notes

    Computer Science Midterm Exam - Study Notes

    • UNIT ONE - Input, Processing, Output, Storage
      • Input Devices: Touchscreen, microphone
      • Processing: Counting clicks updating screen, guessing correctly playing music, updating high scores
      • Output: Screen updates, messages, music, high score updates
      • Storage: Apps, photos, music, location
      • Problems that computing can't solve include counting and measuring rising sea levels, finding cities with the most air pollution, comparing greenhouse gas emissions, and taking actions to reverse climate change
      • Input, Output, Processing, and Storage Examples: Measuring air quality is input, storing data for each day is storage, comparing today's quality to recent days is processing
    • UNIT TWO - Web Development
      • CSS (Cascading Style Sheets): A language to style HTML elements
      • CSS tasks: Changing background color, adding images, links, changing font size
      • CSS File Content: Includes styles like 1. clouds{ 2 height: 50px; 3} for specifying formatting
      • HTML elements: Image tags <img src="rainbow.jpg" alt="a rainbow">, headings (<h1>, <h2>, etc.), paragraphs (<p>), and links (<a href="...">)
      • Debugging Image Tags: Ensure correct alt attributes and quotation marks around image file names, starting and closing the image tag
      • Color CSS Property: Used to specify text colors, and location on the screen, not size
      • Protecting Work: Options include copyright, trademark, or patent
      • HTML and CSS in Webpage:
        • HTML provides the content (structure, headings, text), while CSS styles the content visually (colors, sizes, positioning).
    • General Knowledge
      • Digital Footprint Examples: Birthday, address, phone number, name (all these represent personal data online and in the real world).
      • Website Trustworthiness Elements: High-quality images, cited sources, not being posted anonymously
      • HTML and CSS Concepts
        • Paragraphs (<p>)
        • Largest header (<h1>)
        • Smallest header (<h6>)
        • Ordered list (<ol>)
        • Unordered list (<ul>)
        • List item (<li>)
        • Comments (<!-- -->)
        • Line breaks (<br>)
        • Horizontal rules (<hr>)
        • Ampersand symbol (&amp;)
        • Image insertion (<img src="image.jpg" alt="description">)
        • Linking to other pages or external sites (<a href="...">)
        • Connecting CSS stylesheet to HTML

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Description

    Prepare for your Computer Science midterm exam with these comprehensive study notes covering input, processing, output, storage, and web development concepts like CSS. Enhance your understanding of key computational problems and how they relate to environmental challenges. This resource will help reinforce your knowledge and boost your confidence before the exam.

    More Like This

    Use Quizgecko on...
    Browser
    Browser