Multiple Choice
Case-Based Critical Thinking Questions Case 9-2 Gregor, a software developer, is developing a calendar application. He has to use several if conditional statements to ensure that the calendar displays the exact number of days present in each month of each year. He creates a dayCount array to keep track of the number of days in each month. Gregor wants to ensure February contains 29 days only in the year 2020 as it is a leap year. Which of the following should Gregor use to set the value in the dayCount array?
A) if (thisYear === 2020) { dayCount[1] = 29; }
B) if (dayCount=29) { 2020; }
C) if { thisYear = 2020; dayCount[1] == 29; }
D) if { dayCount=29 && this year=2020; }
Correct Answer:

Verified
Correct Answer:
Verified
Q18: Identify the expression used to reference array
Q32: Case-Based Critical Thinking Questions Case 9-2 Gregor,
Q35: What is the output of the following
Q36: Case-Based Critical Thinking Questions Case 9-1 Melissa,
Q39: Identify the output of the following code.
Q40: Case-Based Critical Thinking Questions Case 9-1 Melissa,
Q42: What is the output of the following
Q51: When a <u>pass </u>statement is encountered,control is
Q58: <u>Statement labels</u> are used to identify statements
Q60: Identify a method that decreases array by