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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

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

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

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

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

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

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

Question Bank Class XII Subject : Computer Science


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

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

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

COMPUTER SCIENCE

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

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

KENDRIYA VIDYALAYA SANGATHAN- ERNAKULAM REGION MODEL PAPER - CLASS XII COMPUTER SCIENCE (083)

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

Computer Science 2006 (Delhi)

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

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

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

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

Sample Paper 2012 Class XII Subject Computer Science

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

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

COMPUTER SCIENCE 1998 (Delhi Board)

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

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

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

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

Computer Science 2006 (Outside Delhi)

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

Model Sample Paper 2015

COMPUTER SCIENCE 2002 (Delhi Board)

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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 SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

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

KendriyaVidyalayaSangathan Kolkata Region

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

2016 COMPUTER SCIENCE

2 SEMESTER EXAM CLASS : 12 DECEMBER 2016 TIME : 3 Hrs MAX MARKS : 70

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

KENDRIYA VIDYALAYA SANGATHAN CLASS XII EXAMINATION INFORMATICS PRACTICES (065)

(c)rewrite the following program after removing the syntactical error(s),if any.under line each correction. [2] def main1(emp): print emp[name]

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

Guru Gobind Singh Public School Sector: V/B, Bokaro Steel City Assignment

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

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

SET 4. Series : GBM/C COMPUTER SCIENCE. Code No. 91. Candidates must write the Code on the title page of the answer-book. Roll No.

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

CLASS-XI COMPUTER SCIENCE

Guru Gobind Singh Public School Sector : V/B, Bokaro Steel City

Sample Paper 2015 Class XII Subject Computer Science

COMPUTER SCIENCE (083)

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

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

THE INDIAN COMMUNITY SCHOOL, KUWAIT

Advanced C Programming and Introduction to Data Structures

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST PRE-BOARD EXAMINATION COMPUTER SCIENCE

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

Index for C++ Programming

Creating a C++ Program

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

COMPUTER APPLICATION

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

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE. CLASS- XII Time Allowed: 3 hours Max.

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

Computer Science[083]

m) sin() n) endl o) getch() p) cout

IV Unit Second Part STRUCTURES

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

Computer Programming C++ (wg) CCOs

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

Code No: R Set No. 1

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE

Short Notes of CS201

COMPUTER SCIENCE (083)

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

VALLIAMMAI ENGINEERING COLLEGE

Class XII Computer Science (083) Sample Question Paper Time allowed: 3 Hours Max. Marks: 70

Transcription:

KENDRIYA VIDAYALAYA SANGATHAN ERNAKULAM REGION PREBOARD EXAMINATION 208-9 CLASS :XII MAX. MARKS : 70 SUBJECT : COMPUTER SCIENCE Instructions: TIME :3 HRS (i) Please check that this question paper contains 8 printed pages. (ii) Please check that this question paper contains 7 questions (iii) All questions are compulsory. (iv) Programming language C++ (a) (b) (c) Write the type of C++ tokens (keywords and user defined identifiers)from the following (i) case (ii) _delete (iii) WHILE (iv) 2stName Jay has just started learning C++. He typed the following C++ code and during the compilation of the code, he got some errors. When Jay asked his teacher, the teacher told him to include necessary header files in the code. Write the names of those header files, which Jay needs to include, for successful compilation and execution of the following code. void main() cout<<"we win!"<<endl; cout<<strlen("the World")<<endl ; Rewrite the following program after removing the syntax error(s) if any. Underline each correction. Typedef String[80] char void main( ) String S; for (L=O ;L<26;C++) S[L]=L+65 ; S[L)='\0'; cout<<s<<endline; (d) What will be the output of the following program void main()

float *Ptr,Points[]= 20,50,30,40,0; Ptr=Points ; cout<<*ptr<<endl; Ptr+=2 ; Points [2]+=2.5; cout<<*pt r<<endl ; Ptr++; (*Ptr)+=2.5; cout<<points[3]<<endl; 2 (e) Find the output of the following program : Note: Assume all the required header files are already being included in the program. class Calc char Grade; int Bonus; Calc() Grade= E ; Bonus=0; void Down(int G) Grade =G; Void Up(int G) Grade+=G; Bonus++; void Show() cout<<grade<< # <<Bonus<<endl; ; void main() Calc c; C.Down; C.Show(); C.Up(7); C.Show(); C.Down C.Show();

3 (f) Find the correct possible output(s) #include<stdlib.h> #include<iostream.h> void main() randomize(); char city[ ]= PKD, EKM, TVM, KOL, CAL ; int ZEN; for(inti=0;i<3;i++) ZEN=random+; cout<<city[zen]<< @ ; (i) PKD@ EKM @TVM@ (ii) EKM @TVM@ EKM @ (iii) TVM@KOL@CAL@ (iv) TVM@ EKM @TVM@ 2 (a) What is a copy constructor? Give a suitable example in C++ to illustrate with its definition within a class and a declaration of an object with the help of it.. (b) class Complex int x; int y; Complex(); //Function void disp() //Function 2 cout<< The Complex number is : <<x<< + <y<< i <<end; Complex(int, int); //Function 3 Complex(Complex &abc); //Function 4 ; (i) Which category of constructor - Function belongs to? Write an example illustrating the calls for Function. (ii) Write the complete definition for Function 4. (c) Define a class DONOR with the following specifications : Private : Donor number integer Name 20 characters Blood group 2 characters Public : Input( ) A function to accept all the information Output( ) A function to display all the (4)

