Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70

Similar documents
Downloaded from


(d) Rewrite the following program after removing all the syntax error(s), if any. [2] include <iostream.h> void main ( )

SAMPLE PAPER-2015 Class-XII SUB:-COMPUTER SCIENCE

(1)Given a binary file PHONE.DAT, containing records of the following structure type class Phonlist { char Name[20]; char Address[30]; char


CLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION. REVISION Examination 2013 COMPUTER SCIENCE (083) CLASS XII

PRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION ( ) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS

Code No. 083 Time allowed: 3 hours Maximum Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming language: C++

SAMPLE PAPER-2015 CLASS-XII COMPUTER SCIENCE. Sample paper-i. Time allowed: 3 hours Maximum Marks: 70 Name : Roll No.:

KE DRIYA VIDYALAYA SA GATHA,CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO COMPUTER SCIE CE CLASS- XII Time allowed : 3 hours Maximum Marks : 70

(a) Differentiate between a call by value and call by reference method.

QUESTION BANK SUB: COMPUTER SCIENCE(083)

JB Academy, Faizabad Half Yearly Examination Subject: Computer Science (083) Class XII

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

Mock Test Paper-3. Computer Science. Duration : 3hrs Max Marks : 70

Sample Paper, Subject: Computer Science Class 12 th Time Allowed : 3 Hr. M.M.: 70

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

void Add() { cin >> trainnumber; gets(trainname); } void display() { cout<<trainnumber <<":"<<TrainName<<end;

COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

Downloaded from

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

CBSE GUESS PAPER. Roll No. Computer Sc. XII(083)/

#include<iostream.h> #include<conio.h> #include<ctype.h>

BHARATIYA VIDYA BHAVAN S V.M.PUBLIC SCHOOL, VADODARA. Class : XII SAMPLE PAPER Max Marks : 70

1. a) Find the correct identifiers out of the following, which can be 2 used for naming Variable, Constants or Functions in a C++ program:

BRAIN INTERNATIONAL SCHOOL. Computer Science Assignment CLASS XII OCTOBER 2018 Chapter-7. Data File Handling in C++ Text Files

Sample Paper, 2015 Subject: Computer Science Class 12 th

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK XII COMPUTER SCIENCE ARRAY AND STRUCTURES

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

Downloaded from

DATA FILE HANDLING. The function should create another file OUT.TXT with the text

I Mid Semester May 2012 : Class XII : Computer Science Max Mark 50 : Time 2 Hrs. 1. a) What is macro in C++? Give example 2

Model Sample Paper 2015

KendriyaVidyalayaSangathan Kolkata Region

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

Please check that this question paper contains 11 printed pages. Please write down the serial number of the question before attempting it.

After 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

KENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70

Guru Harkrishan Public School, Karol Bagh Pre Mock Class XII Sub: COMPUTER SCIENCE Allowed :3 hrs

DELHI PUBLIC SCHOOL, RUBY PARK, KOLKATA CLASS XII SUBJECT: COMPUTER SCIENCE QUESTION BANK FILE HANDLING:-

JB ACADEMY HALF-YEARLY EXAMINATION 2016 CLASS XII COMPUTER SCIENCE. Time: 3:00 Hrs. M.M.: 70

SAMPLE PAPER 2015 SUB - COMPUTER SCIENCE - (Theory) CLASS XII Time allowed: 3 hours Maximum marks: 70

Sample Paper COMPUTER SCIENCE (Theory) Class-XII Time Allowed: 3hours Maximum Marks: 70

Mock Test Paper-2. CBSE XII : Computer Science. Duration : 3hrs Max Marks : 70

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

Sample Paper 2012 Class XII Subject Computer Science

Study Material for Class XII. Data File Handling

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION FOR CLASS XII SUBJECT: COMPUTER SCIENCE

(i) case (ii) _delete (iii) WHILE (iv) 21stName

SHORT REVIEW OF CS TOPICS RANDOM NUMBERS (2 MARKS) which generates a random number in the range of 0 to n-1. For example;

