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

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

(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

Sample Paper 2015 Class XII Subject COMPUTER SCIENCE. Some Important Questions Networking

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

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

Downloaded from

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

KENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015

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

COMPUTER SCIENCE

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

KENDRIYA VIDYALAYA TIRUMALAGIRI,SECUNDERABAD UNIT TEST II

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

Time allowed : 3 hours Maximum Marks: 70

Sample Paper, 2015 Subject: Computer Science Class 12 th

Model Sample Paper 2015

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

91/1 COMPUTER SCIENCE. Series SHC/1. dksm ua- jksy ua- Code No. Roll No. Candidates must write the Code on the title page of the answer-book.

Question Bank Class XII Subject : Computer Science

COMPUTER SCIENCE 1998 (Delhi Board)

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

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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

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

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

KendriyaVidyalayaSangathan Kolkata Region

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

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

2 SEMESTER EXAM CLASS : 12 DECEMBER 2016 TIME : 3 Hrs 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:

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE

THE EMIRATES NATIONAL SCHOOL SHARJAH THIRD MODEL EXAMINATION 2015 COMPUTER SCIENCE ( Code : 083) CLASS : XII MAX MARKS: 70

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

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

Downloaded-From:-


KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XII

COMPUTER SCIENCE 2002 (Delhi Board)

Computer Science 2006 (Delhi)

Code No. 91. (i) All questions are compuls9ry. 1. (a) What is the difference between Type Casting and Automatic Type

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

SECTION A [Only for candidates, who opted for C++]

KENDRIYA VIDYALAYA SANGATHAN MODEL QUESTION PAPER-5 BLUE PRINT CLASSS XII COMPUTER SCIENCE (083) TIME: 03:00 Hrs. MAX. MARKS: 70 S.No.

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

COMPUTER SCIENCE. Time allowed : 3 hours Maximum Marks : 70

Computer Science 2006 (Outside Delhi)

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

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

KENDRIYA VIDYALAYA SANGATHAN

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

Computer Science[083]

Q1. (SQL) Consider the following table HOSPITAL. Write SQL commands for the statements (i) to (v)

CBSE 12th Computer Science Question Papers

(d) Observe the following C++ code very carefully and rewrite it after removing any/all syntactical errors: [2] Include < iostream.

ITL Public School First Term Exam( )

VIDYA BHARATI SCHOOL

4. BOOLEAN ALGEBRA 8 5. NETWORKING AND OPEN SOURCE SOFTWARE 10

List of Practical for Class XII Computer Science

2016 COMPUTER SCIENCE

KENDRIYA VIDYALAYA NO.02 AFS HINDAN G.BAD Holiday Homework Class XII Computer Science

KENDRIYA VIDYALAYA SANGATHAN, KOLKATA REGION SPLIT-UP SYLLABUS ( ) CLASS XII : COMPUTER SCIENCE (THEORY)

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

(i) get single character using keyboard. This function is available in stdio.h. (ii) to check whether given character is alphabet or digit or not.

ITL Public School First Term( )

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.

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

KENDRIYA VIDYALAYA SANGATHAN

SAMPLE QUESTION PAPER Subject: Computer Science Class: XII ( )


BLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI. Unit Wise Marks

ISC 2006 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part

SAMPLE QUESTION PAPER CLASS-XII, SESSION: SUBJECT: COMPUTER SCIENCE

COMPUTER SCIENCE (083)


Transcription:

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 right side of question paper should be written on the title page of the answer book by the candidate 3. Please check that this question paper contains 7 questions. 4. Please write down serial number of the question before attempting it. 5. All questions are compulsory. 6. Programming language : C++ Q1.(a) What is the difference between the call by value and call by reference? Give an example in c++ to illustrate both. 2 (b) Name the header files, to which the following built-in functions belong to: 1 (i) eof ( ) (ii) isalpha (c) Identify and correct the error(s) in the following program: 2 #include<iostream.h. Main float class = 10.7; float y; y = class % 5.0; cout<<class <<, <<y; (d) Give the output of the following Program: 2 #include<iostream.h int a = 3; void demo (int &x, int y, int *z) a + = x; y * = a; *z = a + y; cout<<a<<, <<x<<, <<y<<, <<z<<endl; void main( )

int a = 2, b=5; demo(::a,a,&b); cout<<::a<<, <<a<<, <<b; (e) Give the output of the following Program: 3 #include<iostream.h> void withdef ( int HisNum = 30) for ( int I = 20 ; I<= HisNum; I+= 5) cout<<i<<, ; cout<<endl; void Control( int &MyNum ) MyNum + = 10; withdef(mynum); void main( ) int YourNum = 20; Control(YourNum ); withdef( ); cout<< Number= <<YourNum<<endl; (f) Study the following program and select the possible output from it : 2 #inlude<iostream.h> #include<conio.h> #include<stdlib.h> const int LIMIT = 4; void main( ) randomize( ); int Points; Points = 100 + random(limit); for ( int p = Points; p>=100; p--)

cout<<p<< # ; cout<<endl; (i) 103#102#101#100# (ii) 103#102#101#100 (iii) 101#102#103#104# (iv) 103#102#101#100# Q.2 (a) What do you understand by Copy Constructor? Explain with suitable example. 2 (b) Answer the questions (i) and (ii) after going through the following class: 2 class Travel int days; public: Travel ( ) // Function 1 Days = 50; cout << Journey starts now << endl; void sightseeing( ) // Function 2 cout << Sightseeing in the journey starts << endl; Travel (int Duration) // Function 3 Days = Duration; cout << Journey starts now << endl; ~ Travel ( ) // Function 4 cout << Happy journey << endl; ; (i) In Object Oriented Programming, what is Function 4 referred as and when does it get invoked/ called? (ii) In Object Oriented Programming, which concept is illustrated by Function 1 and

Function 3 together? Write an example illustrating the calls for these functions. (c) Define a class Garments in C++ with the following descriptions : 4 Private members : Gcode of type string Gtype of type string Gsize of type integer Gfabric of type string Gprice of type float A function Assign ( ) which calculates and assigns the value of Gprice as follows : For the value of Gfabric COTTON, Gtype Gprice( Rs) TROUSER 1300 SHIRT 1100 For Gfabric other than COTTON the above mentioned Gprice gets reduced by 10% Public members: A constructor to assign initial values of Gcode, Gtype, and Gfabric with the word NOT ALLOTTED and Gsize and Gprice with 0. A function Input( ) to input the values of the data members Gcode, Gtype, Gsize and Gfabric and invoke the Assign( ) function. A function to Display( ) which displays the content of all the data members for a Garments. (d) Answer the questions (i) to (iv) based on the following code: 4 class Car char Model[10]; char Date_of_purchase[10]; char Company[20]; public( ); Car( ); void entercardetail( ); void showcardetail( ); ;

class Accessories : public Car protected: char stereo_tape[30]; char sheet_cover[20]; public: float Price; Accessories( ); void enteraccessoriesdetails( ); void showaccessoriesdetails( ); ; class Dealer : public car int No_of_dealers; char dealers_name[20]; int No_of_products; public: Dealer( ); void enterdetails( ); void showdetails( ); ; (i) (ii) (iii) (iv) (a)how many bytes will be required by an object of class Car and an object of class Dealer? (b)which type of inheritance is illustrated in the above c++ code? Write names of all the data members which are accessible from the objects of class Dealer. Write names of all the members accessible from member functions of class Accessories. Write names of all the member functions which are accessible from objects of class Dealer. Q.3 (a) Write the function SWAPCOL() in C++ to swap (interchange) the first column elements with the last column elements, for a two dimensional integer array passed as the arguments of the function. 3

Ex. If the two dimensional array contains. After swapping of the content of 1 st column and last column it should be (b) If an array B[11][8] is stored as column wise and B[2,2] is stored at 1024 and B[3,3] at 1084. Find the addresses of B[5,3] and B[1,1]. 3 (c) Define functions stackpush( ) to insert nodes and stackpop( ) to delete nodes, for a linked list implemented stack having the following structure for each node: 4 struct node char name[20]; int age; node *LINK; ; (d) Obtain the postfix notation for the following infix notation of expression showing the contents of the stack and postfix expression formed after step of conversion: 2 A * B + (C D / F G)* H (e) Write a user defined function Upper_half() which takes a two dimensional array A, with size N rows and N columns as arguments and point the upper half of the array. eg. 2 2 3 1 5 0 2 3 1 5 0 7 1 5 3 1 1 5 3 1 If A is 2 5 7 8 1 The Output Will be 7 8 1 0 1 5 0 1 0 1 3 4 9 1 5 5

Q4. a) Observe the program segment given below carefully and answer the question that follows: 1 class Team long TId; char TName[20]; float points; public: void Accept( ); void Show( ); void PointChange( ); long R_TId( ) return TId; ; void ReplacePoints(long Id) fstream File; File.open ( Team.Dat, ios::binary ios: indies::out); Team T; Int Record=0, found=0; while(!found && File.read((char*)&T, sizeof(t))) if (Id==T.R_TId( )) cout<< Enter New Points ; T.PointChange (); //Statement 1 // Statement 2 Found=1; Record++; if(found==1) cout<< Record Updated ; File.close( ); Write the statement 1 to position the File Pointer at the beginning of the Record for which the Team s ID matches with the argument passed, and Statement 2 to write the updated record at the Position.

