Find Your Free Essay Examples

Delhi 2013C

Free PDF download of Important Questions for CBSE Class 12 Computer Science (C++) Chapter 7 Pointers prepared by expert Computer Science (C++) teachers from latest edition of CBSE(NCERT) books, On StudySolver.Org to score more marks in CBSE board examination.

Question 1: Obtain the output from the following C++ program as expected to appear on the screen after its execution.  Delhi 2014 Important Note: All the desired header files are already included in the code, which are required to run the code.

Аnswer: Output of the given program will be 1SARGAM 9ARGAM Question 2: Obtain the output from the following C+ + program as expected to appear on the screen after its execution.  All India 2014.2013 Important Note: All the desired header files are already included in the code, which are required to run the code.

Аnswer: Output of the given program will be 1AJANTA 5JANTA Question 3: Observe the following C+ + code carefully and obtain the output, which will appear on the screen after execution of it. Delhi 2013 Important Note: All the desired header files are already included in the code, which are required to run the code.

Аnswer: Output of the given program will be 10SHAKTI 15HAKTI Question 4: Give the output of the following program segment: (Assuming, all desired header file(s) are already included).  Delhi 2013C

Аnswer: Output of the given program will be 20 32.5 42.5 Question 5: Find the output of the following program:  All India 2012

Аnswer: Output of the given program will be vR.zGoOd R.zGOOD .zgOOD ZgOOD Question 6: Find the output of the following program:  Delhi 2012

Аnswer: Output of the given program will be Ur2GReat r2GREat 2GrEat grEat Question 7: In the following program, what will be the possible output(s) from the following options (i), (ii), (iii) and (iv)? Justify your answer.  Delhi 2011C

Аnswer: The possible output will be (ii) 2:2:3:2: and (iv) 2:2:2:3: Question 8: Find the output of the following program :  Delhi 2011

Аnswer: There is an error in last line, i.e. *Striker[0], so the program will not run. In case, if there is no subscript in Striker pointer, then the output would be Striker10 [email protected] [email protected] Rest To55 Question 9: Find the output of the following program:  All India 2011

Аnswer: There is an error in last line, i.e. *Moves[0], so the program will not run. In case, if there is no subscript in Moves pointer, then the output would be Queen @11 [email protected] [email protected] New  [email protected] Question 10: Find the output of the following program:

Аnswer: Output of the given program will be [email protected] @ [email protected] 8#16#20# Question 11: Find the output of the following program:

Аnswer: Output of the given program will be 4#6#10# [email protected] @ [email protected] @ Question 12: Give the output of the following program segment. (Assume, all required header files are included in the program.)

Аnswer: Output of the given program will be 129,a Question 13: Identify the syntax error(s), if any, in the following program. Also, give reason for errors.

Аnswer: (*ptr)++ cannot modify a const object ptr-&j cannot modify a const object. Question 14: Give the output of the following program segment. (Assume, all required header files are included in the program.)

Аnswer: Output of the given program will be 2 2 3 4 Question 15: Give the output of the following program segment. (Assume, all required header files are included in the program.)

Аnswer: Output of the given program will be GOODLUCK G00DLUC G00DLU GOODL GOOD GOO GO G Question 16: Give the output of the following program segment. (Assume, all required header files are included in the program).

Аnswer: Output of the given program will be a Orooile Question 17: Find and write the output of the following C++ program code:  All India 2017 NOTE Assume all required header files are already being included in the program.

Аnswer: Given program will give error, i.e. Multiple declaration for ‘L’ If we remove int from 2nd for loop then output will be: 12*63*73*15*93*10* Question 18: Find the output of the following program:  Delhi 2012C

Аnswer: Output of the given program will be 400:400 150 400:150 150 300:100 100 Question 19: Find the output of the following program  Delhi 2009

Аnswer: Output of the given program will be 110*56* 32*26*33 Question 20: Find the output of the following program.  Delhi (C) 2009

Аnswer: Output of the given program will be 2008#75 2009#100 Question 21: Find the output of the following program.  All India 2009

Аnswer: Output of the given program will be 12* 16*22*27* 30*90 Question 22: What will be the output of the following program?

Аnswer: Output of the given program will be PoiNteRs  [email protected] Question 23: What will be the output of the following program?

Аnswer: Output of the given program will be DynAmiC ACt#10

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.