Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

Consider the following code fragment

for(digit = 0; digit < 9; digit++)
{
	digit = 2*digit;
	digit - -;
}

How many times the loop will be executed?

A Infinite
B 9
C 5
D 0
Answer & Explanation
Option: [A]
Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP
Assam Direct Recruitment Test Series

Computer Science Topics