(d) 4 information Checkgroup( ) A function with char * return to return Blood group Define functions with their given description. Consider the following declarations and answer the questions given below: class author char name[2]; double royalty; protected: void register(); author(); void enter(); void display(); ; class person char address[20]; protected: float salary; person(); void havelt(); void givelt(); ; class employee : private author, public person int ecode; char dept[30]; employee(); void start(); void show(); ; i)write the names of data members, which are accessible from object of class employee. ii)write the names of all the member functions which are accessible from object of class person. iii)write the data members which are accessible from member functions of class employee. iv)how many bytes are required by an object belonging to class employee (4) 3 (a) Write the definition of a function Alter(int A[], int N) in C++, which should change all the multiples of 5 in the array to 5 and

5 (b) (c) rest of the elements as 0. A two dimensional array P[40] [30] is stored in the memory along the column with each of its element occupying 4 bytes, find the address of the element P[20] [5],if the element P[5] [0] is stored at the memory location 7200. Write a function in C++ to perform Insert operation in a dynamically allocated Queue containing names of students. struct stud char Name[20]; stud *Link; ; (4) (d) (e) Write a function CHANGE (intp[][5], int N, int M) in C++to display the sum of alternate elements from a two dimensional array. 23 6 3 9 92 5 2 56 Thefunctionshoulddisplayoutputas: Sum=234 Evaluate the following postfix expression using a stack and show the contents of the stack after each operation. 45,45,+,32,20,0,/,-,* 4 (a) Consider a file F containing objects P of class PLAYER. (i) Write statement to position the file pointer to the end of the file. (ii) Write statement to return the number of bytes from the beginning of the file to the current position of the file pointer. (b) Write a function in C++ to count the number of vowels present in a text file BOOK.txt (c) Write a definition for function Economic() in C++ to read each record of a binary file ITEMS.DAT, find and display those items, which costs less than 2500. Assume that the file ITEMS.DAT is created with the help of objects of class ITEMS, which is defined below: class ITEMS int ID; char GIFT[20];

float Cost; public : void Get() cin>>code;gets(gift);cin>>cost; void See() cout<<id<<":"<<gift<<":"<<cost<<endl; floatgetcost() return Cost;. 6 ; 5 (a) Define : (i) Tuple (ii) Attribute (b) Consider the following tables RENTACAR andcustomers. Write SQL commandsfor the statements (i) to (iv) and give outputs for (v) to (viii). VCODE VEHICLENAM Make COLOR Capacity Charges E 00 Innova TOYOTA White 7 5 02 SZ4 SUZUKI Blue 4 4 04 C Class MERCEDE Red 4 35 S 05 AStar SUZUKI White 3 4 08 Indigo TATA Silver 3 2 CCODE CNAME VCODE HemanthSahu 0 2 Raj Lal 08 3 Feroza Shah 05 4 Ketan Dhal 04 i) To display the names of all the white coloured vehicles ii) To display the name of the vehicle,make and capacity of vehicles in ascending order of their seating capacity. iii) To display the highest charges at which a vehicle can be hired from RENTACAR. iv) To display the customer name and the corresponding name of the vehicle hired by them v) SELECT COUNT(DISTINCT MAKE) FROM RENTACAR; vi) SELECT MAX(CHARGES),MAKE FROM RENTACAR GROUP BY MAKE; vii) SELECT VEHICLENAME FROM RENTACAR WHERE CAPACITY=4; viii) SELECT VCODE,VEHICLENAME FROM RENTACAR WHERE COLOR LIKE RED ; ½ ½ ½ ½

7 6 (a) State and prove De Morgans Law using truth table. (b) Derive a Canonical POS expression for a Boolean function F, represented by the following truth table : A B C F(A,B,C) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (c) Write the equivalent Boolean Expression F for the following circuit diagram : A B C (d) Reduce the following Boolean Expression using K-map: F (X, Y, Z, W) = ) 7 (a) Write one name of wireless and one wired communication medium (b) (a) Expand the following (i) CDMA (ii) GSM (c) What is web2.0.? (d) Name one server side scripting language and one client side scripting language. (e) A Company has set up its new centre at Delhi for its office and (4)

8 web based activities. It has 4 blocks of buildings as shown in the diagram below: BLOCK A Block B BLOCK D BLOCK C Centre to centre distances between various blocks Black A to Block B Block B to Block C Block C to Block D Block A to Block D Block B to Block D Block A to Block C 50 m 50 m 25 m 70 m 25 m 90 m Number of Computers Black A 25 Block B 50 Block C 25 Block D 0 (f) (g) (i) Suggest a cable layout of connections between the blocks. (ii) Suggest the most suitable place (i.e. block) to house the server of this organisation with a suitable reason. (iii) Suggest the placement of the following devices with justification (i) Repeater (ii) Hub/Switch iv) The organization is planning to link its head office situated in Delhi with the office at Srinagar. Suggest an economic way to connect it; the company is ready to compromise on the speed of connectivity. Justify your answer. Which type of network will be formed when you connect 0 PCs in a computer lab using coaxial cables and a switch? Kabir wants to purchase a Book online and placed the order for that book using an e-

9 commerce website. Now, he is going to pay the amount for that book online using his Mobile, he needs which of the following to complete the online transaction:- i. A bank account, ii. iii. A Mobile connection/phone which is attached to above bank account, The mobile banking app of the above bank installed on that mobile iv. Login credentials(userid& Password) provided by the bank v. All of above.