_____ is used by all computers. - correct answer ✔✔Machine code
Every programming language's source code is always written in _____. - correct answer ✔✔Plain Text
The closer a language is to machine code, the more difficult it is to write.
T or F - correct answer ✔✔True
What is true about higher-level programming languages? - correct answer ✔✔You worry less about the
actual hardware, the code is more readable
_____ checking will let you know if something is wrong with your code as you're typing it - correct
answer ✔✔Syntax
All of the following are downsides to interpreted code, except - correct answer ✔✔You need to interpret
code separately for different kinds of code
What is true about strong-typed languages? - correct answer ✔✔There are different kinds of variables
for different kinds of data
Which JavaScript statement puts the number 5 into the variable "temp"? - correct answer ✔✔Var temp
= 5;
Which of these is a correct string literal? - correct answer ✔✔"hello world"
Declare a JavaScript variable to hold the number of students in the class. - correct answer ✔✔var
studentCount
The assignment operator in JavaScript is _____. - correct answer ✔✔=
, Which of the following is an invalid way of declaring a string? - correct answer ✔✔'this is a test"
We use _____ to tell JavaScript where the statement ends. - correct answer ✔✔;
The single line comment in JavaScript is _____. - correct answer ✔✔//
Which IF-THEN statement is written correctly? - correct answer ✔✔If (a==b) {alert("true");}
Which is the "Strict Equality" operator? - correct answer ✔✔===
How do you test if the score is 100? - correct answer ✔✔if (score == 100) {}
Which one of the following is the strict equality operator? - correct answer ✔✔===
Where are returns generally found? - correct answer ✔✔In the last line of a function
In JavaScript, variable scope is important _____. - correct answer ✔✔When defining variables for use in
functions
In JavaScript, you can embed an if statement within another if statement.
T or F - correct answer ✔✔True
Code blocks are surrounded with _____. - correct answer ✔✔{}
How do you call a function named readUserInput? - correct answer ✔✔readUserInput
What value do you get for a variable if you try to access it from outside its scope? - correct answer
✔✔Undefined
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 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 kirus27. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £10.37. You're not tied to anything after your purchase.