Computer Fundamentals: Miscellaneous 1 - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Computer Science: Miscellaneous Questions covering various parts of Computer Science.

Sample Question from this online test:

Question: Consider the following C program

main ()
{ int x, y, m, n ;
scanf ("%d %d", &x, &y);
/ * Assume x > 0 and y > 0 * /
m = x; n = y ;
while ( m ! = n)
{ if (m > n)
m = m ? n;
else
n = n - m ; }
printf("%d",n); }

The program computes

Option A: x + y, using repeated subtraction

Option B: x mod y using repeated subtraction

Option C: the greatest common divisor of x and y

Option D: the least common multiple of x and y

To answer, click the "Start This Test" button below.

Start this Test






Comments

No comment yet. Be the first to post a comment.