Downloaded from

SAMPLE PAPER. Class: XII SUBJECT COMPUTER SCIENCE. Time: 3 Hours MM: 70

ITL Public School Pre-Board( ) Computer Science (083) Time:3 hrs M. M: 70

Series SHC COMPUTER SCIENCE. Code No. 91. Roll No.

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

CBSE Sample Paper 2015 Computer Science C++ Class XII Time 3hrs M.M 70

Object Oriented Pragramming (22316)

General Instructions:

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

KUWAIT SAHODAYA EXAMINATION FIRST TERM SUBJECT : COMPUTER SCIENCE (083) : CLASS - XII SET - 3 Time : 3 Hours

AISSCE COMMON MODEL EXAMINATION Subject Computer Science [083] Time Allotted: 3 Hours Maximum Marks: 70

SPLIT-UP SYLLABUS ----CHENNAI REGION COMPUTER SCIENCE (Code: 083) Class-XII Academic Session

COMPUTER SCIENCE 2002 (Delhi Board)

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW MARKS QUESTIONS : DATA STRUCTURE

COMPUTER SCIENCE Time allowed : 3hours] [Maximum Marks :70

VIDYA BHARATI SCHOOL

void main() { int global=7 ; func( ::global,global) ; cout<<global<<, <<::global<< \n ; func(global,::global) ; cout<<global<<, <<::global<< \n ; }

COMPUTER SCIENCE 1998 (Delhi Board)

Computer Science, Class XII, Chapter No.7 (Data File Handling)

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

CLASS XII SECOND TERM EXAMINATION SUBJECT : COMPUTER SCIENCE SET A2 (SOLUTIONS)

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION CLASS:XII - (COMPUTER SCIENCE )

Sample Paper 2015 Class XII Subject Computer Science

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

COMPUTER SCIENCE (083)

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION. REVISION Examination 2013 COMPUTER SCIENCE (083) CLASS XII. Time Allowed: 3 Hours Maximum Marks: 70

DISK FILE PROGRAM. ios. ofstream

Convenient way to deal large quantities of data. Store data permanently (until file is deleted).

CBSE 12th Computer Science Question Papers

Unit-V File operations

ios ifstream fstream

COMPUTER SCIENCE (CODE 083) CLASS XII Time allowed : 3Hours Maximum. Marks 70

KENDRIYA VIDYALAYA SANGATHAN. Regional Office Delhi Split-up Syllabus Session Subject:-Computer Science Subject Code:-083

Chapte t r r 9

Question Bank Class XII Subject : Computer Science

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

AC55/AT55 OBJECT ORIENTED PROGRAMMING WITH C++ DEC 2013

Computer programs are associated to work with files as it helps in storing data & information permanently. File - itself a bunch of bytes stored on

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

b) #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; }

Computer Science[083]

Government of Karnataka SYLLABUS FOR SECOND PUC - COMPUTER SCIENCE (41) SUB-UNITS

cout<< \n Enter values for a and b... ; cin>>a>>b;

Computer Programming C++ (wg) CCOs

Transcription:

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 number of the question before attempting it and write all sub Questions serially. iv. Leave 1-2 lines gap before starting a new answer. Q1. a. What is Inheritance? Give an example. 1 b. Write the names of the header files to which the following belong: 2 i) sqrt() ii) isalpha iii) puts() iv)strcpy() c. Rewrite the corrected code for the following program.underline each correction (if any) 2 # include<iostream.h> Structure Swimmingclub int memnumber; char memname[20]; char memtype[ ] = LIG ; void main( ) Swimmingclub per1,per2; cin>> Member number ; cin >>memnumber.per1: ; cout<< Member name: ; cin>>per1. Member name; per1.memtype= HIG ; per2=per1; cin>> Member number: <<per2.memnumber: ; cin>> Member name: << per2.memname; cin>> Member number : << per2.memtype: ; d. What will be the output of the following program: 1 # include <iostream.h> # include<ctype.h> # include<conio.h> # include< string.h> void Newtext(char String[ ], int &Position) char *pointer = String; int Length =strlen(string);