(b) (c) Write a function in C++ to print the count of the word Me and My (ignoring the case) as an independent word in a text file STORY.TXT. If the file Story.txt content is as follows: My first book was me and My family. It gave me change to be known to the world. The output of the function should be Count of Me/My in file: 4 2 Write a function in C++ to search and display details, whose destination is Delhi from a binary file Train.Dat. Assuming the binary file is containing the objects of the following class: 3 class TRAIN int Tno; // Train Number char From[20]; // Train Starting Point char To[20]; // Train Destination public: char * GetFrom ( ); return from; char * GetTo( ); return To; void input() cin>>tno>>; gets(from); get(to); void show( ) cout<<tno<< : <<From << : <<To<<endl; ; Q 5. (a) Differentiate between Primary key and Foreign Key in context of RDBMS. Give suitable example. 2 (b) Consider the following table DRESS and MATERIAL. Write SQL commands for the statements (i) to (iv) and give outputs for SQL quarries (v) to (viii). 6 Table: DRESS DCODE DESCRIPTION PRICE MCODE LAUNCHDATE 10001 Formal Shirt 1250 M001 12-JAN-08 10020 FROCK 750 M004 09-SEP-07 10012 INFORMAL SHIRT 1450 M002 06-JUN-08 10019 EVENING GOWN 850 M003 06-JUN-08 10090 TULIP SKIRT 850 M002 31-MAR-07 10090 PENCIL, SKIRT 1250 M003 19-DEC-08 10023 SLACKS 850 M003 20-OCT-08 10089 FORMAL PANT 1450 M001 09-MAR-08 10009 INFORMAL PANT 1400 M002 20-OCT-08 10024 BABY TOP 650 M003 07-APR-07 TABLE: MATERIAL MCODE M001 M002 M004 TYPE TERELENE COTTON POLYESTER

