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