CSP Unit 4 Variables, Conditionals, and
Function Assessment
What quantity can be output by using the console.Log command on line 7? - ANS100
What range could be output through the console.Log command online 5? - ANS16
What quantity can be output with the aid of the console.Log command on-line five? - ANS35
What textual content might be output by way of this system? - ANS30 or greater
What textual content will be output with the aid of the program? - ANSOutput D
What could be the order of letters revealed to the console while this program is run? - ANSa b c
bc
"You win!" in no way displays. What line is chargeable for this error? - ANS3
When this function is referred to as, the smaller of two numbers is displayed. What Boolean
expression might no longer work in line 12 a good way to accomplish this aim? - ANSnum1 ==
num2
This characteristic chooses the display screen to show based at the rating. What is the ideal
manner to call this feature? - ANScheckWin();
There is repeated code in those onEvent blocks. Choose the correct code for the
updateScreen() feature which might be referred to as in each of the onEvent blocks. -
ANSfunction updateScreen()
set Text("counter_label", counter);
if (counter == zero)
setProperty("counter_label", "font-length", 24);
A movie theater expenses exclusive price tag expenses based on a purchaser's age. The costs
are shown inside the desk underneath. The customer's age is stored within the variable age and
the fee is stored in the variable charge. Which piece of code will effectively determine the price
for each price tag? - ANSif (age >= sixty five)
price == 6;
else if (age > 12)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Legitexams. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.