WGU C777 Objective Assessment Final|| QUESTIONS
AND CORRECT DETAILED ANSWERS (VERIFIED
ANSWERS) |ALREADY GRADED A+||NEWEST EXAM!!!
What term is a characteristic of an object that describes
the object's attributes?
A) Method
B) Property
C) Value
D) Class - ANSWER-Property
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
,2|Page
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
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?
,3|Page
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
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?
, 4|Page
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.
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.
Which variable data type represents a value of "nothing?"
A) The undefined data type
B) The Boolean data type
C) The Object data type
D) The null data type - ANSWER-The null data type