ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE
|
|
- Ethan Reeves
- 6 years ago
- Views:
Transcription
1 ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE Short answer typequestions: 1.(a)What is the difference between logical error and runtime error? Give suitable example for the same. (b) What is the difference between Global Variable and Local Variable? (c)differentiate between type casting and type promotion with suitable example. (d) What is the difference between call by value and call by reference? Give an example in C++ to illustrate both. (e)what is the difference between Object Oriented Programming and Procedural Programming? (f)what do you understand by Polymorphism? Give a suitable example of the same. (g)what do you understand by Data Encapsulation and Data Hiding? (h) Differentiate between public and private visibility modes in context of Object Oriented Programming using a suitable example illustrating each. (i) How are data abstraction and data encapsulation inter-related? (j) Differentiate between a runtime error and syntax error. Also give suitable example of each in c++. Find Header Files For The Following 2.(a) Write the names of the header files to which the following belong: (i) setw() (ii) sqrt() (b) Name the header files that shall be needed for the following code. char str*+= air force schools ; cout<<setw(20)<<str; (c) Write the names of the header files to which the following belong: (i) setw() (ii) toupper() (d) Write the names of the header files to which the following belong : (i) frexp() (ii) isalnum() (e) Name the header file required for the following functions: (i) sqrt() (ii) setw() (iii) pow() (iv)clrscr()
2 Find Out Errors 3. (a) Rewrite the following program after removing the syntactical errors (if any). #include <iostream.h> struct Pixels intcolor,style; voidshowpoint(pixels P) cout<<p.color,p.style<<endl; Pixels Point1=(5,3); ShowPoint(Point1); Pixels Point2=Point1; Color.Point1+=2; ShowPoint(Point2); (b) #include<iostream.h> int x, sum=0; cin<<n; for(x=1,x<100,x+=2) if x % 2 ==0 sum +=x; cout<< sum = >>sum; (c ) #include [iostream.h] class PAYITNOW int Charge; PUBLIC: void Raise()cin>>Charge; void Showcout<<Charge;
3 ; PAYITNOW P; P.Raise(); Show(); (d ) #include<iostream.h> int x, sum=0; cin<<n; for(x=1,x<100,x+=2) if x % 2 ==0 sum +=x; cout<< sum = >>sum; (e ) #include<iostream.h> #define num=10 class MEMBER int Mno; float fees=0; PUBLIC: void Register()cin>>Mno>>fees; void Display()cout<<Mno<< : <<fees<<endl; ; 4. Find the outputs (a) Give the output of the following program #include<iostream.h> int a=3; void demo(int x,int y,int &z) a+= x+y ; z= a+y; y+=x; cout<<x<<y<<z<<endl; int a=2, b=5; demo(::a,a,b); cout<<::a<<a<<b<<endl; demo(::a,a,b); (b)write the output of the following program. # include <iostream.h> void execute (int &x, int y=200)
4 int temp = x + y; x += temp; if( y!=200) cout<<temp<<x<<y<<endl; int a=50, b=0; execute(b); cout<<a<<b<<endl; execute(a,b); cout<<a<<b<<end; (c) Find the output of the following program # include<iostream.h> struct play int score, bonus; ; void calculate ( play &p, int n=10) p.score ++ ; p.bonus +=n; play pl=10,15; calculate (pl,5); cout<<pl.score<< : <<pl.bonus<<endl; calculate(pl); cout<<pl.score<< : <<pl.bonus<<endl; calculate(pl,15); cout<<pl.score<< : <<pl.bonus<<endl; (d) #include <iostream.h> void Changethecontent(int Arr[], int Count) for (int C=1;C<Count;C++) Arr[C-1]+=Arr[C]; int A[]=3,4,5,B[]=10,20,30,40,C[]=900,1200; Changethecontent(A,3); Changethecontent(B,4); Changethecontent(C,2); for (int L=0;L<3;L++) cout<<a[l]<< # ; cout<<endl; for (L=0;L<4;L++) cout<<b[l] << # ; cout<<endl; for (L=0;L<2;L++) cout<<c[l] << # ; (e) Find the output of the following program: #include <iostream.h>
5 struct Game char Magic[20];int Score; ; Game M= Tiger,500; char *Choice; Choice=M.Magic; Choice[4]= P ; Choice[2]= L ; M.Score+=50; cout<<m.magic<<m.score<<endl; Game N=M; N.Magic[0]= A ;N.Magic[3]= J ; N.Score-=120; cout<<n.magic<<n.score<<endl; (f) #include<iostream.h> void main( ) long NUM= ; int F=0,S=0; do int R=NUM % 10; if (R %2!= 0) F += R; else S += R; NUM / = 10; while (NUM>0); cout<<f-s; (g) Find the output of the following program. #include<iostream.h> #include<ctype.h> void Mycode(char Msg[],char ch) for(int cnt=0;msg[cnt]!='\0';cnt++) if(msg[cnt]>='b'&& Msg[cnt]<='G') Msg[cnt]=tolower(Msg[cnt]); else if(msg[cnt]=='a' Msg[cnt]=='a') Msg[cnt]=ch; else if(cnt%2==0) Msg[cnt]=toupper(Msg[cnt]); else Msg[cnt]=Msg[cnt-1]; char MyText[]="ApEACeDriVE"; Mycode(MyText,'@'); cout<<"new TEXT: "<<MyText<<" "<<endl;
6 (h) Find the output of the following program. #include<iostream.h> struct POINT int X, Y, Z; ; void StepIn( POINT & P, int Step = 1) P.X += Step; P.Y -= Step; P.Z += Step; void StepOut ( POINT & P, int Step = 1) P.X -= Step; P.Y += Step; P.Z -= Step; POINT P1 = 15, 25, 5, P2 = 10, 30, 20; StepIn(P1); StepOut(P2, 4); cout<<p1.x<<, <<P1.Y<<, <<P1.Z<<endl; cout<<p2.x<<, <<P2.Y<<, <<P2.Z<<endl; StepIn (P2, 12); cout<<p2.x<<, <<P2.Y<<, <<P2.Z<<endl; (i) Find the correct possible output(s) of the following program from the options given below. #include<iostream.h> #include<stdlib.h> randomize(); char color*+*10+=, RED, BLUE, PINK, BLACK -; int p; for( int i=1; i<=3; i++) p=random(2) +1; cout<<color*p+<< : ; Outputs: (i) BLUE:PINK:BLUE (ii) RED:BLUE:PINK (iii) BLUE:PINK:BLACK (iv) BLUE:PINK:PINK (j) Find the output of the following program. #include<iostream.h> #include<string.h> #include<ctype.h> void main ( )
7 char str[]= ; for( int c=0; c<strlen(str); c++) if(islower(str[c])) str[c]=toupper(str[c]); else if(isupper(str[c])) str[c]=tolower(str[c]); else if(isdigit(str[c])) str[c]=str[c] + 1; else str[c]= * ; cout<<str; 5. Class Completion Questions: (a) Define a class STUDENT with following specifications private members rollno integer name character array of size 20 clas character array of size 5 marks integer array of size 5 per float // percentage calculate() // calculates overall percentage & returns the percentage public member/member functions readmark() to read the required input & invoke calculate() function displaymark() to display all details (b) Define a class in C++ with following description: Private Members A data member Flight number of type integer A data member Destination of type string A data member Distance of type float A data member Fuel of type float A member function CALFUEL() to calculate the value of Fuel as per the following criteria Distance Fuel <= more than 1000 and <= more than Public Members A function FEEDINFO() to allow user to enter values for Flight Number, Destination, Distance & call the function CALFUEL() to calculate the quantity of Fuel A function SHOWINFO() to allow user to view the content of all the data members
8 (c ) Define a class batsman with the following specifications: Private members: bcode bname 4 digits code number 20 characters innings, notout, runs integer type batavg, batavg =runs/(innings-notout) calcavg() Public members: readdata() it is calculated according to the formula Function to compute batavg Function to accept value from bcode, name, innings, notout and invoke the function calcavg() displaydata() Function to display the data members on the screen. (d ) Define a class Clothing in C++ with the following descriptions : Private members : Code of type string Type of type string Size of type integer Material of type string Price of type float A function CalcPrice() which calculates and assigns the value of Price as follows : For the value of Material as Cotton Type Price (Rs.) Trouser 1500 Shirt 1200 For material other than Cotton the above mentioned Price gets reduced by 15%. Public Members : A constructor to assign initial values of Code, Type and Material with the word NOT ASSIGNED and Size and Price with 0. A function Enter() to input the values of the data members Code, Type, Size and Material and invoke the CalcPrice() function. A function Show() which displays the content of all the data members of Clothing. 5. (a) What is the difference between get() and read(). (b) What is the difference between app and ate mode of opening a file. (c) Name two member functions of ofstream class. (except open and close) (d) What is the output if the file content before the execution of the program is the string ABC ( Note that are not part of the file) char ch= a ; fstream fileout( data.dat,ios::out); fileout<<ch; int p = fileout.tellg(); cout<<p;
9 (e) Consider the following class declaration: class employee int code; char name[20]; float salary; public: void input() cin>>code>>name>>salary; void show() cout<<code<<name<<salary; float retsal() return salary ; ; Give function definitions to do the following: (i)write the objects of employee to a binary file. (ii)read the objects of employee from the binary file and display all the objects on the screen whose salary is between Rs and Rs (f) Observe the program segment given below carefully and fill the blanks marked as Statement 1 and Statement 2 using seekg() and tellg() functions for performing the required task. #include <fstream.h> class Employee int Eno;char Ename[20]; public: //Function to count the total number of records int Countrec(); ; int Employee::Countrec() fstream File; File.open( EMP.DAT,ios::binary ios::in); //Statement 1 int Bytes = //Statement 2 int Count = Bytes / sizeof(employee); File.close(); return Count; (g) Write a function in C++ to count the words this and these present in a text file NOTES.TX (h) Write a function in C++ to add new objects at the bottom of a binary file STUDENT.DAT, assuming the binary file is containing the objects of the following class. class STUD int Rno; char Name[20]; public: void Enter()cin>>Rno;gets(Name); void Display()cout<<Rno<<Name<<endl; int Return_Rno() return Rno; ;
10 (i)write a function in C++ to delete an object from a binary file STUDENT.DAT, assuming the binary file is containing the objects of the class STUD whose definition is given in Q. 6(c). The Rno of the object to be deleted will be passed as an argument.
COMPUTER SCIENCE Sample Paper I
COMPUTER SCIENCE Sample Paper I Time allowed: 3 hours Max. Marks: 70 Instructions: (i) All the questions are compulsory. (ii) Programming Language: C++ 1. (a) What is the difference between Object Oriented
More informationComputer Science (Code 083) Sample Paper with Solution Set II
Max. Marks: 70 1. Computer Science (Code 083) Sample Paper with Solution Set II Duration: 3 Hours (a) What is the difference between Object Oriented Programming and Procedural Programming? 2 Object Oriented
More informationHome Assignment for Class XII(Summer Vacation) Subject: CS Based on Library Functions ( 1 Mark)
Home Assignment for Class XII(Summer Vacation) Subject: CS Based on Library Functions ( 1 Mark) Q1. Write the names of the header files to which the following belong: (i) isdigit() (vi) setw() (ii) strcmp()
More information(4) Find the syntax error(s), if any, in the following program: #include main() int x[5],*y,z[5]; for(i=0;i<5;i++) x[i]=i; z[i]=i+3; y=z; x=y; (5) Rew
(1)Rewrite the following program after removing the syntactical error(s), if any Underline each correction, struct TV char Manu_name[20]; char Tv_Type; int Price = 17000; New Tv; gets(manu_name); gets(tv_type);
More informationComputer Science (Code 083) Sample Paper with Solution Set II
Max. Marks: 70 1. Computer Science (Code 083) Sample Paper with Solution Set II Duration: 3 Hours (a) What is the difference between Object Oriented Programming and Procedural Programming? 2 Object Oriented
More informationKendriya Vidyalaya Sangathan MODEL QUESTION PAPER - 2 Class-XII Subject: Computer Science (083) Time 3 hrs MM 70
Kendriya Vidyalaya Sangathan MODEL QUESTION PAPER - Class-XII Subject: Computer Science (083) Time 3 hrs MM 70 S.No. UNIT VSA SA I SA II LA TOTAL ( Mark) ( Marks) (3 Marks) (4 Marks) Review of C++ covered
More informationSample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)
Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory) Time Allowed: 3hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C+ + Ques 1. (a)what is the difference
More informationCOMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII
COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII TIME: 3 HOURS MAX.MARK: 70 General Instructions- (i) All questions are compulsory (ii) Programming Language: C++ 1 (a) When a function is overloaded,
More informationvoid main() { int global=7 ; func( ::global,global) ; cout<<global<<, <<::global<< \n ; func(global,::global) ; cout<<global<<, <<::global<< \n ; }
K.V.NO.3 AFS CHAKERI AUTUMN BREAK HOME WORK 2017-18 CLASS-XII 1. a) Differentiate between an identifier and keywords. b) Name the header files, to which following inbuilt function belong to: a) abs( )
More informationCOMPUTER SCIENCE (Theory) - Class XII Sample Question Paper II Subject Code - 083
COMPUTER SCIENCE (Theory) - Class XII Sample Question Paper II Subject Code - 083 TIME : 3 Hrs MM : 70 No. Questions Marks 1. (a) What is the difference between Actual Parameter and Formal Parameters?
More informationKENDRIYA VIDYALYA CLRI COMPUTER SCIENCE XII WORKSHEET ON OUTPUT QUESTIONS
KENDRIYA VIDYALYA CLRI COMPUTER SCIENCE XII WORKSHEET ON OUTPUT QUESTIONS 1. What will be the output of following: void main ( ) int val = 10; cout
More informationQ2) Define a class candidate in C++ with following Description: Private Members 4 Number) of type long
KVITBP DEHRADUN SUMMER BREAK HOMEWORK, XII COMP SC, LEVEL A Q1) Define a class TEST in C++ with following description: Private Members: TestCode of type integer Description of type string NoCandidate of
More informationDownloaded from
CBSE PREVIOUS YEAR QUESTION BANK QNO 1 (a) 1 (a) Define the following terms: 2 (i) Inheritance (ii) Encapsulation 1998 Delhi Board 1(a) Differentiate between a Run Time Error and Syntax Error. Also give
More informationKENDRIYA VIDYALAYA NO.1 SAGAR XII-COMPUTER SCIENCE ( ) HOMEWORK SUMMER VACATION
KENDRIYA VIDYALAYA NO.1 SAGAR XII-COMPUTER SCIENCE (2018-19) HOMEWORK SUMMER VACATION 1.(a) Differentiate between Actual and Formal parameters. Also give suitable C++ code to illustrate both. (b) What
More informationKENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION
KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION CLASS:XII SUB:COMPUTER SCIENCE Code No. 083 Instructions: (i) All questions are compulsory. (ii) Programming language: C++
More informationComputer Science, Class XII ( ) (Summer Vacation-2015) (Holiday H.W) Chapter No.1 to 3
(Summer Vacation-2015) (Holiday H.W) Chapter No.1 to 3 1. Why main function is so special in C++? Give at least two reasons. /* CBSE 1999 */ 2. Differentiate between call by value & call by reference with
More informationSample Paper COMPUTER SCIENCE (Theory) Class-XII Time Allowed: 3hours Maximum Marks: 70
Sample Paper- 2015 COMPUTER SCIENCE (Theory) Class-XII Time Allowed: 3hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C+ + Ques. 1 a) What is the use of inline
More informationIf the function modify( ) is supposed to change the mark of a student having student_no y in the file student.dat, write the missing statements to modify the student record. 10. Observe the program segment
More informationCLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70
1 CLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70 General Instructions- (i) All questions are compulsory (ii) Programming Language: C++ 1. (a) Differentiate between call-by-value and
More informationCBSE GUESS PAPER. Roll No. Computer Sc. XII(083)/
Roll No. CBSE GUESS PAPER Computer Sc. XII(083)/2011-12 Time Allowed 3 Hours Maximum Marks- 70 General Instructions: (i) All questions are compulsory. (ii) The paper contains 7 questions. (iii) Programming
More information(a) Differentiate between a call by value and call by reference method.
ATOMIC ENERGY CENTRAL SCHOOL NO- RAWATBHATA Half Yearly Examination 05 Model Paper Class XII Subject Computer Science Time Allowed: hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii)
More informationCOMPUTER SCIENCE Time allowed : 3hours] [Maximum Marks :70
COMPUTER SCIENCE-2010 Time allowed : 3hours] [Maximum Marks :70 Instructions (i) (ii) All questions are compulsory Programming Language : C++ 1. (a) What is the difference between automatic type conversion
More informationSession Chapter 4: Classess & Object
Session 2017-18 Chapter 4: Classess & Object How does a class enforce data-hiding, abstraction, and encapsulation? What is the significance of access specifiers in a class? How are class and object different
More informationAutumn Break 2017 Exam Oriented Assignment Class-XII B, Computer Science
Autumn Break 2017 Exam Oriented Assignment Class-XII B, Computer Science S.No. 1 Name of Chapter/Topic CLASSES AND OBJECTS HOT Questions 1. What do you understand by member function? 2. Differentiate between
More informationITL Public School First Term( )
ITL Public School First Term(06-7) Date:9.09.6 Class: XI Computer Science(08) Time: hrs. M. M: 70 General Instructions: There are 7 questions in total. Marks are given against all the questions Try to
More informationList of Practical for Class XII Computer Science
List of Practical for Class XII Computer Science P.01. Write a complete C++ program to define class Garment with following description: Private members: Code - type string Type - type string Size - type
More informationSAMPLE PAPER. Class: XII SUBJECT COMPUTER SCIENCE. Time: 3 Hours MM: 70
SAMPLE PAPER Class - XII SUBJECT COMPUTER SCIENCE Subject: Computer Sc. Class: XII Time: 3 Hours MM: 70 1. (a) Differentiate between a global variable and a local variable. (b) Name the Header file(s)
More informationBRAIN INTERNATIONAL SCHOOL. Computer Science Assignment CLASS XII OCTOBER 2018 Chapter-7. Data File Handling in C++ Text Files
BRAIN INTERNATIONAL SCHOOL Computer Science Assignment CLASS XII OCTOBER 2018 Chapter-7. Data File Handling in C++ Text Files Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Write a C++
More informationKENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE
CLASS- XII MAX MARKS-70 KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION 01-15 SUBJECT COMPUTER SCIENCE TIME- HOURS Q1 a) What is the Difference between Global Variable and Local Variable?
More informationSECTION A [Only for candidates, who opted for C++]
PRINCE PUBLIC SCHOOL HALF YEARLY EXAMINATION (2018-19) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS MAXIMUM MARKS: 70 General Instructions 1. This question paper conations 4 questions. 2.
More informationDELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION
DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION 2017 2018 Class: XII Subject : Computer Science Assignment No. 3 1. a) What is this pointer? Explain with example. b) Name the header file
More informationKUWAIT SAHODAYA EXAMINATION FIRST TERM SUBJECT : COMPUTER SCIENCE (083) : CLASS - XII SET - 3 Time : 3 Hours
KUWAIT SAHODAYA EXAMINATION FIRST TERM 08-09 SUBJECT : COMPUTER SCIENCE (08) : CLASS - XII SET - Time : Hours MM=70 Instructions- (Based on the model of CBSE Exams). a) Find and write the output of the
More informationDELHI PUBLIC SCHOOL, RUBY PARK, KOLKATA CLASS XII SUBJECT: COMPUTER SCIENCE QUESTION BANK FILE HANDLING:-
DELHI PUBLIC SCHOOL, RUBY PARK, KOLKATA CLASS XII SUBJECT: COMPUTER SCIENCE QUESTION BANK FILE HANDLING:- 1. Write a function in C++ to count and display the number of lines not starting with alphabet
More informationSample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70
Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70 INSTRUCTIONS: All the questions are compulsory. i. Presentation of answers should be neat and to the point. iii. Write down the serial
More informationConstructor & Classes Questions
(1)Answer the questions (i) and (ii) after going through the following program: class Match int Time; Match() //Function 1 Time=0; cout
More informationBRAIN INTERNATIONAL SCHOOL Term-II Class-XI Sub:- Computer Science Revision Sheet
BRAIN INTERNATIONAL SCHOOL Term-II Class-XI 2018-19 Computer Organisation Sub:- Computer Science Revision Sheet 1. Which electronic device invention brought revolution in earlier computers? 2. Which memory
More informationEAS 230 Fall 2002 Section B
EAS 230 Fall 2002 Section B Exam #2 Name: Person Number: Instructions: ƒ Total points are 100, distributed as shown by [ ]. ƒ Duration of the Exam is 50 minutes. I ) State whether True or False [25] Indicate
More informationI Mid Semester May 2012 : Class XII : Computer Science Max Mark 50 : Time 2 Hrs. 1. a) What is macro in C++? Give example 2
I Mid Semester May 01 : Class XII : Computer Science Max Mark 50 : Time Hrs 1. a) What is macro in C++? Give example b) Give the Header file for the following functions:- i) gets ( ) ii) tolower( ) 1 c)
More informationSample Paper I Class XII
Sample Paper I Class XII. (a) Define default parameter and constant parameter of a C++ function with the help of suitable examples. (b) Name the header files which include the following C++ functions :
More informationKENDRIYA VIDYALAYA NO.02 AFS HINDAN G.BAD Holiday Homework Class XII Computer Science
KENDRIYA VIDYALAYA NO.02 AFS HINDAN G.BAD Holiday Homework 2018-19 Class XII Computer Science Topics covered 1) Classes and objects 2) Constructors and destructors 3) Inheritance 4) Review of class XI
More informationCOMPUTER SCIENCE 1998 (Delhi Board)
COMPUTER SCIENCE 1998 (Delhi Board) Time allowed: 3 hours Max. Marks: 70 Instructions: (i) All the questions are compulsory. (ii) Programming Language: C++ QUESTION l. (a) Define the following terms: (i)
More informationKENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015
KENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015 CLASS: XII COMPUTER SCIENCE TIME: 1½ hrs TOTAL MARKS: 35 1. How can we make private members inheritable? (1) 2. Find out errors in the following program:-
More informationKENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)
KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION CLASS XII COMMON PREBOARD EXAMINATION 05-06 COMPUTER SCIENCE (08) Time: hours Max. Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming
More informationKE DRIYA VIDYALAYA SA GATHA,CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO COMPUTER SCIE CE CLASS- XII Time allowed : 3 hours Maximum Marks : 70
KE DRIYA VIDYALAYA SA GATHA,CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO 2008-09. COMPUTER SCIE CE CLASS- XII Time allowed : 3 hours Maximum Marks : 70 1. (a) Explain the difference between an actual parameter
More informationCOMPUTER SCIENCE (083)
Roll No. Code : 112012-083 Please check that this question paper contains 7 questions and 8 printed pages. CLASS-XI COMPUTER SCIENCE (083) Time Allowed : 3 Hrs. Maximum Marks : 70 General Instructions
More informationSample Paper, 2015 Subject: Computer Science Class 12 th
Sample Paper, 2015 Subject: Computer Science Class 12 th Time: 3 Hours Max. Marks: 70 Instructions: i) All questions are compulsory and so attempt all. ii) Programming language: C++. iii) Please check
More informationKENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK XII COMPUTER SCIENCE ARRAY AND STRUCTURES
KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK- 2018-19 XII COMPUTER SCIENCE ARRAY AND STRUCTURES 1. Write a function which will take a string and returns the word count. Each word is separated
More informationHOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science
HOLIDAYS HOMEWORK 2017-18 CLASS : XII Subject : Computer Science Note : Attempt the following questions in a separate register and make yourself prepared to conquer the world. Chapter- 1 : C++ Revision
More informationDownloaded from
QUARTERLY EXAMINATION, 2013 14 SUBJECT: COMPUTER SCIENCE TIME : 3 hrs CLASS : XII M.M.-70 Instructions: (1) All the questions are compulsory. (2) Programming Language C++ 1 (a) Illustrate the concept of
More informationModel Sample Paper 2015
Time: 3 Hours MM: 70 Model Sample Paper 2015 Class XII Computer Science (083) Instructions: (i) (ii) All questions are compulsory. Programming Language C++. 1. (a) What is the difference between Actual
More informationCLASS XII GUESS PAPER COMPUTER SCENCE (083)
CLASS XII GUESS PAPER COMPUTER SCENCE (083) TIME: 3 hours MARKS: 70 Q1. Please check that this question paper contains 11 printed pages. Code-snippets in questions may be printed wrong rectify the errors
More informationvoid Add() { cin >> trainnumber; gets(trainname); } void display() { cout<<trainnumber <<":"<<TrainName<<end;
. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE QUESTION BANK FOR BOARD EXAMINATION 016-17 SUBJECT COMPUTER SCIENCE (Code: 083) Q1. Answer the following questions: a) Name the header file(s) that shall be
More informationPRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION ( ) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS
PRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION (2018-19) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS MAXIMUM MARKS: 70 General Instructions 1. This question paper contains 7 questions. 2. SECTION
More informationJB Academy, Faizabad Half Yearly Examination Subject: Computer Science (083) Class XII
JB Academy, Faizabad Half Yearly Examination - 2017-18 Subject: Computer Science (083) Class XII Time: 3 Hours Max. Marks: 70 Instructions: i) All questions are compulsory and so attempt all. ii) Programming
More informationSample Paper Class XI Subject Computer Sience UNIT TEST II
Sample Paper Class XI Subject Computer Sience UNIT TEST II (General OOP concept, Getting Started With C++, Data Handling and Programming Paradigm) TIME: 1.30 Hrs Max Marks: 40 ALL QUESTIONS ARE COMPULSURY.
More informationKENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION CLASS:XII - (COMPUTER SCIENCE )
KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION 2014-15 CLASS:XII - (COMPUTER SCIENCE ) MaxMarks:70 Time Allowed :3 Hours Instructions: (i) All questions are compulsory.
More informationm) sin() n) endl o) getch() p) cout
SAMPLE PAPER 1. a) Name the header file for the following built-in functions: a) log() b) exp() c) getch() d) isalnum() e) fabs() f) isalpha() g) toupper() h) cos() i) random() j) gets() k) abs() l) tolower()
More informationKENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70
KENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70 GENERAL INSTRUCTIONS : 1. ALL QUESTIONS ARE COMPULSORY. 2. PROGRAMMING LANGUAGE : C++ Q1. (a) Out of
More informationCOMPUTER SCIENCE (083)
Roll No. Code : 112011-083-A Please check that this question paper contains 7 questions and 6 printed pages. CLASS-XI COMPUTER SCIENCE (083) Time Allowed : 3 Hrs. Maximum Marks : 70 General Instructions
More informationMock Test Paper-2. CBSE XII : Computer Science. Duration : 3hrs Max Marks : 70
Mock Test Paper-2 CBSE XII : Computer Science Mock Test Paper-2 1 Duration : 3hrs Max Marks : 70 1. (a) What is the difference between Object Oriented Programming and Procedural programming? 2 (b) Write
More informationKendriyaVidyalayaSangathan Kolkata Region
KendriyaVidyalayaSangathan Kolkata Region Third Pre-Board Examination : 204-5 Please check that this question paper contains 7 questions. Please write down the Serial Number of the question before attempting
More informationComputer Science 2006 (Delhi)
Computer Science 6 (Delhi) General Instructions: Q... All questions are compulsory.. Programming Language: C++ a. Name the header file to which the following belong () i. abs( ) ii. isupper( ) b. Illustrate
More informationComputer Science 2006 (Outside Delhi)
Computer Science 6 (Outside Delhi) General Instructions: Q... All questions are compulsory.. Programming Language: C++ a. Name the header file to which the following belong: () i. pow( ) ii. random( )
More information(d) Rewrite the following program after removing all the syntax error(s), if any. [2] include <iostream.h> void main ( )
Sample Paper 2012 Class XII Subject Computer Science Time: 3 Hrs. M.M. 70 General instructions: 1) All questions are compulsory. 2) Read all the questions carefully. 3) Programming language C++. Q.1(a)
More informationAfter going through this lesson, you would be able to: store data in a file. access data record by record from the file. move pointer within the file
16 Files 16.1 Introduction At times it is required to store data on hard disk or floppy disk in some application program. The data is stored in these devices using the concept of file. 16.2 Objectives
More informationHOLIDAY HOMEWORK ASSIGNMENT-5 Q1. What will be the output of the following program segment Class Num { int x; float y; public: void init( ) { x = y =
HOLIDAY HOMEWORK ASSIGNMENT-5 Q1. What will be the output of the following program segment Class Num { int x; float y; void init( ) { x = y = 0; void read(int i, float j) { x = i; y = j; void Display (
More informationQUESTION BANK SUB: COMPUTER SCIENCE(083)
BHARATIYA VIDYA BHAVAN S V M PUBLIC SCHOOL, VADODARA QUESTION BANK SUB: COMPUTER SCIENCE(083) CHAPTER 6 Pointers 2 MARKS QUESTION 1. Rewrite the following codes after removing errors, if any, in the following
More informationBHARATIYA VIDYA BHAVAN S V.M.PUBLIC SCHOOL, VADODARA. Class : XII SAMPLE PAPER Max Marks : 70
BHARATIYA VIDYA BHAVAN S V.M.PUBLIC SCHOOL, VADODARA Class : XII SAMPLE PAPER Max Marks : 70 Subject : Computer Science Time Allotted : 3 hrs General Instructions : Programming Language : C++. All questions
More informationBLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI. Unit Wise Marks
BLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI Unit Wise Marks Unit No. Unit Name Marks 1. COMPUTER FUNDAMENTAL 10 2. PROGRAMMING METHODOLOGY 12 3. INTRODUCTION TO C++ 1. INTRODUCTION TO C++ 3 TOTAL
More informationSAMPLE PAPER 2015 SUB - COMPUTER SCIENCE - (Theory) CLASS XII Time allowed: 3 hours Maximum marks: 70
SAMPLE PAPER 215 SUB - COMPUTER SCIENCE - (Theory) CLASS XII Time allowed: 3 hours Maximum marks: 7 Instructions : i) All the questions are compulsory. ii) Programming Language (for Q. 1-4): C++ iii) Write
More informationPOINTERS - Pointer is a variable that holds a memory address of another variable of same type. - It supports dynamic allocation routines. - It can improve the efficiency of certain routines. C++ Memory
More informationb) #include<iostream.h> void main() { int a, b; cout<<"input two integer values? "; cin>>a>>b; double avg=(a+b)/2.0; cout<<"average="<<avg<<endl; }
SAMPLEPAPER-2016 (Class 11) 1a)Name the header file(s) that shall be needed for successful compilation of the following C++ code. void main( ) char Name[20]; gets(name); int n=1+random(5); for(int k=0;k
More informationI BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++
No. of Printed Pages : 3 I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination 05723. June, 2015 BCS-031 : PROGRAMMING IN C ++ Time : 3 hours Maximum Marks : 100 (Weightage 75%)
More informationConsider the following statements. string str1 = "ABCDEFGHIJKLM"; string str2; After the statement str2 = str1.substr(1,4); executes, the value of str2 is " ". Given the function prototype: float test(int,
More information1. a) Find the correct identifiers out of the following, which can be 2 used for naming Variable, Constants or Functions in a C++ program:
SECOND PREBOARD EXAMINATION (2017 18) CLASS: XII Subject: COMPUTER SCIENCE Date: 24.1.2018 Time Allowed: 3 Hours Maximum Marks: 70 General instructions: (1) All questions are compulsory. (2) Marks are
More informationDELHI PUBLIC SCHOOL BOKARO STEEL CITY
DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION 2015-2016 Class: XII Subject : Computer Science Assignment No. 3 Question 1: (a) What is the difference between Call by Value and Call by
More informationGuru Harkrishan Public School, Karol Bagh Pre Mock Class XII Sub: COMPUTER SCIENCE Allowed :3 hrs
Guru Harkrishan Public School, Karol Bagh Pre Mock 2014-15 Class XII Sub: COMPUTER SCIENCE Time Allowed :3 hrs M.M. 70 Please check that this question paper contains 9 printed pages. Please check that
More informationMock Test Paper-3. Computer Science. Duration : 3hrs Max Marks : 70
Mock Test Paper-3 Computer Science Mock Test Paper-3 11 Duration : 3hrs Max Marks : 70 1. (a) How does a class inforce data hiding? 2 (b) Name the header files to which the following belong- 1 (c) Rewrite
More informationDATA FILE HANDLING. The function should create another file OUT.TXT with the text
DATA FILE HANDLING (a) What is the purpose of seekp() and seekg( )1) (b) Write a function in C++ to read a text file SPACE.TXT. Using this file create another file OUT.TXT by replacing more than one space
More informationInformatics Practices - Assignments. A Practical Workbook
Informatics Practices - Assignments (based on JAVA & SQL) A Practical Workbook Class XII 1 Assignments based on JAVA 1. Create a java Desktop application to find the largest number among the three floating
More informationSample Paper 2012 Class XII Subject Computer Science
Sample Paper 2012 Class XII Subject Computer Science General Instruction CODE (083) 1. Please check this question paper contains 7 printed pages. 2. Code number given on the right side of question paper
More informationComputer Science, Class XII, Chapter No.7 (Data File Handling)
Chapter No.7 (Data File Handling) 1. What is a file? How a text file is different from binary file? 2. What is stream? Name and define the streams generally used for file I/O? 3. Which header file is required
More informationScheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C
Sample Test Paper-I Marks : 25 Time:1 Hrs. Q1. Attempt any THREE 09 Marks a) State four relational operators with meaning. b) State the use of break statement. c) What is constant? Give any two examples.
More informationKENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION FOR CLASS XII SUBJECT: COMPUTER SCIENCE
KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION 2014-15 FOR CLASS XII SUBJECT: COMPUTER SCIENCE SET-I F.M. 70 General Instructions: Programming Language C++ All Questions are
More informationGuru Gobind Singh Public School Sector: V/B, Bokaro Steel City Assignment (Level 2)
Subject : Computer Science Class : XII Guru Gobind Singh Public School Sector: V/B, Bokaro Steel City Assignment (Level 2) 1. Out of the following, find those identifiers, which cannot be used for naming
More information(1)Given a binary file PHONE.DAT, containing records of the following structure type class Phonlist { char Name[20]; char Address[30]; char
(1)Given a binary file PHONE.DAT, containing records of the following structure type class Phonlist char Name[20]; char Address[30]; char AreaCode[5]; char PhoneNo[15]; Public: void Register(); void Show();
More informationCOMPUTER SCIENCE (Theory) - Class XII Marking Scheme
COMPUTER SCIENCE (Theory) - Class XII Marking Scheme 1 a) Call by value l It is a used to create a temporary copy of data coming from actual parameter.the changes done in the function in the formal parameter
More informationTHE INDIAN COMMUNITY SCHOOL, KUWAIT
THE INDIAN COMMUNITY SCHOOL, KUWAIT SERIES : I SE / 2016-2017 CODE : N 065 MAX. MARKS : 70 TIME ALLOWED : 3 HOURS NO. OF PAGES : 6 INFORMATICS PRACTICES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More informationSAMPLE PAPER-2015 CLASS-XII COMPUTER SCIENCE. Sample paper-i. Time allowed: 3 hours Maximum Marks: 70 Name : Roll No.:
SAMPLE PAPER-2015 CLASS-XII COMPUTER SCIENCE Sample paper-i Time allowed: 3 hours Maximum Marks: 70 Name : Roll No.: General Instruction 1. Please check that this question paper contains 7 questions. 2.
More informationUnit-V File operations
Unit-V File operations What is stream? C++ IO are based on streams, which are sequence of bytes flowing in and out of the programs. A C++ stream is a flow of data into or out of a program, such as the
More information(b) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2
HALF-YEARLY EXAMINATION-2017-2018 COMPUTER SCIENCEMARKING SCHEME CLASS XII 1. (a) Write any two differences between procedural programming and object oriented programming. 2 Ans. Procedural oriented programming
More informationINTERNATIONAL INDIAN SCHOOL, RIYADH. Ch 1 C++ Revision tour
Grade- XII Computer Science Worksheet Ch 1 C++ Revision tour 1) Explain in brief the purpose of function prototype with the help of a suitable example. 2) What is the benefit of using default parameter/argument
More informationPOINTERS. Pointer is a memory variable which can store address of an object of specified data type. For example:
POINTERS Pointer is a memory variable which can store address of an object of specified data type For example: #include int x=5; int *a;//here a is a pointer to int which can store address of
More informationios ifstream fstream
File handling in C++ In most of the real time programming problems we need to store the data permanently on some secondary storage device so that it can be used later. Whenever we have to store the data
More informationComputer Science XII Important Concepts for CBSE Examination Questions
Computer Science XII Important Concepts for CBSE Examination Questions LEARN FOLLOWIING GIVEN CONCEPS 1. Encapsulation: Wraps up data and functions under single unit through class. Create a class as example.
More informationChapter-11 POINTERS. Important 3 Marks. Introduction: Memory Utilization of Pointer: Pointer:
Chapter-11 POINTERS Introduction: Pointers are a powerful concept in C++ and have the following advantages. i. It is possible to write efficient programs. ii. Memory is utilized properly. iii. Dynamically
More information(d) Observe the following C++ code very carefully and rewrite it after removing any/all syntactical errors: [2] Include < iostream.
DELHI PUBLIC SCHOOL, RANCHI Pre Board-II Examination 2018 Computer Science (083) Time: 3 Hours Class: XII Maximum Marks: 70 General Instructions: There are 08 Number of Questions, all in total. All Questions
More informationCBSE Sample Paper for Computer Science Class XII.
CBSE Sample Paper for Computer Science Class XII. Time allowed : 3 hours Maximum marks : 70 Question-1 1. (a) Define Multilevel and Multiple Inheritance with example. [ 2 Mark] (b) Define a class ELECTION
More informationSample Paper, Subject: Computer Science Class 12 th Time Allowed : 3 Hr. M.M.: 70
Sample Paper, 2012-13 Subject: Computer Science Class 12 th Time Allowed : 3 Hr. M.M.: 70 General Instruction 1. Please check this question paper contains 10 printed pages. 2. Code number given on the
More informationKENDRIYA VIDYALAYA PICKET : SECUNDERABAD :09 CLASS XII HOLIDAY HOME WORK
KENDRIYA VIDYALAYA PICKET : SECUNDERABAD :09 CLASS XII HOLIDAY HOME WORK SUBJECT : MATHS SUBJECT :ACCOUNTANCY 1. Complete comprehensive project ( As discussed in the classroom). 2. Download 10 CBSE sample
More information