• 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 3 out of 27 pages
Exam (elaborations)

Computer Science Principles Final Exam Questions & Answers | Study Guide 2026/2027

Document preview thumbnail
Preview 3 out of 27 pages

Computer Science Principles Final Exam Questions & Answers | Study Guide 2026/2027

Content preview

Computer
Computer
Computer
Science
Science
Science
Principles
Principles
Principles
Final
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@




Computer Science Principles Final Exam


(C) 3 9

What is displayed because of executing the code segment?


(A) 1 3 5 7 9
(B) 1 5 7
(C) 3 9
(D) 9




(D) Golden Bandicoot Cat Fish

What is displayed as a result of executing the code segment?


petList <-- "Dog"
APPEND (petList, "Cat)
APPEND (petList, "Fish")
INSERT (petList, 2, "Golden Bandicoot")
REMOVE (petList, 1)
FOR EACH item IN petList:
DISPLAY(item)


(A) Dog Cat Fish Golden Bandicoot




Computer
Computer
Computer
Science
Science
Science
Principles
Principles
Principles
Final
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@

,Computer
Computer
Computer
Science
Science
Science
Principles
Principles
Principles
Final
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@




(B) Dog Cat Fish
(C) Dog Golden Bandicoot Cat Fish
(D) Golden Bandicoot Cat Fish

(C) I and II only

At a certain high school students receive letter grades based on the following scale: 93
or above is an A, 84 to 92 is a B, 75 to 83 is a C, and below 75 is an F. Which of the
following code segments will assign the correct string to grade for a given integer
score?


I. IF (score ≥ 90){Display ("A")}IF (score ≥ 80 AND score ≤ 89){Display ("B")}IF (score ≥
70 AND score ≤ 79){Display ("C")}IF (score < 70){Display ("D")}


II. IF (score ≥ 90){Display ("A")}ELSE{IF (score ≥ 80 AND score ≤ 89){Display
("B")}ELSE{IF (score ≥ 70 AND score ≤ 79){Display ("C")}ELSE{Display ("D") }}}


III. IF (score ≥ 90){Display ("A")}IF (score ≥ 80 AND ≤ 89){Display ("B")}IF (score ≥ 70
AND ≤ 79){Display ("C")}IF (score < 70){Display ("D")}


(A) I only
(B) III only
(C) I and II only
(D) I, II, and III

(C) 24

Colors can be represented by decimal values from 0 to 255. If each pixel in a photo is a
combination of three color values, what is the minimum number of bits needed to store
a single pixel?




Computer
Computer
Computer
Science
Science
Science
Principles
Principles
Principles
Final
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@

, Computer
Computer
Computer
Science
Science
Science
Principles
Principles
Principles
Final
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@




(A) 512
(B) 256
(C) 24
(D) 8

(A) All data traveling over the internet is binary.

Which of the following is a true statement about data transmitted over the internet?


(A) All data traveling over the internet is binary.
(B) Packets are received in the same order that they are sent.
(C) Redundancy in the design of the internet is overseen by large companies that set
the standards used.
(D) The domain name system (DNS) has been challenged by the Digital Millennium
Copyright Act (DMCA).

(D) Nothing will be displayed due to the error index out of bounds.

What will the following code segment display?


(A) 1 4 7 10 9
(B) 10 7 4 1
(C) 9 10 7 4 1
(D) Nothing will be displayed due to the error index out of bounds.




(D) x≤10




Computer
Computer
Computer
Science
Science
Science
Principles
Principles
Principles
Final
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Final
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@
Exam.pdf!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@@@@@@@@@@@@@@@@@@@@@@@

Document information

Uploaded on
August 29, 2026
Number of pages
27
Written in
2026/2027
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

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
rnmaster
5.0
(2)
Sold
199
Followers
0
Items
59
Last sold
1 month 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