Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

CODEHS final exam QUESTIONS WITH ANSWERS

Document preview thumbnail
Preview 2 out of 8 pages

CODEHS final exam QUESTIONS WITH ANSWERS

Content preview

CODEHS final exam QUESTIONS |\ |\ |\ |\




WITH ANSWERS |\




A store has 20 apples in its inventory. How can you store
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\



this information in a JavaScript variable? - CORRECT
|\ |\ |\ |\ |\ |\ |\ |\



ANSWERS ✔✔var numApples = 20; |\ |\ |\ |\




You want to read input from the user to know how many
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\



apples they would like to buy. Which statement should
|\ |\ |\ |\ |\ |\ |\ |\ |\



you use to read in a number from the user? - CORRECT
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\



ANSWERS ✔✔var applesToBuy = readInt("How many|\ |\ |\ |\ |\ |\



apples would you like? ");
|\ |\ |\ |\




In a graphics canvas, what are the coordinates of the
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\



bottom right corner of the window? - CORRECT ANSWERS
|\ |\ |\ |\ |\ |\ |\ |\ |\



✔✔getWidth(), getHeight() |\




You are splitting up all of your apples equally between 3
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\



people. Which statement below will calculate how many
|\ |\ |\ |\ |\ |\ |\ |\



apples will be left over? - CORRECT ANSWERS ✔✔var
|\ |\ |\ |\ |\ |\ |\ |\ |\



leftOver = numApples % 3; |\ |\ |\ |\




What are the coordinates of the center of the window? -
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\



CORRECT ANSWERS ✔✔getWidth() / 2, getHeight() / 2
|\ |\ |\ |\ |\ |\ |\

, Which of the following choices is a properly formed
|\ |\ |\ |\ |\ |\ |\ |\ |\



JavaScript variable name, meaning it is both legal in the
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\



JavaScript language and considered good style -
|\ |\ |\ |\ |\ |\ |\



CORRECT ANSWERS ✔✔userAge
|\ |\




Who/What is Karel? - CORRECT ANSWERS ✔✔Karel is a
|\ |\ |\ |\ |\ |\ |\ |\ |\



dog


What DOES NOT belong in the start function? - CORRECT
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\



ANSWERS ✔✔Function definition
|\ |\




Which of these is a valid Karel command? - CORRECT
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\



ANSWERS ✔✔move() |\




Which of these commands does Karel NOT know? -
|\ |\ |\ |\ |\ |\ |\ |\ |\



CORRECT ANSWERS ✔✔turnCircle();
|\ |\




What commands does Super Karel know that regular Karel
|\ |\ |\ |\ |\ |\ |\ |\



does not? - CORRECT ANSWERS ✔✔turnAround( ) and
|\ |\ |\ |\ |\ |\ |\ |\ |\



turnRight( ) |\




Abstraction is ... - CORRECT ANSWERS ✔✔All of the above
|\ |\ |\ |\ |\ |\ |\ |\ |\

Document information

Uploaded on
March 20, 2026
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$18.49

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.
EXAMSTUDYPLUG
4.5
(242)
Sold
383
Followers
108
Items
20774
Last sold
18 hours 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