1|Page
WGU C777 Objective Assessment Final Exam _Verified Correct
Questions And Correct Answers Exam A+ Grade ||Just Out!!!
In which sections of an HTML document can you embed
JavaScript code?
A) The meta and/or the title sections
B) The head and/or the body sections
C) The !DOCTYPE and/or the meta sections
D) The script and/or the code sections - ANSWER-The head
and/or the body sections
What type of language is HTML?
A) Server-side scripting language
B) Markup language
C) Client-side scripting language
D) Programming language - ANSWER-Markup language
Why is JavaScript relatively easy to learn?
A) Because JavaScript does not have all of the complex rules
associated with full object-oriented languages
B) Because JavaScript is platform-independent
C) Because JavaScript is event-driven
,2|Page
D) Because JavaScript does not require time-consuming
compilation - ANSWER-Because JavaScript does not have all of
the complex rules associated with full object-oriented
languages
A JavaScript rule concerning variables states that the first
character of a variable name must be:
A) a letter, the "at" symbol ( @ ) or the dollar sign ( $ ).
B) a letter, the "at" symbol ( @ ) or the ampersand ( & ).
C) a letter, the underscore character ( _ ) or the dollar sign ( $ ).
D) a letter, the ampersand ( & ) or the dollar sign ( $ ). -
ANSWER-a letter, the underscore character ( _ ) or the dollar
sign ( $ ).
What is a variable in JavaScript?
A) A symbol character used in programming expressions to
instruct the program how to store or operate on a value
B) A part of a statement that is evaluated as a value
C) A named space of memory that allows you to store a value
D) A piece of data that is manipulated in some manner -
ANSWER-A named space of memory that allows you to store a
value
,3|Page
Consider the following expression:
apartmentNumber = 523;
What type of expression does this code snippet represent?
A) Arithmetic
B) Logical
C) Comparison
D) Assignment - ANSWER-Assignment
Which of the following is a characteristic of event-driven
programming?
A) The user is expected to interact with the program in a
sequential manner.
B) The program performs events automatically in a sequential
manner.
C) Events can trigger functions.
D) Programs log every action performed by the user. - ANSWER-
Events can trigger functions.
, 4|Page
In JavaScript, how do you combine text strings, such as
combining the prompt() and alert() methods to request user
input and then display it?
A) Use expressions to combine two or more text strings.
B) Use objects to link two or more text strings.
C) Use concatenation to link two or more text strings.
D) Use literals to assign data values to two or more text strings.
- ANSWER-Use concatenation to link two or more text strings.
What is an expression in JavaScript?
A) A piece of data that is manipulated in some manner
B) A named space of memory that holds a value
C) A part of a statement that is evaluated as a value
D) A symbol character used in programming statements to
instruct the program how to store or manipulate a value -
ANSWER-A part of a statement that is evaluated as a value
In JavaScript, what is a literal?
A) A named space of memory that holds a value
B) The actual data value you provide in JavaScript
C) Data that is to be operated upon or manipulated in some
manner
WGU C777 Objective Assessment Final Exam _Verified Correct
Questions And Correct Answers Exam A+ Grade ||Just Out!!!
In which sections of an HTML document can you embed
JavaScript code?
A) The meta and/or the title sections
B) The head and/or the body sections
C) The !DOCTYPE and/or the meta sections
D) The script and/or the code sections - ANSWER-The head
and/or the body sections
What type of language is HTML?
A) Server-side scripting language
B) Markup language
C) Client-side scripting language
D) Programming language - ANSWER-Markup language
Why is JavaScript relatively easy to learn?
A) Because JavaScript does not have all of the complex rules
associated with full object-oriented languages
B) Because JavaScript is platform-independent
C) Because JavaScript is event-driven
,2|Page
D) Because JavaScript does not require time-consuming
compilation - ANSWER-Because JavaScript does not have all of
the complex rules associated with full object-oriented
languages
A JavaScript rule concerning variables states that the first
character of a variable name must be:
A) a letter, the "at" symbol ( @ ) or the dollar sign ( $ ).
B) a letter, the "at" symbol ( @ ) or the ampersand ( & ).
C) a letter, the underscore character ( _ ) or the dollar sign ( $ ).
D) a letter, the ampersand ( & ) or the dollar sign ( $ ). -
ANSWER-a letter, the underscore character ( _ ) or the dollar
sign ( $ ).
What is a variable in JavaScript?
A) A symbol character used in programming expressions to
instruct the program how to store or operate on a value
B) A part of a statement that is evaluated as a value
C) A named space of memory that allows you to store a value
D) A piece of data that is manipulated in some manner -
ANSWER-A named space of memory that allows you to store a
value
,3|Page
Consider the following expression:
apartmentNumber = 523;
What type of expression does this code snippet represent?
A) Arithmetic
B) Logical
C) Comparison
D) Assignment - ANSWER-Assignment
Which of the following is a characteristic of event-driven
programming?
A) The user is expected to interact with the program in a
sequential manner.
B) The program performs events automatically in a sequential
manner.
C) Events can trigger functions.
D) Programs log every action performed by the user. - ANSWER-
Events can trigger functions.
, 4|Page
In JavaScript, how do you combine text strings, such as
combining the prompt() and alert() methods to request user
input and then display it?
A) Use expressions to combine two or more text strings.
B) Use objects to link two or more text strings.
C) Use concatenation to link two or more text strings.
D) Use literals to assign data values to two or more text strings.
- ANSWER-Use concatenation to link two or more text strings.
What is an expression in JavaScript?
A) A piece of data that is manipulated in some manner
B) A named space of memory that holds a value
C) A part of a statement that is evaluated as a value
D) A symbol character used in programming statements to
instruct the program how to store or manipulate a value -
ANSWER-A part of a statement that is evaluated as a value
In JavaScript, what is a literal?
A) A named space of memory that holds a value
B) The actual data value you provide in JavaScript
C) Data that is to be operated upon or manipulated in some
manner