stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Y-8 JavaScript Intro I Flashcards | StudBud
Explore
/
Y-8 JavaScript Intro I
Y-8 JavaScript Intro I
32 terms
·
StudBud Administration
·
32 plays
Imported from external platform
Flashcards
32 cards
F
Practice quiz
P
Host live
L
Questions
32
Answers
1
What is the best practice for organizing JavaScript code within an HTML document?
Break it into several small scripts and scatter it across the page
Keep it all together in one single section for better readability
Place it only in the body section
Spread it across multiple sections for flexibility
2
What is the term for creating a variable in JavaScript?
Assigning
Storing
Encoding
Declaring
3
When is JavaScript typically set to execute on a web page?
Only when the web server sends a response to the browser.
Only during the initial loading of the web page.
Only when a user submits a form.
When a page loads or a user interacts with an HTML element.
4
What is the purpose of a
semicolon (;)
in a Javascript program?
It instructs the computer about which part to print
It indicates the beginning of a command
It indicates the end of a command
It separates the printed text from the command
5
What are
reserved names
in JavaScript programming known as?
Functions
Containers
Keywords
Variables
6
What is the term for values that can be either
true
or
false
in programming?
Integers
Characters
Floats
Booleans
7
What is the purpose of keywords in JavaScript ?
They are reserved names with special meanings
They are used to create variables
They represent mathematical operations
They store values in containers
8
How can script code be organized within an HTML document?
It can only be placed in the body section
It can only be placed in the head section
It can be broken into smaller parts and placed in different sections
It must be in one place only
9
What type of language is JavaScript?
A scripting language and a lightweight programming language
A markup language
A database query language
A compiled language
10
Where is JavaScript code typically placed in an HTML document?
Within a CSS file
Directly embedded in HTML pages
In a separate text file
Inside a database
11
Choose the correct command of printing a text.
System.out.println
write.document
Printf
document.write
12
What is one characteristic of JavaScript?
It is used only for server-side programming.
It requires a specific development environment to run.
It has a very simple syntax.
It is a compiled programming language.
13
What should each script section start and end with?
<CODE> and </CODE>
<SCRIPT> and </SCRIPT>
<HTML> and </HTML>
<STYLE> and </STYLE>
14
How are
variables
typically declared in JavaScript programming languages?
With the 'var' keyword
With the 'string' keyword
With the 'bool' keyword
With the 'int' keyword
15
Where can the <SCRIPT> tag be placed in an HTML document?
Only in the body section
Only in the head section
Only at the end of the document
In either the head or body section
16
In which contexts is JavaScript commonly used for creating interactive web pages?
Only for Desktop applications
Only for Mobile applications
It's not used for creating interactive web pages.
For both Desktop and Mobile applications
17
Choose the
invalid option
about JavaScript:
JavaScript can be used to create Desktop applications.
JavaScript can’t be used to perform animations on web pages.
JavaScript can be used to create iOS applications.
JavaScript is everywhere.
18
Choose the
valid option
about JavaScript:
JavaScript is used to make web pages interactive.
JavaScript and Java are similar.
JavaScript has no relation with the web.
JavaScript is not a web based language.
19
Which of the following statements is true about Java and JavaScript?
Java and JavaScript are similar but serve different purposes.
Java and JavaScript are the same thing.
Java and JavaScript are unrelated and have no similarities.
JavaScript is a simplified version of Java.
20
What is the primary purpose of JavaScript in web development?
To structure the content of a web page.
To add interactivity to web pages.
To style the appearance of a web page.
To create static web pages.
21
How are JavaScript statements included in an HTML document?
Between <HTML> and </HTML> tags
Between <SCRIPT> and </SCRIPT> tags
Between <CODE> and </CODE> tags
Between <STYLE> and </STYLE> tags
22
How are
double quotes (" ")
used in a Javascript program?
They indicate the beginning of a program
They are used for mathematical calculations
They specify the end of a command
They instruct the computer on which part to print
23
Which of the following browsers support JavaScript?
Only mobile browsers
Only modern browsers
Internet Explorer, Firefox, and Chrome only
All major browsers: Internet Explorer, Firefox, Chrome, Opera, and Safari
24
Computers can’t perform tasks without instructions.
True
False
25
Double quotes (" ") are not required to print texts.
True
False
26
What is the correct way to
define a string value
in JavaScript?
Enclose it in curly braces ({})
Write it without any special characters
Surround it with single quotation marks ('')
Enclose it in double quotation marks ("")
27
What is the section called that is enclosed between the opening <SCRIPT> tag and the closing </SCRIPT> tag?
The script block
The style block
The HTML block
The code block
28
What is a "
variable
" in JavaScript programming?
A keyword used to define functions
A programming language
A type of loop
A container used to store values
29
What is a key advantage of using JavaScript?
It is only supported on specific platforms.
Everyone can use JavaScript without purchasing a license.
It is only available to registered developers.
It requires purchasing a license.
30
Is JavaScript considered the most universal programming language in the world?
No, it's only used for desktop applications.
Yes, it's widely used for both web and non-web applications.
Yes, it is the only programming language used globally.
No, it is a niche language with limited applications.
31
What is the purpose of
round brackets
'( )' in a Javascript program?
They instruct the computer on which part to print
They separate the command from the printed text
They indicate a comment in the code
They indicate the end of a command
32
Which technology can be used to create
iOS
and
Android
applications?
CSS
PHP
HTML
JavaScript