What is recursion?
Choose an option to check your answer.
Recursion solves a problem through smaller self-similar calls and a base case.
Practice GAT Subject Computer Science questions with answers and explanations.
Choose an option to check your answer.
Recursion solves a problem through smaller self-similar calls and a base case.
Choose an option to check your answer.
Binary search compares with the middle element and halves the remaining range.
Choose an option to check your answer.
A variable associates a name with data that a program can use or change.
Choose an option to check your answer.
A while loop evaluates its condition before each iteration.
Choose an option to check your answer.
An operating system coordinates hardware resources and applications.
Choose an option to check your answer.
Every term is multiplied by 2.
Therefore, 56 × 2 = 112.
Choose an option to check your answer.
An algorithm is an ordered and finite problem-solving procedure.
Choose an option to check your answer.
The successive increases are 3, 4, 5, and 6.
The next increase is 7, so 28 + 7 = 35.
Choose an option to check your answer.
AND produces true only when both operands are true.
Choose an option to check your answer.
The amounts subtracted are 9, 16, and 25, which are 3², 4², and 5².
Subtracting the next square, 6² = 36, gives 50 - 36 = 14.
Choose an option to check your answer.
The terms are factorials: 1!, 2!, 3!, and 4!.
The next term is 5! = 120.
Choose an option to check your answer.
The digit 7 is in the thousands place.
Therefore, its place value is 7 × 1,000 = 7,000.