Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi, I am searching for some output questions practice in c++.
I googled but didn't find any. Would anyone help me finding such questions because we get 30 marks predict output questions in exams.
Here's the example of questions.
https://ibb.co/pKWyxCt

What I have tried:

Tried searching on google but didnt find any helpful meterial.
Posted
Updated 11-Jan-22 0:09am
Comments
CPallini 11-Jan-22 6:03am    
I am not able to predict the output of your question...
Hamza Jameel 11-Jan-22 6:04am    
Please See this link for example
https://ibb.co/pKWyxCt
Richard MacCutchan 11-Jan-22 6:41am    
If you copy that code, build and run it, you will find the answer.

1 solution

Exams like that are a comprehension test of how well you understand the mechanics of the language rather than just the syntax - they test now well you can think about how code actually works.

Looking at code won't help you here: you won't learn anything that will help you in an exam as the questions you get will be unlike any you might find - and the only way to solve them correctly is to understand the language and how it works so you can "execute it" inside your head.

Looking at code and even trying to solve a multiple choice quiz on it won't teach you how code works - so read your notes, learn the language, and try writing code to solve problems. You will learn a whole load better and be much more able to solve multiple choice questions like that under exam pressure.
Give it a try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900