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 (B), Passing laws to reduce fossil fuels (D)</p> Signup and view all the answers

Measure today's air quality.

<p>Input (A)</p> Signup and view all the answers

Retain the air quality data for each day.

<p>Storage (A)</p> Signup and view all the answers

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

<p>Processing (B)</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 (C)</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 (A), Add an image (B), Add a link (C), Change the background color (D)</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} (C), 1 body { 2 background: mistyrose; 3} (E)</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 (A), Add a closing </img> tag (B)</p> Signup and view all the answers

Color is a CSS property which

<p>specifies the color of text. (C)</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. (A)</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} (A)</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> (E) 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} (E)</p> Signup and view all the answers

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

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

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

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

Defines a paragraph.

<p> </p> (A) Signup and view all the answers

Defines the largest bold header.

<h1> </h1> (A) Signup and view all the answers

Contains an ordered list of numbered list items.

<ol> </ol> (C) Signup and view all the answers

Contains an unordered list of bulleted list items.

<ul> </ul> (B) Signup and view all the answers

Defines a list item within the ol/ul container.

<li> </li> (D) Signup and view all the answers

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

<!-- --> (C) Signup and view all the answers

Insert a line break between paragraphs.

<p><br> (A)</p> Signup and view all the answers

Insert a horizontal rule (line) between paragraphs.

<hr> (A) Signup and view all the answers

Insert an ampersand.

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

Insert an image into HTML code.

<p><img src=" " alt=" "> (C)</p> Signup and view all the answers

Connects stylesheet to the HTML code.

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

Format for setting styles on the stylesheet.

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

Specifies the color of text.

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

Specifies the style of font.

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

Aligns text left, right, or center.

<p>text-align: value; (B)</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; (A)</p> Signup and view all the answers

Specifies the background color of an element.

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

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

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

Allows you to add rounded corners to elements.

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

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

<p>border-style: value; (A)</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; (D)</p> Signup and view all the answers

Specifies the height of the content area of an element.

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

Specifies the size of the margin area around an element.

<p>margin: value; (B)</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> (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

Flashcards

Processing

The process of taking raw data and transforming it into meaningful information.

Program

A set of instructions that a computer follows to perform a specific task.

Secondary Storage

A type of storage that retains data even when the power is turned off.

Storage

The process of storing data for future use.

Signup and view all the flashcards

Hardware

The physical components of a computer system.

Signup and view all the flashcards

Software

The set of instructions used to control the hardware and software.

Signup and view all the flashcards

HTML (HyperText Markup Language)

A language used to create web pages and define their structure.

Signup and view all the flashcards

CSS (Cascading Style Sheets)

A programming language used to add styling and presentation to web pages.

Signup and view all the flashcards

Interpreted Language

A type of programming language that is executed line-by-line.

Signup and view all the flashcards

Compiled Language

A programming language that is converted into machine code before execution.

Signup and view all the flashcards

Code

A text-based programming language that tells the computer what to do.

Signup and view all the flashcards

Website Map

A visual representation of the structure and content of a website.

Signup and view all the flashcards

Website Consistency

Using consistent design elements to create a uniform look across multiple web pages.

Signup and view all the flashcards

Search Engine Optimization (SEO)

Process of improving website visibility in search engines.

Signup and view all the flashcards

JavaScript

A programming language that is specifically designed for web development.

Signup and view all the flashcards

Script

A type of programming language that is executed line-by-line.

Signup and view all the flashcards

Applet

A small program designed to perform a specific task.

Signup and view all the flashcards

HTML Tag

A tag that defines an element on a web page.

Signup and view all the flashcards

CSS Rule

A set of rules that determine how elements on a web page should be displayed.

Signup and view all the flashcards

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

Computer Science: I/O Processing and Storage
10 questions
Introduction to Computers
46 questions

Introduction to Computers

FelicitousThorium avatar
FelicitousThorium
Hardware Devices Module 1.2
49 questions
Use Quizgecko on...
Browser
Browser