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
28 terms
·
StudBud Administration
·
606 plays
freeCode Camp Basic JavaScript Part 01 Content Source: https://www.freecodecamp.com/
Flashcards
28 cards
F
Practice quiz
P
Host live
L
Questions
28
Answers
1
You can store a value in a variable with the ________________ operator.
assingment
consingment
variable
function
2
Write variable names in JavaScript in ______________ .
UPPERCASE
Sentence Case
lowercase
camelCase
3
allow computers to store and manipulate data in a dynamic fashion.
values
parameters
functions
variables
4
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 /*
5
var myVar = 0;
Redefines a variable named myVar with an initial value of 0.
Creates new variable named myVar with an initial value of 1.
Creates new variable named myVar with an initial value of 0.
Produces a syntax error.
6
collections of characters
variables
beans
strings
integers
7
variable names can
start with a number
be made up of numbers, letters and & or -
contain spaces
not be monsters
8
myVariable = 5;
Assigns myVariable to the number 5;
Declares a function named 5.
Assigns the Number value 5 to myVariable.
Produces a syntax error.
9
We tell JavaScript to ____ a variable by putting the keyword var in front of it.
detatch
declare
demote
define
10
this will tell JavaScript to ignore the remainder of the text on the current line:
/*
//*
//
/
11
EVERYTHING to the right of the ___ operator is resolved first
=
/
+
//
12
Assignment ALWAYS goes from
left to right
up to down
right below
right to left
13
DEFINE a variable
a
with
var
and initialize it to a value of 9.
var a = 9
var = 9a;
var a = 9;
varA = nine;
14
When JavaScript variables are declared, they have an initial value of ____________ .
zero
one
one million dollars
undefined
15
In computer science, ____ is anything that is meaningful to the computer.
syntax
hardware
code
data
16
Computers can perform these on a number, but not on a string.
function parameters
mathematical operations
equal formulas
equation evaluations
17
As you write code, you should regularly add these to clarify the function of your code.
widgets
parsecs
comments
documents
18
i feel ____ about the content presented in this assessment.
Yellow-I can learn this.
Green-I know this
Blue-I can teach or sing about this.
Red-No clue
19
If you concatenate a string with an undefined variable, you will get a literal string of "___".
solid gold hits
bad luck
zero
undefined
20
In JavaScript all variables and function names are case sensitive.
False
Sometimes True.
True
Sometimes False.
21
Mr. G is _____________ .
Very Handsome
veryHandsome
VERY HANDSOME
very handsome
22
MYVAR =
myvar
myVar
MYvar
MYVAR
23
It is common to ____ a variable to an initial value in the same line as it is declared.
smell
initialize
calculate
formulate
24
undefined, null, boolean, string, symbol, number, and object
functions
values
variables
data types
25
var ourName;
creates a variable called ourName
creates a variable called Name
creates a class called ourName
creates a function called ourName
26
Lines of code that JavaScript will intentionally ignore.
comments
variables
strings
integers
27
Computer variables can store different values at different times.
donkey kong
false
true
lemonade
28
lol NaN
laugh out loud not a number
laugh a number out loud
laugh out loud no animal nose
funny sodium nitrogen