stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
JavaScript! Flashcards | StudBud
Explore
/
JavaScript!
JavaScript!
20 terms
·
StudBud Administration
·
81 plays
Fundamentals of CS initial quiz on basics of JavaScript programming language.
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
Sequence in coding is important because
Computers like things that sparkle.
Order of steps or commands for a computer doesn't matter.
Computers can reason like humans so they can put commands in order.
Computers execute commands in the order given so it has to be correct.
2
A symbol that represents or stores data in a program.
Argument
Variable
Method
Loop
3
A programming structure used to repeat actions without coding the same lines over and over.
Loop
String
Variable
Letters
4
In JavaScript, comments in code start with
$$Two dollar signs.
##Two hashtags.
**Two asterisks.
//Two forward slashes.
5
The rules for correct spelling, grammar, and punctuation in a programming language.
Argument
Algorithm
Basic Syntax
Variable
6
Data about or belonging to an object.
Property
Variable
Object
Argument
7
The difference between for loops and while loops is
While Loops are infinite.
While Loops repeat a block of code a certain number of times.
For Loops repeat a block of code a certain number of times.
For Loops are infinite.
8
In the code "hero.moveRight(2);", "2" is the
object
comment
method
argument
9
An action performed by an object.
Property
Method
Object
Argument
10
An argument is passed to a function or method inside a set of
semi-colons
parentheses
commas
periods
11
When calling the method or function "moveRight" an argument is ALWAYS required.
True
False
12
In JavaScript, every command (or program statement) must end in a
period .
colon :
comma ,
semi-colon ;
13
Extra information passed into a method to modify what the method does.
Property
Argument
Method
Object
14
A step-by-step set of instructions for completing a task.
Algorithm
Argument
Basic Syntax
Variable
15
A type of data that represents text or alphanumeric characters.
Variable
String
Letters
Loop
16
In the code "hero.moveRight();", "moveRight" is the
comment
object
argument
method
17
In the code "hero.moveRight();", "hero" is the
comment
argument
object
method
18
A character or thing that can perform actions.
Thing
Argument
Object
Variable
19
String data, when passed to a function/method, must be contained inside a set of
"quotation marks"
.periods.
;semi-colons;
,commas,
20
If the syntax in a program is not correct
the program will not run.
the computer will fix the error.
the program will run and produce correct output.
the program will run but the output will be incorrect.