Practice Question and Answer
8 Q: Which of the following are Operators in C?
603 063e62c1aef10d51b16bfe124
63e62c1aef10d51b16bfe124- 1arithmetic operatorsfalse
- 2logical operatorfalse
- 3relational operatorsfalse
- 4all of the abovetrue
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 4. "all of the above"
Explanation :
Operators are symbols that we use when performing operations on one or more operands. The primary types of operators in C are arithmetic, logical, relational, conditional, bitwise, and assignment.
Q: Why is clrscer() used?
443 063e62bb3e6cd351b75eca59e
63e62bb3e6cd351b75eca59e- 1to erasefalse
- 2to clear the message from the screentrue
- 3to storefalse
- 4for all of the abovefalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 2. "to clear the message from the screen"
Explanation :
The clrscr in C is a built-in function that is used for clearing the screen of the console output during the execution of the C program. This function is defined in the conio. h header file. We need to include the “conio.
Q: What is the difference between do-while and while condition?
584 063e62b5c7407bd1b2d1dd823
63e62b5c7407bd1b2d1dd823- 1In do-while, a semicolon is used after the condition.false
- 2Semicolon is not used in Whilefalse
- 3While statement is after the conditionfalse
- 4none of the abovetrue
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 4. "none of the above"
Explanation :
The key difference lies in when the loop condition is checked. In the while loop, the condition is checked before the first iteration, potentially resulting in zero iterations. In the do-while loop, the condition is checked after the first iteration, ensuring that the loop body is executed at least once.
Q: Which of the following is not true for for-loop?
559 063e62af66149271af9b8c0fa
63e62af66149271af9b8c0fa- 1for (i=0; ifalse
- 2for (int i=0; i>9; i++)false
- 3for (i=10; ifalse
- 4for (i=10; i++; itrue
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 4. "for (i=10; i++; i"
Explanation :
Among the given statements about for loops, the one that is NOT true is that they are used to replace user input while loops. While for loops are typically used for iterations with a known count and are less likely to result in an infinite loop if used correctly, they do not specifically replace user input while loops.
Q: Who has become the first woman sniper of the Border Security Force (BSF)?
514 065e9aa3ca731c7722ac93b1e
65e9aa3ca731c7722ac93b1e- 1Shaliza Dhamifalse
- 2Shiva Chauhanfalse
- 3Deepika Mishrafalse
- 4Suman Kumaritrue
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 4. "Suman Kumari"
Explanation :
Border Security Force (BSF) sub-inspector Suman Kumari has become the first woman sniper of the Border Security Force. Suman recently completed an eight-week sniper course at the Central School of Weapons and Tactics (CSWT), Indore and achieved 'Instructor Grade'. Suman is a resident of Mandi district of Himachal Pradesh. She joined BSF in the year 2021.
Q: The highest honor in the sports world is given in Rajasthan?
1601 060ed7ad106c5f535ea461e84
60ed7ad106c5f535ea461e84- 1Guru Vashistha Awardfalse
- 2Jawahar Awardfalse
- 3Maharana Pratap Awardtrue
- 4Rajasthan Khel Ratna Awardfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 3. "Maharana Pratap Award"
Explanation :
The award is given by the State Sports Council for outstanding achievements at the National and International levels. It was instituted in the year 1982-1983.
Q: Which of the Mahajanapadas were located in Rajasthan?
873 060ed780306c5f535ea4608e9
60ed780306c5f535ea4608e9- 1Fishfalse
- 2Avantifalse
- 3Matsyatrue
- 4Magadhafalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 3. "Matsya"
Explanation :
The correct answer is Matsya. Matsya Mahajanapadas was located in Rajasthan.
Q: Who ended the republic system of Rajasthan forever?
1684 060ed77c2b1a67b33c9208368
60ed77c2b1a67b33c9208368- 1Sakafalse
- 2Huntrue
- 3Guptfalse
- 4Kushanfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 2. "Hun"
Explanation :
Hun had ended the republic system of Rajasthan forever.