• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 31 pages
Exam (elaborations)

CS111 Final Exam Mastery Guide – Everything You need to score

Document preview thumbnail
Preview 4 out of 31 pages

What is a logical AND operator in JavaScript? The '&&' operator, which returns true only if both operands are true. What is the difference between null and undefined in JavaScript? Null is a specific value indicating no value, while undefined means a variable has not been initialized. What is a table layout in HTML? A structure that organizes content into rows and columns using table, tr, th, and td tags. What is the purpose of the img tag in HTML? To embed images in a webpage. What does the ul tag represent in HTML? An unordered list. What is the purpose of the 'style' attribute in HTML? To apply inline CSS styles to an element. What is the significance of the 'class' attribute in HTML? It allows multiple elements to share the same styling. What does the term 'syntax' refer to in programming? The set of rules that defines the combinations of symbols that are considered to be correctly structured programs. How many times would the following loop iterate? Set k=1, while k5, display k, Set k=k+1 4 The amount by which the counter variable is incremented or decremented in a For loop is known as the ________. step amount A loop that accumulates a total as it reads each number from a series is often said to keep a(n) ________. running total Which type of loop is specifically designed to initialize, test, and increment or decrement a counter variable? For Which type of loop uses a Boolean expression to control the number of times a loop repeats? condition-controlled If the following pseudocode were coded and executed, assuming all variables have been declared as integers, what would be the display? x=0, for m=1 to 3, for p=1 to 3, set x =x+p 18 How many times would the following loop iterate? j=1 to 5 step 2, display j 3 How many times would the following loop iterate? K=1, k=5, display k infinite

Content preview

CS111 Final Exam Mastery Guide –
Everything You need to score
What is a logical AND operator in JavaScript?
The '&&' operator, which returns true only if both operands are true.
What is the difference between null and undefined in JavaScript?
Null is a specific value indicating no value, while undefined means a variable has not been
initialized.
What is a table layout in HTML?
A structure that organizes content into rows and columns using <table>, <tr>, <th>, and <td>
tags.
What is the purpose of the <img> tag in HTML?
To embed images in a webpage.
What does the <ul> tag represent in HTML?
An unordered list.
What is the purpose of the 'style' attribute in HTML?
To apply inline CSS styles to an element.
What is the significance of the 'class' attribute in HTML?
It allows multiple elements to share the same styling.
What does the term 'syntax' refer to in programming?
The set of rules that defines the combinations of symbols that are considered to be correctly
structured programs.
How many times would the following loop iterate? Set k=1, while k<5, display k, Set k=k+1
4
The amount by which the counter variable is incremented or decremented in a For loop is
known as the ________.
step amount
A loop that accumulates a total as it reads each number from a series is often said to keep
a(n) ________.
running total
Which type of loop is specifically designed to initialize, test, and increment or decrement a
counter variable?
For
Which type of loop uses a Boolean expression to control the number of times a loop
repeats?
condition-controlled
If the following pseudocode were coded and executed, assuming all variables have been
declared as integers, what would be the display? x=0, for m=1 to 3, for p=1 to 3, set x =x+p
18
How many times would the following loop iterate? j=1 to 5 step 2, display j
3
How many times would the following loop iterate? K=1, k<=5, display k
infinite

,If an expression is False, the ________ operator will return True.
NOT
A(n) ________ represents a special value that marks the end of a list of values.
sentinel
In the following pseudocode, which value is the accumulator? x=0, for m=1 to 10, set x=x
+m, display x
x
Which of the following is the structure that causes a statement or set of statements to
execute repeatedly?
repetition
The following is an example of a ________ loop. While x< 10, sum = sum+x, set x=x+1
count controlled
In a For loop the programmer must know the exact number of iterations the loop must
perform before writing the code.
False
The While loop gets its name from the way it works: It does a task while a condition is
false.
False
In the following pseudocode counter is the accumulator. counter =1 to 6, set numberwidget
= numberwidget+counter
False
The test condition in a While loop must always be an integer value.
False
While and For loops are considered pretest loops because they test the condition before
processing the statement or statements in the loop body.
True
What programming language is introduced in Week 1?
JavaScript
When is Project 0 due?
4/7 at 8pm
What percentage of the grade do labs contribute?
10% (with the lowest grade dropped)
What is the total percentage for midterms in the course?
30% (3 midterms in person)
What is the late policy for assignments?
10% deduction per day, up to 50%
What is HTML?
Hypertext Markup Language, used for structuring content on the web.
What does CSS stand for?
Cascading Style Sheets, used for styling HTML elements.
What is the purpose of JavaScript?
To add dynamic and interactive components to web pages.
What does the <h1> tag represent in HTML?
The main heading of a webpage.
What is the function of the <meta> tag in HTML?
To provide metadata about the HTML document, such as character set.

