Essentials
primer-original-v2mediumEssentialsSoftware Fundamentalsprimer-original-v2

Determine the cyclomatic complexity for the following code: Accept year if(year mod 4=0 and year mod 100!=0) or(year mod 400 =0) print year is leap else print year is not leap end if.

Answer options

A
4
B
Bubble Sort
C
Merge Sort
D
Quick Sort

Correct answer: 4

Explanation

Quick AnswerThe correct answer is 4 because it directly addresses the core logic of Essentials.

This question has been retained as-is due to its unique context.

Related Essentials questions

Practice more Essentials questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.