stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
JavaScript Flashcards | StudBud
Explore
/
JavaScript
JavaScript
69 terms
·
StudBud Administration
·
6 plays
Imported from external platform
Flashcards
69 cards
F
Practice quiz
P
Host live
L
Questions
69
Answers
1
Inside which HTML element do we put the JavaScript?
<scripting>
<script>
<js>
<javascript>
2
JavaScript html Tag is typically defined using the _____ tag.
<jQuery> </jQuery>
<java> </java>
<jsscript> </jscript>
<script> </script>
3
What keyword do you need to use to define a variable in JavaScript?
x
var
int
variable
4
What symbol represents the
or
operator in JavaScript?
OR
||
or
|
5
Which is the correct way to declare a variable in Javascript?
var item = 'milk';
variable = "item";
milk = var item;
item = 'milk'
6
Numbers can be written in javascript....
with decimals
without decimals
without numbers
with or without decimals
7
Which JavaScript operator assigns a value?
=
+
++
==
8
What is the Javascript symbol for '
greater than
'?
>
>=
<=
<
9
It's a good idea to disable JavaScript within a browser if there is any doubt of a website's security.
True
False
10
Is JavaScript Case Sensitive??
No
Yes
11
How can you add a comment in a JavaScript?
<!--This is a comment-->
//This is a comment
'This is a comment
**This is a comment
12
What does JavaScript add to webpages?
Interactivity
Text and content
Style Sheets
Images
13
What is the value of the JavaScript expression
14 % 4
?
4
-10
2
10
14
JavaScript is also a Server-side Scripting language
IRDC/IRDK
False
I'm going with maybe.
True
15
before you use a variable in javascript you need to.....
name it
declare it
use it
16
Every line of Javascript code
must end
with a...
semi-colon ;
comma ,
full-stop .
colon :
17
Which statement about JavaScript is TRUE?
provides video and audio
animate and resize page elements
transmit users' browsing activity to other parties
all three.
18
Since class is a reserved word in JavaScript, HTML classes are referred to with ___ in JSX.
classJSX
Class
className
classID
19
JavaScript is a …?
Runtime Environment
Programming Language
Software Development Kit
Integrated Development Environment
20
JavaScript variables...
must adhere to identifier guidelines.
are required for all JavaScript apps.
cannot be combined with other variables.
must be assigned a value.
21
are java and javascript the same language?
No
Yes
22
A store has 20 apples in inventory.How can you store this information in a JavaScript variable?
var num apples = 20;
20 = numApples;
var numApples = 20;
var numApples == 20;
23
In Javascript, which punctuation mark is used to end every line of code?
; Semicolon
, Comma
. Period
: Colon
24
What is the value of the JavaScript expression
23 < 1 | | 12 > 6
?
false
20
true
-20
25
What tag do you need to add javascript to a website ?
<javascript>... </javascript>
<add-script="javascript"/>
<script>...</script>
<code type="javascript">
26
Which line of JavaScript code is not terminated properly?
a = [x,y,z];
if(color=="blue"){}
parse(data).
var x = y + z;
27
What is the value of the JavaScript expression
7 + 3
?
-4
10
4
21
28
What does the following JavaScript code snippet do when the code is loaded in a browser?
Displays the text "My JavaScript Button" and a button labeled "Click me!"
Displays a pop-up window with the message "You are coding with JavaScript!"
Nothing, this code will not load in a browser
Displays a button labeled "Click me!"
29
The external JavaScript file must contain the <script> tag.
False
True
30
What is the value of the JavaScript expression
-4 < 1
?
-5
true
5
false
31
Inside what tag goes links to JavaScript or CSS files, and meta tags that describe the site?
Script
Head
Body
Style
32
What's the value of the JavaScript expression
myShoeSize <= yourShoeSize && myGPA != yourGPA
?
false, if our feet are the same size
false, if my feet are bigger than yours
true, if your feet are at least as big as mine
true, if our GPA's are NOT the same
33
Is there a difference between Java and JavaScript?
There is no difference
JavaScript is a programming language whilst Java is a scripting language
Java is a programming language whilst JavaScript is a scripting language
34
Is JavaScript related at all to Java?
No
Try asking again!
Yes
Maybe....
35
The use of "||" when making decisions with JavaScript means...
none of the criteria needs be met
criteria 1 or criteria 2 must be met.
criteria 1 AND criteria 2 must be met.
36
Javascript is a lighter version of Java
False
True
37
What is the proper operator for “not equals” in JavaScript?
!=
NOT EQUALS
~=
=!
38
JavaScript is used to do what?
Build apps and games
Access information on the Internet
All of the above
Make websites interactive
39
'$this' is JavaScript code that means 'this object that is currently selected'.
True
False
40
How do you declare a variable in JavaScript??
Var+*=
Var==
Var+=
Var=
41
JavaScript functions are always needed to add interactivity to a web page
false
true
42
Which JavaScript statement will result in the following output being displayed to the console?
console.log("Good morning!\bAwake yet?");
console.log("Good morning!\n\nAwake yet?");
console.log("Good morning!\nAwake yet?");
console.log("Good morning!\tAwake yet?");
43
How do you create a function in JavaScript?
function -> myFunction()
function:myFunction()
function = myFunction()
function myFunction()
44
When using JSX inside of JavaScript, the ___ must be imported.
components
node modules
static files
React library
45
what are assets in JavaScript?
images you see
different functions
what you can see
what you cant see
46
What symbol represents the or operator in JavaScript?
or
|
||
OR
47
Which statement about strings in JavaScript is true?
Strings with numerical digits in them are invalid.
A string can be empty, meaning that it contains nothing.
Strings cannot include spaces.
Strings are not indicated with quotation marks.
48
How to check equivalency in Javascript?
==
===
=
====
49
JavaScript is what kind of language language?
server-side
web-side
client-side
script-side
50
In Javascript, each
variable declaration
must start with the word...
variable
var
vbl
v_name
51
How to write an IF statement in JavaScript?
if (i == 5)
if i = 5
if i == 5 then
if i = 5 then
52
Look at the JavaScript below. Something happens when a button is clicked. What is it?
Says "Page Loaded"
Says "Alert"
Says "Hi"
Says "Click Me"
53
The JavaScript property innerHTML, refers to what?
Text content
The curren value of another property
Name of object
The content of an object
54
JavaScript is a full programming language.
False
True
55
What is the value of the JavaScript expression
myGPA - 0.5
?
unknown
potentially, any real number
within the range -0.5 to 4.5
potentially, any positive real number
56
What symbol is used to negate a boolean in JavaScript?
!
%
NOT
~
57
What symbol represents the
and
operator in JavaScript?
AND
&&
&
and
58
What are conditionals in JavaScript used for?
to help your program make decisions by evaluating statements.
to connect HTML, CSS, and JavaScript.
conditionals are not used at all.
as an accessibility feature.
59
Java, C Language, C++, C#, Objective-C, PHP, Python, RUBY, JavaScript ,SQL are examples of
binary code
programming languages
playschool animals
compiled software
60
JavaScript expressions...
must include operators.
must evaluate to a value.
must represent known formulas.
cannot include literals.
61
JavaScript also has built-in features, called
functions
. What is a function?
Write a word and end it with parentheses & semi-colon
Write a word (without quotes) and end it with parentheses.
Write a word (with quotes) and end it with parentheses.
Write a word and end it with parentheses & colon.
62
What is output with JavaScript?
Output it to see what it looks like.
Output is to see what it doesn't looks like.
Output is never used with JavaSript
Output is similar to input.
63
JavaScript is the most common way change color, text size, fonts, background colors or images, and so much more.
True
False
64
Python and JavaScript are examples of __________.
file systems
programming languages
logic gates
operating systems
65
What tag is used to Insert JavaScript into an HTML Document
<script>
<JavaScript>
<java>
<js>
66
JavaScript
is used mostly in...
communications software
GPS navigation
video applications
interactive web pages
67
JavaScript identifiers...
are not case sensitive.
must use English words.
have no specific guidelines.
are used to name a portion of RAM.
68
What is a variable in JavaScript?
Store values in containers so we can use them never.
Store values in containers so we can use them later.
Store values in containers so we can use them once.
Store values in containers so we can't use them later.
69
Which two lines of code are valid Java, JavaScript, C, C# and C++ comments?
#Are you?
//Hello
<!--How-->
/*World*/