,What is the structure of an HTML document?
<html> <head> <body> </body> </head> </html>
What is the difference between <div> and <span> in HTML?
<div> defines a block-level element, while <span> defines an inline element.
What does the 'id' attribute do in HTML?
It uniquely identifies an element within the document.
What is the purpose of the console.log() function in JavaScript?
To print output to the console for debugging purposes.
What is a while loop in JavaScript?
A control structure that repeats a block of code as long as a specified condition is true.
What does 'let x = 5;' do in JavaScript?
It declares a variable 'x' and initializes it with the value 5.
Convert the binary (base-2) number 1001 to decimal (base-10)
9
convert the decimal (base-10) number 20 to binary (base-2)
10100
Which of the following binary (base-2) numbers is LARGEST?
11000000
How many of the total numbers can be represented with an 8-bit binary (base-2) system?
256
Which of the following is true of lossy and lossless compression algorithms?
Lossy compression algorithms are typically better than lossless compression algorithms at
reducing the number of bits needed to represent a piece of data
Jorge is sending a large image file as part of a shared classroom project. Which of the
following is most likely true if Jorge opts to compress the image before sending it?
The image will require fewer bits in order to be represented.
The following statement is true of intellectual property
Creative commons enables content creators to freely distribute their otherwise copyrighted work
Lucy is completing a project as part of a science class using materials she found online. The
following is MOST LIKELY to lead to legal consequences.
Using images posted online by another student without permission or citation.
Ryan is designing an app that needs to quickly send low quality photos between users. Most
smartphones take much higher quality photos than Ryan needs for his app. The following
is the type of compression Ryan should choose and why.
Lossy compression since it typically results in smaller data sizes.
Arman takes a picture with his smartphone which he subsequently posts online. Beatrice
finds the picture online and posts a copy of it on her website with an attached Creative
Commons license. The following best describes who owns the photos...
Arman owns the photos because he was the original creator and did not license the work.
The Americans with Disabilities Act (ADA) requires that public schools purchase or
acquire funding for adaptive technologies.
False
Which of the following is the science that combines technology and engineering?
Robotics
You work for a company that is losing sales because it takes days to manufacture products.
What technology can you suggest the company use to speed production?

, computer-aided manufacturing
_____ is the gap between those who have access to technology and its resources and
information, especially on the Internet, and those who do not.
digital divide
What technology can collect information to make decisions, reach conclusions, and
combine information in new ways?
artificial intelligence
Jorge saw a computer named Watson on the game show Jeopardy and was surprised at
how many answers Watson was able to get correct, especially because the math problems
involved solving equations. Watson was using augmented reality to solve the problems.
false
Which of the following is an example of green computing?
Purchase and use products with an ENERGY STAR label.
Andy has diabetes and he is not good about taking his medications or even checking his
insulin levels. His doctor has recently started using mobile health (mHealth). How will
Andy's doctor's use of mHealth help Andy get his diabetes under control?
d. He will receive text reminders to take his medications and check his insulin.
Embedded computers usually are small and have limited hardware but enhance the
capabilities of everyday devices.
true
Which of the following would be considered a professional networking website?
Linkedin
Akira has trouble reading what is on the computer screen and sometimes seeing pictures on
websites. As her friend, you explain there are technologies available to help her. Describe
what technology she might use.
use a screen reader
Andy has diabetes and he is not good about taking his medication or even checking his
insulin levels. His doctor has recently started using mobile health (mHealth). How will
Andy's doctor's use of mHealth help Andy get his diabetes under control?
He will receive text reminders to take his medication and insulin
Taran wants to work in the technology field but is unsure of which career to pursue. He
has been told he has strong people skills; he is good at figuring out what is wrong with
computers and fixing them; and he is patient and helpful when others do not know how to
use computers. As his college advisor, which technology careers would you suggest he
explore? (530305)
help desk support
Sofie has strong people skills, listens well, and communicates effectively. Which technology
career may be a good fit for her? (515840)
technology sales
If you want to become a digital citizen, you only have to buy a piece of technology. (530296)
false
How is a microprocessor different from an integrated circuit? (515817)
B:Microprocessors are faster, smaller and less expensive than integrated circuits.
New cars use embedded computers to make driving safer. (530277)
true

Document information

Uploaded on
May 18, 2026
Number of pages
31
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
3
Followers
0
Items
162
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions