Search Header Logo

Computer Science Semester 2 2022-2023 Final Exam

Authored by Kala Griffin

others

Used 9+ times

Computer Science Semester 2 2022-2023 Final Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is the Internet Protocol (IP)?

A set of rules describing what behavior is acceptable on the Internet
A law that says that the Internet is for everyone
A protocol that defines the structure of an Internet address and assigns a unique address to every device on the Internet
An agreement that sets a limit on the number of computers than can be on the Internet at any given time

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Why do programmers use variables?

Because they are lazy and don’t want to write out equations every time
It allows the programmer to reuse multiple lines of code
They are a way to document functions
To store values to easily reuse later and make code easier to read and understand

3.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Suppose you have the following CSS rules:

p { color: green; }

.fire { color: red; }

#title { color: blue; }

What font color will the following HTML element have after being styled by the given CSS:

<p class="fire" id="title">Hello World!</p>

red

blue

green

black

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Suppose you have written a web page using HTML and CSS and it is hosted at the URL yourdomain.com/home.html Which of the following statements is true about which devices can view your website?

Only browsers on desktop computers can view your website because only desktop browsers can render HTML based web pages.
Only browsers on mobile phones can view your website because only mobile browsers can render HTML based web pages.
Only computers made after the day you publish your website can view your website. Older computers can’t understand HTML and CSS.
Any browser on any device will be able to view your webpage, because all browsers and devices on the Internet agree to use the same protocols for sending, receiving, and viewing webpages.

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following statements are true about styling your web pages with CSS: I. Styling with CSS is more scalable than using style= on each HTML tag that you want to style II. You can create styles with CSS that are not possible using style= on an HTML tag

I only
II only
I and II
Neither I nor II

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is the result of the following HTML code: <ol>

<li>Bread</li>

<li>Milk</li>

<li>Eggs</li>

</ol>

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which of the following is a valid CSS rule?

Media Image
Media Image
Media Image
Media Image

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?