stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Basic JavaScript | Pre-Assessment 01 | Computer Science Flashcards | StudBud
Explore
/
Basic JavaScript | Pre-Assessment 01 | Computer Science
Basic JavaScript | Pre-Assessment 01 | Computer Science
22 terms
·
StudBud Administration
·
11 plays
freeCode Camp Basic JavaScript Part 01 Content Source: https://www.freecodecamp.com/
Flashcards
22 cards
F
Practice quiz
P
Host live
L
Questions
22
Answers
1
Computer variables can store different values at different times.
lemonade
false
donkey kong
true
2
You can store a value in a variable with the ________________ operator.
variable
function
consingment
assingment
3
this will tell JavaScript to ignore the remainder of the text on the current line:
//*
/
/*
//
4
Lines of code that JavaScript will intentionally ignore.
variables
comments
strings
integers
5
collections of characters
strings
beans
variables
integers
6
var ourName;
creates a variable called Name
creates a variable called ourName
creates a function called ourName
creates a class called ourName
7
variable names can
start with a number
be made up of numbers, letters and & or -
contain spaces
not be start with letters
8
We tell JavaScript to ____ a variable by putting the keyword var in front of it.
demote
detatch
define
declare
9
allow computers to store and manipulate data in a dynamic fashion.
parameters
functions
values
variables
10
DEFINE a variable
a
with
var
and initialize it to a value of 9.
var a = 9;
var a = 9
varA = nine;
var = 9a;
11
Assignment ALWAYS goes from
up to down
left to right
right to left
right below
12
In JavaScript all variables and function names are case sensitive.
True
False
Sometimes False.
Sometimes True.
13
Computers can perform these on a number, but not on a string.
mathematical operations
equation evaluations
function parameters
equal formulas
14
Write variable names in JavaScript in ______________ .
UPPERCASE
lowercase
Sentence Case
camelCase
15
EVERYTHING to the right of the ___ operator is resolved first
+
=
/
//
16
undefined, null, boolean, string, symbol, number, and object
functions
variables
values
data types
17
Determine which of the following exhibit the CORRECT way to make a multi-line comment.
/* This is a multi-line comment */
*/ This is a multi-line comment /*
/* This is a multi-line comment /*
// This is a multi-line comment //
18
myVariable = 5;
Produces a syntax error.
Assigns myVariable to the number 5;
Declares a function named 5.
Assigns the Number value 5 to myVariable.
19
In computer science, ____ is anything that is meaningful to the computer.
code
syntax
data
hardware
20
var myVar = 0;
Creates new variable named myVar with an initial value of 0.
Produces a syntax error.
Creates new variable named myVar with an initial value of 1.
Redefines a variable named myVar with an initial value of 0.
21
As you write code, you should regularly add these to clarify the function of your code.
parsecs
widgets
documents
comments
22
When JavaScript variables are declared, they have an initial value of ____________ .
undefined
zero
one million dollars
one