Exam 9: Menus and Data Validation
Exam 1: The Craft of Programming50 Questions
Exam 2: The Javascript Language49 Questions
Exam 3: Objects, Events, and Graphical User Interfaces48 Questions
Exam 4: The Sequence Structure50 Questions
Exam 5: The Selection Structure50 Questions
Exam 6: The Repetition Structure50 Questions
Exam 7: Complex Conditions49 Questions
Exam 8: Modules and Functions50 Questions
Exam 9: Menus and Data Validation50 Questions
Exam 10: Arrays50 Questions
Exam 11: Building Programs50 Questions
Exam 12: Sorting Data30 Questions
Exam 13: Recursion50 Questions
Select questions type
Consistency is important for good programming design and readability.
(True/False)
4.9/5
(34)
When prompting users to enter a character, you should allow uppercase or lowercase input.
(True/False)
4.8/5
(27)
A(n) ____ is a loop that checks for valid input and repeats until valid input has been entered.
(Multiple Choice)
5.0/5
(34)
JavaScript has a function called ____ that returns a True value if a string cannot be converted to a number.
(Multiple Choice)
4.8/5
(33)
One way to validate an e-mail address is to see whether the character @ occurs in the string.
(True/False)
4.8/5
(32)
Programs that can handle all kinds of user errors, without allowing damage, and can do it immediately, correctly, and smoothly, are called robust.
(True/False)
4.8/5
(40)
You can use string manipulation functions to check every character in a string, a process sometimes called ____ a string.
(Multiple Choice)
4.8/5
(34)
The ____ returns a substring of the original string, starting with the position specified by the start argument and including the number of characters specified by numChars.
(Multiple Choice)
4.8/5
(37)
Keywords (such as if, else, do, and while) are uppercase in JavaScript.
(True/False)
4.8/5
(27)
A(n) ____ is useful for seeing a program's overall structure as well as providing a guide for making changes.
(Multiple Choice)
4.7/5
(39)
Text data (data of the String type) consists of almost anything the user can type at the keyboard.
(True/False)
4.8/5
(38)
A module is sometimes called a ____ because those looking at the module do not need to know what it contains internally, as long as they know the module's purpose and how to use it.
(Multiple Choice)
4.8/5
(38)
In JavaScript, constants are declared in the ____ section before any function definitions so that they're available to the ____ section.
(Multiple Choice)
4.7/5
(40)
To create a menu that is used more than once, a repetition structure that encloses the selection structure is more suitable, and you can also add a choice for the user to exit the menu.
(True/False)
4.9/5
(44)
A(n) ____ enables you to test your program so that you can make sure the module is called correctly.
(Multiple Choice)
4.7/5
(40)
In JavaScript, the ____ block checks to see what the error message is before proceeding.
(Multiple Choice)
4.8/5
(44)
JavaScript has a built-in method, ____, that takes a character as an argument and returns the position in a string where the character occurs or -1 if the character isn't found.
(Multiple Choice)
4.9/5
(33)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)