Multiple Choice
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
Q23: Identify the syntax of the while loop.<br>A)
Q24: Identify the syntax of the statement label.<br>A)
Q25: Melissa, a computer science engineering student, is
Q26: Identify a true statement of array.some(callback [,thisArg])method.<br>A)
Q27: <br> Identify the letter of the choice
Q29: A _,which employs the first-in-first-out (FIFO)principle in
Q30: What is the output of the following
Q31: The _ statement stops processing the commands
Q32: A(n)_ is a collection of values organized
Q33: Numeric data can be sorted by creating