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

Similar documents
KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

Model Sample Paper 2015

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

COMPUTER SCIENCE

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

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

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

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

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


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

Computer Science 2006 (Outside Delhi)

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

KE DRIYA VIDYALAYA SA GATHA, CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO COMPUTER SCIE CE (CLASS-XII) MARKI G SCHEME

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

Downloaded from

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 GUESS PAPER. Roll No. Computer Sc. XII(083)/

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

(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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION CLASS:XII - (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

Computer Science 2006 (Delhi)

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

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

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

Question Bank Class XII Subject : Computer Science

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

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

COMPUTER SCIENCE 1998 (Delhi Board)

KendriyaVidyalayaSangathan Kolkata Region

Sample Paper 2012 Class XII Subject Computer Science

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

COMPUTER SCIENCE 2002 (Delhi Board)


Autumn Break 2017 Exam Oriented Assignment Class-XII B, Computer Science

Sample Paper 2015 Class XII Subject Computer Science

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

Downloaded from

INTERNATIONAL INDIAN SCHOOL, RIYADH. Ch 1 C++ Revision tour

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

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

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE- CLASS- XII. Marking scheme

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

KENDRIYA VIDYALAYA SANGATHAN (KOLKATA REGION) Second Pre Board Examination ( ) COMPUTER SCIENCE (Theory) Class-XII Marking Scheme

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

Programming in C++ The manager of a company. Lecture Notes 6. Functions (Procedures) 4/24/2018. he he he. Does Does Does

Downloaded from

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

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

COMPUTER SCIENCE (083)

General Instructions:

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

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

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

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

QUESTION BANK SUB: COMPUTER SCIENCE(083)

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

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

CBSE 12th Computer Science Question Papers

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

CS32 - Week 4. Umut Oztok. Jul 15, Umut Oztok CS32 - Week 4

This chapter introduces the notion of namespace. We also describe how to manage input and output with C++ commands via the terminal or files.

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

Higher National Diploma in Information Technology. First Year Second Semester Examination IT 2003-Data Structure and Algorithm.

CLASS-XI COMPUTER SCIENCE

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

COMPUTER SCIENCE Sample Paper I

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

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

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

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; }

KENDRIYA VIDYALAYA SANGATHAN GUWAHATI REGION क य व लय स गठन, ग व ह ट स भ ग I-PRE BOARD EXAMINATION ( -ब ड पर )

Transcription:

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 and formal parameter. 2 (b) Name the header files that shall be needed for the following built in functions. (i) frexp( ) (ii) strrev( ) 1 (c) Rewrite the following program after removing the syntactical errors(if any). Underline each correction. 2 #include [iostream.h] class BILL int Charge; PUBLIC: void Increment( ) cin>> Charge; void Show cout >> Charge; ; void main( ) BILL B; B.Increment( ); Show ( ); (d) Find the output of the following program when the input is (i) A (ii) C (iii) D (iv) F? 3. char ch; cin>> ch; switch (ch) case A : cout<< Percentile A \n ; case B : cout<< Percentile B \n ; case C : cout<< Percentile C \n ;break; case A : cout<< Percentile D \n default : cout<< Percentile F \n (e) Give the output of the following program : 2 class Dog Dog( ); // Constructor ~ Dog( ) //Destructor void setage(int age); int getage( ); void setweight(int weight); int getweight( );

void speak( ); private: int age; int weight; ; Dog :: Dog( ) age = 0; weight = 0; cout << Dog constructor called << endl; Dog :: ~Dog( ) cout << Dog destructor called << endl; main( ) Dog D1,D2,D3; cout<< Objects are created ; Dog D4; cout << Objects are created ; Dog D5; (f) Observe the following program GAME.CPP carefully, if the value of Num entered by user is 15, write the correct possible output from the options given below: 2 # include<stdlib.h> # include<iostream.h> void main ( ) randomize( ); int Num, Rndnum; cin>> Num; Rndnum = random(num) + 15; for( int N = 1; N <= Rndnum ; N++) cout << N << ; (i) 1 2 3 4 5 6 7 8 9 (ii) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (iii) 1 2 3 4 5 6 7 8 9 10 11 12 (iv) 1 2 3 4 5 2. (a) What do you mean by static data members of a class? Explain the characteristics of a static data member. 2 (b) Answer the question (i) and (ii) after going through the following class : 2 class Animal int Age; public : Page 2 of 7

Animal ( ) // Function 1 Age= 0; cout<< Animal Detail << endl; void Details ( ) // Function 2 cout<< Wild Animall << endl; Animal( int D) // Function 3 Age = D; Animal(Animal &M) // Function 4 Age = M.Age ; ; (i) Which category of constructor Function 4 belongs to and what is the purpose of using it? (ii) Write the statements that would call the member Functions 1 and 3. (c) Declare a class having following: 4 Data Members: Name of society House Number Number of members Flat type Income Member Functions: To read data member To allocate flat according to income Income >= 50000 Flat type = HIG Income >= 25000 and Income < 50000 Flat type = MIG Income < 25000 Flat type = LIG (d) Answer the questions (i) to (iv) based on the following code : 4 class CUSTOMER int Cust_no; char Cust_Name[20]; protected: void Register( ); CUSTOMER ( ); void Status( ); ; class SALESMAN int Salesman_no; Page 3 of 7

char Salesman_Name[20]; protected: float Salary; SALESMAN ( ); void Enter( ); void Show( ); ; class SHOP : private CUSTOMER, public SALESMAN char Voucher_No[10]; char Sales_Date[8]; SHOP ( ); void Sale_Entry( ); void Sale_Detail ( ); ; (i)write names of all the member functions which are accessible from the objects belonging to class SHOP.. (ii)write the base classes of SHOP. (iii)write names of all the data members, which are accessible from member functions of class SHOP. (iv) How many bytes will be required by an object belonging to SHOP? 3. (a) Write a C++ function to display those elements of a two dimensional array 4 T[4][4] which are even and replace all the odd elements by 0. Assume the content of the array is already present and the function prototype is as follows: void Show(int T[4][4]); (b) For an array of real numbers RealArr[20][20], find the address of RealArr[10][12] if RealArr[1][1] is stored in location 1000. Assume each real numbers requires 4 bytes. Show steps in your calculation. 4 (c) Give the necessary implementation of a linked list implementation of a stack containing integers. Also write a user defined function in C++ to pop an element from this stack. 4 (d) Considering the following key set : 41, 28, 74, 11, 65, 58, use insertion sort to sort the data in ascending order and indicate the sequences of steps required. 2 (e) Evalute the following postfix notation of expression using a stack and show the contents of the stack after execution of each operation: 2 5, 11, -, 6, 8, +, 12, *, / 4. (a) Observe the program segment given below carefully and fill the blanks marked as Statement 1 and Statement 2 using seekp( ) and seekg( ) functions for performing the required task. 1 # include<fstream.h> class Item int num; char Item_name[25]; Page 4 of 7

// Function to search and display the content from a particular record number. void Search(int); // Function to modify the content of a particular record number. void Modify(int); ; void Item : : Search( int Rno) fstream File; File.Open( STOCK.DAT, ios::binary ios::in); // Statement 1 File.read((char*) this, size of (Item)); cout<< num << = = > << Item_name << endl; File.close( ); void Item : : Modify( int Rno) fstream File; File.Open( STOCK.DAT, ios::binary ios::in ios:: out); cout<< Num; cin.getline(item_name, 25); // Statement 2 File.write((char*) this, size of (Item)); File.close( ); (b) Assume a text file VOWEL.TXT is already created. Using this file create a function to create two files LOWER.TXT which contains all the lowercase vowels and UPPER.TXT which contains all the uppercase vowels. 2 (c) Assuming the class TRANSPORT given below, write functions in C++ to perform following: 3 (i) (ii) Write the objects of TRANSPORT to a binary file. Read the objects of TRANSPORT from binary file and display them on screen. Class TRANSPORT int wheels; char passenger[20] ; void input( ) cin>>wheels; gets(passenger); void output( ) cout<<wheels<< << passenger << endl ; ; 5. (a) Define Foreign Key and Candidate Key. 2 (b) Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries Page 5 of 7

(v) to (vii) : on the basis of the table ART. 6 TABLE : ART ame Code Category Title Status Price Year G.Hussain 2098 Water Demons Sold 70000 1980 J.Juneja 3099 Oil Twilight Not Sold 8000 1990 Y.D.Sharma 8001 Collage Masses Sold 9500 1968 A.D Souza 7901 Oil Treees Sold 13000 1977 Nevill 5400 Water Holiday Not Sold 8900 1977 A.Dasgupta 3400 Oil Kites Not Sold 9000 1982 S.Rohatgi 2100 Oil Ruins Sold 18000 1981 P.Arora 3100 Water Castle Not Sold 20000 1965 Col.Singhvi 2211 Water Valley Sold 7000 1962 (i) Display the complete list of all the paintings that belong to category Oil. (ii) Display only the most expensive painting in each category. (iii) Display the name of the painter, title of painting and price in descending order of Year. (iv) Display the list of all the paintings whose price between 8000 and 12000. (v) Select AVG(Price) from Paint where Price < 8500; (vi) Select COUNT(*), status from Paint group by Status; (vii) Select COUNT(DISTINCT Category) fom Paint; (viii) Select MIN(Code) from Paint where Price > 10000; 6. (a) State and verify Distributive Law using Truth Table. 2 (b) Design a logic circuit to realize the Boolean function F(X,Y)=X.Y + X Y 1 (c) Convert (A+B)(AB + AC)(A C + B C) to SOP form. 2 (d) Draw K-maps for the following Boolean functions and find their minimal forms: F(X,Y,Z,W) = (0, 1, 2, 3, 5, 6, 8, 10, 11, 14, 15) 3 7. (a) What is Cookie? 1 (b) Give one merit and demerit each of the following topologies: 2 (i) Star (ii) Ring. (c) Expand the following terminologies. (i) DHTML (ii) XML. 1 (d) NAVKETAN PUBLIC SCHOOL in Nanital is setting up the network between its different wings. There are 4 wings named as SENIOR(S), MIDDLE(M), JUNIOR(J) and OFFICE(O). Distance between the various wings are given below: Wing O to Wing S Wing O to Wing M Wing O to Wing J Wing S to Wing M Wing S to Wing J Wing J to Wing M 100m 200m 400m 300m 100m 450m No. of Computers Wing O 10 Wing S 200 Page 6 of 7

Wing M 100 Wing J 50 (i) Suggest a suitable Topology for networking the computer of all wings. 1 (ii) Name the wing where the server to be installed. Justify your answer. 1 (iii) Suggest the placement of Hub/Switch in the network. 1 (iv) Mention an economic technology to provide internet accessibility to all wings. 1 Page 7 of 7