M003 SILK (i) (ii) (iii) (iv) (v) To display DCODE and DESCRIPTION of each dress in ascending order of DCODE. To display the details of all the dresses which have LAUNCHDATE in between 05-DEC-07 and 20-JUN-08 (inclusive of both the dates) To display the average PRICE of all the dresses which are made up of material with MCODE as M003. To display material wise highest and lowest price of dresses from DRESS table. (Display MCODE of each dress along with highest and lowest price). SELECT SUM( PRICE) FROM DRESS WHERE MCODE= M001 ; (vi) SELECT DESCRIPTION, TYPE FROM DRESS MATERIAL WHERE DRESS.DCODE>=1250; (vii) SELECT MAX(MCODE) FROM MATERIAL ; (viii) SELECT COUNT(DISTINCT PRICE) FROM DRESS. Q6. (a) State and verify Absorption s Law and Demorgan s Law using truth table and algebraically. 2 (b) Write the equivalent Boolean Expression for the following Logic Circuit 1 (c) Write the SOP form of a Boolean function G, which is represented in a truth table as follows: 1 U V W G 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 (d) Reduce the following Boolean Expression using K-Map: 3 F(U,V,W,Z)= (0,1,4,5,6,7,11,12,13,14,15)

(e) Give the dual of (A+BC+AB) 1 Q.7 (a) What is the difference between Packet switching and message switching technique? 1 (b) Expand the following terminologies: 1 (i) (ii) TDMA WLL (c) What is the utility of Cyber law? 1 (d) What do you understand by cookies 1 (e) The Reliance Info Sys has set up its Branch at Srinagar for its office and web based activities. It has 4 Zone of buildings as shown in the diagram: Center to center distances various blocks Zone X to Zone Z Zone Z to Zone Y Zone Y to Zone X Zone Y to Zone U Zone X to Zone U Zone Z to Zone U 40 m 60 m 135 m 70 m 165 m 80 m Number of Computers Zone X 50 Zone Z 130 Zone Y 40 Zone U 15 (e1) (e2) Suggest a most suitable cable layout of connections between the Zones and topology. Suggest the most suitable place (i.e., Zone) to house the server of this organization with a suitable reason, with justification. 1 (e3) Suggest the placement of the following devices with justification: 1 (e4) (1) Repeater (2) Hub / Switch The organization id planning to link its head office situated in Mumbai at the offices at Srinager. Suggest an economic way to connect it; the company is ready to compromise on the speed of connectivity. Justify your answer. 1 (f) What is the difference between the LAN and MAN? 2 1