?
Critical Thinking Questions
Case 12-2
?
Jenny has created a website for a nutritionist that contains diet plans for various age groups. The website also includes audios and videos that train people on how they can get a healthy lifestyle by following good eating habits. On publishing the website, Jenny conducts a survey to solicit user feedback.
The survey reveals that the Contact Information page does not look appealing to the users. Jenny is asked to format the check boxes within the form on this webpage by increasing the left margin to 2em. The check boxes are contained within an unordered list element. Identify the correct form of the style rule that should be used in the tablet media query to apply a left margin to the unordered list within the form.?
A. form { margin-left: 2em;}
B. ?form { : 2em;}
C. ?form ul { margin-left: 2em;}
D. ?form ul { (margin-left): 2em;}
Answer: C
You might also like to view...
Modify the Miles Per Gallon application so that it includes exception handling to handle the NumberFormatExcep- tion when converting the strings in the JTextFields to doubles (Fig. 24.15). The original application allowed the user to input the number of miles driven and the number of gallons used for a tank of gas, in order to determine the number of miles the user was able to drive on one gallon of gas.
a) Copying the template to your working directory. Copy the C:Examples Tutorial24ExercisesEnhancedMilesPerGallon directory to your C:Simply- Java directory.
b) Opening the template file. Open the MilesPerGallon.java file in your text editor. c) Adding a try block. Find the calculateMPGJButtonActionPerformed method,
which immediately follows createUserInterface. Enclose lines 113–120 in a try
block.
d) Adding a catch block. Immediately following the try block you added in Step c, add a catch block to catch a NumberFormatException. Inside the catch block, add code to display an error message dialog at the center of the running application.
e) Saving the application. Save your modified source code file.
f) Opening the Command Prompt window and changing directories. Open the Com- mand Prompt window by selecting Start > Programs > Accessories > Command Prompt. Change to your working directory, EnhancedMilesPerGallon, by typing cd C:SimplyJavaEnhancedMilesPerGallon.
A junction table can include fields other than the common fields from the two related tables
Indicate whether the statement is true or false
Which of the following is an example of a fire prevention control?
A. Fire containment equipment B. Fire extinguishers C. Fire suppressors D. Adhering to building and construction codes
What Desired State Configuration mode is being utilized when servers can obtain their configurations from a central server by using standard web protocols?
A. Pull mode B. Manual mode C. Push mode D. Standard mode