for(; Position<Length-2;Position+=2; *(Pointer Position)=toupper(*(Pointer Position)); e. What will be the output of the following program: 1 #include<iostream.h> void main( ) clrscr( ); int v1=5, v2=10; for(int x =1; x<=2; x++) cout<< ++ v1<< \t <<v2 -- <<endl; cout<< - - v2<< \t <<v1++<<endl; and f. Write the definition for a function Sum series ( ) in c++ with two Arguments/parametersdouble x int n.the function should return a value oftype double and it should perform sum of the following series. 4 x- x 2 /3!+ x 3 /5!- x 4 / 71+x 5 /9!-..n. Q2. a. Given the following C++ code answer the questions (i) to (ii). 2 class TestMeOut Public: ~ TestMeOut( ) //Function 1 cout<< Leaving the examination hall: <<endl; TestMeOut () // Function2 cout<< appearing for the examination : <<endl; void MyWork( ) // Function3 cout<, Attempting the Question: ; i. In object Oriented programming what is Function 1 referred as and when does it get invoked / called? ii. In OOP s what is Function 2 referred as and when does it get invoked / called? b. Define a class TravelPlan in C++ with the following descriptions: 4 Private Members: PlanCode Place Number Number_of_buses of type long of type character array (string) of travellers of type integer of type integer Public Members: A constructor to assign initial values of Plan Code as 1001, Place as Agra, Number_of_travellers as 5, Number_of_buses as 1 A function NewPlan( ) which allows user to enter PlanCode, Place and Number_of_travellers. Also, assign the value of Number_of_buses as per the Followingconditions:

Number_of_travellers Number_of_buses Less than 20 1 Equal to or more than 20 and less than 40 2 Equal to 40 or more than 40 3 A function ShowPlan( ) to display the content of all the data members on screen. c. Define the term Data Hiding in the context of Object Oriented Programming. Give a suitable example using a C++ code to illustrate the same. 2 d.what is the purpose of seekp () and seekg ( ) 1 e Write a code snippet to open a binary file in both input/ output modes. 1 Q3.a. Define a function SwapArray ( int [ ], int), that would accept a one dimensional 3 integer array Numbers and its size N.The function should rearrange the array in such a way that the values of alternate locations of the array are exchanged (assume the size of the array to be even) If the array initially contains : ( 2,5,9,14,17,8,19,16) Then after rearranged the array should contain: (5, 2, 14, 9, 8, 17, 16, 19) b. An Array [15][10] is stored in the memory with each element occupying 2 bytes of scope. Assuming the base address of ARR to be 2000, compute the address of ARR[7][8],when the array is stored. i) Row wise ii) Column Wise 3 c. Answer the following (i) to (iv) based on the following code: 4 class PUBLISHER class Pub[12]; double Turnover; protected: void Register (); Publisher (); void Enter( ); void Display( ); class BRANCH char CITY[20]; protected: float Employees; BRANCH(); void Haveit(); void Giveit(); class Author: private BRANCH, public PUBLISHER int Acode; char Aname[20]; float amount; AUTHOR( ); void Start( ); void Show();

