2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
16th July 2014, 02:56 PM
Super Moderator
 
Join Date: Apr 2013
Re: C++ Solved Sample Papers

Here I am giving you question paper for C++ programming language subject of CBSE class 12th grad examination in a PDF file attached with it .

1. (a) What is the difference between Object Oriented Programming and Procedural Programming?
2 (b) Write the names of the header files to which the following belong:
1 (i) frexp() (ii) isalnum()
(c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2 #include <iostream.h> struct Pixels { int Color,Style;} void ShowPoint(Pixels P) { cout<<P.Color,P.Style<<endl;} void main() { Pixels Point1=(5,3); ShowPoint(Point1); Pixels Point2=Point1; Color.Point1+=2; ShowPoint(Point2);

(f) In the following program, if the value of N given by the user is 20, what maximum and minimum values the program could possibly display? 2

#include <iostream.h> #include <stdlib.h> void main() { int N,Guessnum; randomize(); cin>>N; Guessnum=random(N-10)+10; cout<<Guessnum<<endl;

CBSE class 12th C++ Sample Papers





Attached Files
File Type: pdf CBSE class 12th C++ Sample Papers.pdf (589.5 KB, 307 views)


Quick Reply
Your Username: Click here to log in

Message:
Options




All times are GMT +5. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4