KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

Similar documents
CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

INTRODUCTION (SQL & Classification of SQL statements)

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

Downloaded from

Sample Paper 2012 Class XII Subject Computer Science

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

KendriyaVidyalayaSangathan Kolkata Region

KENDRIYA VIDYALAYA NO-1 ARMAPUR

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

Write the names of the header files to which the following belong :

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

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

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

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

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

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

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

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

KENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015

INFOTECH Computer Education, Kishangarh (Raj) Visit : Page 1

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

KENDRIYA VIDYALAYA PANGODE MONTHLY TEST I JUNE 2015 CLASS XII COMPUTER SCIENCE Time allowed: 1 1/2 Hours Max. Marks: 50

Holiday Homework AUTUMN BREAK : to CLASS XII

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

Downloaded from

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

CBSE Sample Paper for Computer Science Class XII.

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

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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION MARKING SCHEME. Code No. 083

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

List of Practical for Class XII Computer Science

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

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

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

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

Sample Paper 2015 Class XII Subject Computer Science

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

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

COMPUTER SCIENCE

Model Sample Paper 2015

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

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

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

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

Constructor & Classes Questions

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


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

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

Computer Science 2006 (Outside Delhi)

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

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

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

INDIAN SCHOOL MUSCAT FIRST PRELIMINARY EXAMINATION 2017 INFORMATICS PRACTICES

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

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

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

Question Bank Class XII Subject : Computer Science

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

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

Assignment 3 Class XII (Computer Science 083) Topic Array

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

Computer Science 2006 (Delhi)

Data Structure (CS301)

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

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

KENDRIYA VIDYALAYA SANGATHAN DEHRADUN REGION 1 st Pre-Board Examination, Class XII Computer Science(083) Time: 3 Hours Max.

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

2016 COMPUTER SCIENCE

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

Code No: R Set No. 1

UNIT- 3 Introduction to C++


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

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

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

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

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

HOLIDAY 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 =

VIDYA BHARATI SCHOOL

Largest Online Community of VU Students

KENDRIYA VIDYALAYA NO.1 SAGAR XII-COMPUTER SCIENCE ( ) HOMEWORK SUMMER VACATION

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

Transcription:

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? Also give a suitable C++ code to illustrate both. b) Name the Header files to which following function belong. (i) islower() (ii) gets() c) Rewrite the following program after removing the syntactical error(s) if any #include<iostream.h> const int size 10; void main() int Arr[size]; Arr=1,,,,5,6,7,8,9,10; for(ctr=0; ctr<size; ctr++) cout>>arr[ctr]; d) In the following program if the value of Guess entered by the user is 65, what will be the expected output(s) from the following options. void main() int Guess,n; randomize(); cin>>guess; for(int i=1; i<=; i++) n=guess+random(i); cout<<(char)n; (1) ABBC () ACBA () BCDA () CABD e) Find the output of the following program. void secret (char str[ ]) for (int L=0; str[l]!='\0'; L++) for (int C=0; C<L/; C++) if (str[c] =='A' str[c] =='E') str[c]='#'; else char tmp=str[c]; str[c]=str[l-c-1]; str[l-c-1]= tmp; void main() char Message[ ]="ArabSagar"; secret(message); cout<<message; 1 Page 1

f) Find the output. void prnseries() static int start=10; int i=0,c; for( ;i<; i++) c=start/; cout<<endl<<start <<"\t"<<c; start+=0; void main() int i=; for(int j=0; j<i; j++) prnseries(); Q a) Differentiate between Constructor and Destructor function with respect to Object Oriented Programming. b) Answer the questions (i) and (ii) after going through the following program: class Match int Time; Match() //Function 1 Time=0; cout<< Match commences <<end1; void Details() //Function cout<< Inter Section Basketball Match <<end1; Match(int Duration) //Function Time=Duration; cout<< Another Match begins now <<end1; Match(Match &M) //Function Time=M.Duration; cout<< Like Previous Match <<end1; ; i) Which category of constructor - Function belongs to and what is the purpose of using it? ii) Write statements that would call the member Functions 1 and c) Define a class Travel in C++ with the description given below. Private members plancode of type long place of type character array number_of_travellers of type integer number_of_buses of type integer Public members A constructor to assign initial value of plancode as 1001, place as KOLKATA, number_of_travellers as 5 and number_of_buses as 1. Page

A function newplan() which allows user to enter plancode, place and number_of_travellers and also assign the number_of_buses as per the following conditions. Number_of_travellers number_of_buses Less than 0 Equal to and more than 0 and less than 0 Equal to and more than 0 A function show() to display the contents of all the data members. d) Answer the question (I) to (VI) based on the following code. class Book char Title[0]; char Author[0]; int no_of_pages; void read(); void show(); ; class Textbook: private Book int no_of_chapters, no_of_assignments; protected: int standard; void readtextbook(); void showtextbook(); ; class physicsbook : public Textbook char Topic[0]; void readphysicsbook(); void showphysicsbook(); ; (i) What will be the size of an object of class physicsbook? (ii) Name the members which can be accessed from the member function of class physicsbook. (iii) Name the members which can be accessed by an object of class Textbook. (iv) Name the date member which can be accessed by function readtextbook. a) write a function in C++ which accepts an integer array and its size as parameters and shifts all the negative numbers to left. Example: if an array initially contain the elements as,-,5,-1,6,7,-8,1,-10 then the function should rearrange the array as -,-1,-8,-10,,5,6,7,1 Page