i. Write the names of the data members, which are accessible from objects belonging to class AUTHOR. ii. Write the names of all the member functions which are accessible from objects belonging to the class BRANCH. Iii.Write the names of all members which are accessible from member functions of class AUTHOR. iv. How many bytes will be required by an object belonging to class AUTHOR? d. Explain Polymorphism in C++ with an example. 2 Q4 a. Assuming that a text file named TEXT1.TXT already contains some text written into it, write a function named vowel words( ), that reads the file TEXT.TXT and creates a new file named TEXT2.TXT, which shall contain only those words from the file TEXT1.TXTwhich starts with an uppercase vowel (i.e with A, E, I, O, U ). For example, if the file TEXT1.TXT contains. 3 Carry Umbrella and Overcoat When it Rains. Then the file TEXT2.TXT shall contain Umbrella Overcoat b. Assuming the class STOCK as follows: 2 class STOCK int ItNo; char Item[10]; void getdata( ) cin>> ItNo, gets(item); void putdata( ) cout<< ItNo << <<Item<<endl; Write a function in c++ to perform the following. i) Write the objects of STOCK to a Binary File. ii) Read the objects of STOCK from Binary File and Display them on screen. c. If fstream.h header file is included in a file handling program, what header file wemay not include? Explain. 1 d. Observe the program segment carefully and answer the question that follows: 1 class item int item_no; char item_name[20]; void enterdetail( ); void showdetail( ); int getitem_no( ) return item_no; void modify(item x, int y ) fstream File; File.open( item.dat, ios::binary ios::in ios::out) ;

item i; int recordsread = 0, found = 0; while(!found && File.read((char*) &i, sizeof (i))) recordsread++; if(i. getitem_no( ) = = y ) //Missing statement File.write((char*) &x, sizeof (x)); 44 found = 1; if(! found) cout<< Record for modification does not exist ; File.close() ; If the function modify ( ) is supposed to modify a record in the file item.dat, which item_no is y, with the values of item x passed as argument, write the appropriate statement for the missing statement using seekp ( ) or seekg ( ), whichever is needed, in the above code that would write the modified record at its proper place. Q5.a. Write a function in C++ to read and display records of all the members whose Membership type is L or M from a Binary file CLUB.dat contains objects ofclass CLUB which is defined as follows. 1 Class CLUB int Mno; char Mname[20]; char type; public void register( ); void display( ) ; char Type( ) return Type; b. Write a function in C++ which accepts an integer array and its size as arguments and assigns the elements into a two dimensional array of integers in the following format. 2 If the array is1,2,3 The resultant 2D array should be 1 2 3 1 2 0 1 0 0 c.write a function Sortscore in c ++ to sort an array of structure Examinee in descending order of Score using Bubble Sort. Assume the following definition of structure. 2 struct Examinee long rollno; char name[20]; float score; d. Write a function Merge () in C++ to merge two given arrays A in ascending order, B in descending order into a third array C which should be in ascending order. The size of the arrays A, B, C should bed M, N, and M + N respectively. 3

e. Distinguish between the following two statements: 1 time T1(13, 10, 25); //statement 1 time T1 = time(13,10,25); //statement 2 b) What are memory leaks? Give one reason for memory leaks. 1 Q6.a. State De Morgan s Theorems and verify the same using truth table. 2 b. Write the equivalent Canonical Product of Sum Expression for the following Sum Of Product Expression F(X, Y, Z) = (0, 2, 4, 5) 2 c.write the equivalent Boolean expression for the logic circuit given below: 1 d. State Absorption Law and verifyit algebraically. 2 e. Obtain the simplified form of the Boolean Expression using K Map: 3 F( x, y, z, w) = (0,2,4,5,8,9,12,13,15) f. Write the SOP form of a Boolean Function F(A, B,C) which is represented by the following truth table: 1 A B C F 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 Q7 (a) Compare anytwo Switching techniques. 1 (b) Expand the following terminologies: 2 (i) GSM (ii) XML (iii) CDMA (iv) WLL (c).what are Bridges? How do they differ from Repeaters? 2 (e).agrawal Industries has set up its new center at Luck now for its office and web based activities. The company compound has four building as shown in the Diagram below:

KGN to Sri Ram Sri Ram to Sai Sai to Krishna Krishna to KGN KGN to Sai Sri Ram to Krishnan The distance between various buildings are : Numbers of computers are: 65m 195m 205m 200m 195m 325m 4 KGN Building 158 Krishna Building 125 Sai Building 200 Sri Ram Building 78 i. Suggest the cable layout of connections between the buildings. ii. Suggest the most suitable place to house the server, with a suitable reason. iii. Suggest the placement of the following devices with reasons : iv. The Institute is planning to link its International office situated in New Delhi.