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