b) Given two arrays of integer X and Y of size M and N respectively. Write a Function named Merge() which will produce a third array names Z, such that the following sequence is followed. (i) All Odd numbers of X from left to right are copied into Z from left to right. (ii) All Even numbers of X from left to right are copied into Z from right to left. (iii) All Odd numbers of Y from left to right are copied into Z from left to right. (iv) All Even numbers of Y from left to right are copied into Z from right to left. c) An Array A[5][15] is stored in the memory along the row with each of its element occupying bytes. Find out the base address and the address of an element A[0][15], if the location A[][] is stored at the address 000. d) Each node of a STACK contains the following information, in addition to required pointer field: i) Roll number of the student ii) Age of the student Give the structure of node for the linked STACK in question. TOP is a pointer points to the topmost node into the STACK. Write the following Function: i) PUSH( )- To push a node into stack, which is allocated dynamically. ii) POP( ) To remove a node from the stack, and released the memory. e) Evaluate the following postfix notation of expression. 0, 0, +, 50, 0, -,* a) Observe the programme segment given below carefully and the questions that follow. class stock int ino,qty; char item[0]; void enter() cin>>ino; Gets(item); Cin>>qty; void issue (int x) qty+=x; void purchase(int x) qty -=x; int getino() return ino; ; 1 Page

void purchaseitem() int pion; fstream file; file.open( stock.dat,ios::binary); stock S; int success=0; cout<< Enter Pion ; cin>>pion; while(success==0 && file.read((char*)&s, sizeof(s))) if (pion==s.getino()) S.purchase(pqty); //statement 1 // statement success ++; if(success==1) cout<< Purchase updated ; else cout<< wrong item no : file.close(); 1) Write statement 1 to position the file pointer to the appropriate place, so that the data updation is done for the required item. ) Write statement to perform the write operation so that the updation is done in the binary file. b) Assume that a text file named FILE.TXT already contains some text written into it. But while writing into the file, the word, when has been misspelled whn everywhere in the file. Write a function named Corrections ( ) in C++ that reads the file FILE.TXT. and corrects the word whn. c) Given a binary file student.dat containing records of the following class student type. class student char admn[0]; char name[0]; int percentage; void enterdata(); void display(); int R_percentage() return percentage; ; Write a Function in C++ that would read contents of file student.dat and display the details of those records whose percentage is above 75. 5 a) What do you understand by the following in a relation database : i) Candidate Key ii) Project Operation. b) Consider the following tables. (1) Write SQL commands for the statements (i) to (iv) () give outputs for SQL queries (v) to (viii) + Page 5

Table: PRODUCT P-ID PRODUCTNAME MANUFACTURER PRICE TP01 Talcom Powder LAK 0 FW05 Face Wash ABC 5 BS01 Bath soap ABC 55 SH06 Shampoo XYZ 10 FW1 Face Wash XYZ 95 Table: CLIENT C_ID CLIENTNAME P_ID CITY 01 Cosmetic Soap FW05 Delhi 06 Total Health BS01 Mumbai 1 Live life SH06 Delhi 15 Pretty Woman FW1 Delhi 16 Dreams TP01 Banglore (i) To display the details of those clients whose city is Delhi. (ii) To display the details of the Products whose price is in the range of 50 to 100 (Both values included) (iii) To display the Clientname, city from table client and Productname and price from table product, with their corresponding matching P_ID. (iv) To increase the price of all products by 10. (v) SELECT Distinct City from client; (vi) SELECT Manufacturer,Max(price),Min(price),count(*) from product group by manufacturer. (vii) SELECT clientname, manufacturer from product, client where client.p_id=product.p_id; (viii) SELECT productname,price* from product; 6 a) Write a function in C++ to count the number of lines started by the vowel characters in a binary file Friends.dat b) Define a class clothing in C++ with following description: private member code of type string type of type string size of type integer material of type string price of type float a member function calc_price() which calculates and assign the value of price as follows: for the value of material as COTTON : Type Price(Rs.) TROUSER 1500 SHIRT 100 FOR material other than COTTON the above mentioned price get reduced by 5%. 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 values of the data members code,type,size and material and invoke the calc_price function. A function show() which display the content of all the data members for a clothing. Page 6

c) write a function in C++ which accepts an integer array and its size as parameters and rearrange the array in reverse. Example: if an array of nine elements initially contain the elements as,,5,1,6,7,8,1,10 then the function should rearrange the array as 10,1,8,7,6,1,5,, 7 a) Observe the following program Game.cpp carefully, if the value of Num entered by user is 1, choose the correct possible output(s) from the option i) to iv) and justify your option. //Program:: Game.cpp #include<iostream.h> #include<stdlib.h> void main( ) randomize( ); int Num, Rndnum; cin>>num; Rndnum=random(Num)+1; for(int N=1;N<=Rndnum;N++) cout<<n<< ; Output options: i) 1 ii) 1 5 6 7 8 9 10 11 iii) 1 59 iv) none of the above b) What is function Overloading?. 1 c) Answer the question i) to iv) based on the following: class CUSTOMER int Cust_no; char Cust_name[0]; protected: void Register( ); CUSTOMER( ); void Status( ); ; class SALESMAN int Salesman_no; char Salesman_name[0]; protected: float Salary; SALESMAN( ); void Enter( ); void Show( ); ; Page 7

class SHOP: private CUSTOMER, public SALESMAN char Voucher_No[10]; char Sales_Date[8]; public SHOP( ); void Sales_Entry( ); void Sales_Detail( ); ; i) Write the names of data members which are accessible from objects belonging to class CUSTOMER. ii) Write the names of all the members function which are accessible from objects belonging to class SALESAMAN. iii) Write the names of all the members which are accessible from objects belonging to class SHOP. iv) How many bytes will be required by an object belonging to class SHOP? d) Convert the following infix expression into postfix expression using stack and show the status of the stack after every step: (((A+B)-C)*(D-E)) Page 8