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

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

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

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

Model Sample Paper 2015

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

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

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

KendriyaVidyalayaSangathan Kolkata Region

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

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

Sample Paper 2012 Class XII Subject Computer Science

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

COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

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

VIDYA BHARATI SCHOOL

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

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

SAMPLE QUESTION PAPER CLASS-XII, SESSION: SUBJECT: 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:

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

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

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

BLUE PRIENT SUBJECT:- Computer Science

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


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

COMPUTER SCIENCE 1998 (Delhi Board)

2016 COMPUTER SCIENCE

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

Computer Science 2006 (Outside Delhi)

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN CLASS XII EXAMINATION INFORMATICS PRACTICES (065)

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

COMPUTER SCIENCE 2002 (Delhi Board)

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

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

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

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

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

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

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

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

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

(Structured Query Language)

CLASS-XI COMPUTER SCIENCE

Downloaded from

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

Downloaded from

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK CLASS-XII INFORMATICS PRACTICES

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

Index for C++ Programming

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.

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

HALF YEARLY EXAMINATION, INFORMATICS PRACTICES Time - 3 hrs. Class - XII M.M. 70

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

Computer Science 2006 (Delhi)

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

Question Bank Class XII Subject : Computer Science

Object Oriented Programming Using C++ UNIT-3 I/O Streams

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

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

BHARATIYA VIDYA BHAVAN S V.M.PUBLIC SCHOOL, VADODARA. Class : XII SAMPLE PAPER 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

Assignment 3 Class XII (Computer Science 083) Topic Array

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010

Computer Science 330 Assignment

KENDRIYA VIDYALAYA TIRUMALAGIRI,SECUNDERABAD UNIT TEST II

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

Kendriya Vidyalaya No1 Rewa Pre-Board I ( )

Downloaded from

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

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

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

Transcription:

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION 2014-15 FOR CLASS XII SUBJECT: COMPUTER SCIENCE SET-I F.M. 70 General Instructions: Programming Language C++ All Questions are compulsory. TIME: 3 HRS Q1. (a) Differentiate local and global variable with suitable example. [2] (b) Which header file(s) are essential to be included to execute the following C++ code [1] char Name[15], *Str="Hello!"; puts("enter your name : "); gets(name); strcat(str,name); puts(str); (c) Find the output of the following program [2] int a=5, b=10; cout<<b++ + +a<<endl; cout<< a + b <<endl; (d) Rewrite the following program after removing syntax errors. Underline each correction [2] CallFun(int X, int Y:10) cout<<x<<"\t"<<y<<endl One=1, Two=2; CallFun(One,Two); CallFun(One); (e) Find the output of the following program [3] char *TXT="Good Night!"; int Num[ ]=1,2,3,4,5; int *P=Num; TXT+=10; while(*p<5) cout<<*p<<"#"<<txt<<endl; P++; TXT ; (f) Find the output(s) which will not be expected on execution of the following program [2] # include <stdlib.h> int A[ ]=10,20, RN; randomize( ); for(int X=0; X<2; X++) RN=random(X+1)+10; cout<<a[x]+rn<<"@";

(i) (ii) (iii) (iv) 10@20@ 20@30@ 21@31@ 20@31@ Q2. (a) Differentiate between protected & private visibility modes in the context of inheritance [2] (b) Answer the questions (i) and (ii) after going through the following class: [2] class Subject char Topic[20]; int Weightage; Subject ( ) //Function 1 Subject( char *T) //Function 2 strcpy (Topic, T ); Weightage = 30; Subject( Subject &S) //Function 3 strcpy (Topic, S.Topic ); Weightage = S.Weightage; ~Subject( ) //Function 4 void Show( ) //Function 5 cout<<topic<<"\t"<<weightage<<endl; ; Subject S1("CS"), S2(S1); //Statement1 S1.Show( ); S2.Show( ); (i) What is Function4 Known as? When does it get executed? (ii) Which out of the above defined functions get executed for Statement1? (c) Define a class TAXPAYER in C++ with following description [4] Private Members: (i) Name of type string to store Name (ii) PAN of type string of to store the Personal Account Number (10 characters) (iii) Income of type double to store Taxable income (iv) Tax of type double to store Tax to be paid (v) A function Compute( ) to calculate tax according to the following slab: Taxable Income Tax Up to 200000 0 >200000 and <=500000 10% of Taxable Income >500000 20% of Taxable Income Public members: (i) A function GET( ) to enter data for the tax payer (ii) A function PRINT ( ) to allow user to view the content of all the data members after calculating amount of tax to be paid using Compute ( ) and assigning it to Tax.

(d) Observe the following code carefully and answer (i) to (iv) [4] class Teacher int Code; char Name[20], Desig[15]; protected: float Salary; void AssignSal(float); void Enter( ) ; void Display( ); ; class Student int Admno[10]; char StName[20], Stream[10]; protected: int Attendance; void Input( ); void Output( ); ; class School : public Student, protected Teacher char AffNo[10], SchName[20]; void Accept( ); void Show( ); ; (i) Which type of Inheritance is depicted by the above example? (ii) What is the size of an object of Student Class? (iii) Write the all the member function(s) that cannot be called directly from the objects of School class (iv) Write name of all the data member(s) accessible from Show( ) method Q3. (a) Define a function in C++ that accepts an integer array and its size as argument and Sort its elements in ascending order using insertion sort. [3] (b) An integer array X[30[30] is stored in column major order. Find the address of the element X[20][15] if address of X[10[10] is 5000. [3] (c) Define a function InsertQ(float [ ], float) to insert an element into a Queue of floating point numbers of size N implemented using array. [4] (d) Define a function in C++ which shifts each element of an array A[ ] to its left by one position. In doing so the 1 st element becomes the last element of the array. [2] e.g. If the array is: 1,2,3,4,5 after shifting it contains elements in the order 2,3,4,5,1 (e) Evaluate the following postfix expression and show the status of the stack after every step [2] 12, 7, 3,, /, 2, 1, 5, +, *, + Q.4 (a) Observe the program segment carefully and write code for the missing statements [1] class Book int BNum : char BName[20] ; void getdetails( ) ; //function to enter Book details void showdetails( ) ; //function to display Book details void changedetails( ) ; //function to display Book details

int RerBNum( ) return BNum ; //function to return Book number ; void Modify(int N) fstream File ; Book B ; int Found = 0, RecNo=0; File.open( BOOK.DAT, ios :: binary l ios :: in l ios :: out) ; while ( File.read((char*)&B, sizeof(b) ) ) if (N == B.RetBNum( )) RecNo++ ; ----------------------------- //Statement1 B.changeDetails(); ----------------------------- //Statement2 Found = 1 ; if (Found==0) cout << Record does not exist ; File.close( ) ; Write Statement1 to position file pointer at proper place for writing and Statement2 to write the modified record to the file. (b) Write a function in C++ to read the content of a text file NOTES.TXT and display all those lines which are either starting with S or T. [2] (c) A binary file STUDENT.DAT, contains STUDENT records as defined below. Write a function in C++, to search and display details of the student having admission number 154. [3] class STUDENT int AdmNo; //Admission number of student char Name[30] ; //Name of student float Percent; //Percentage of marks obtained public : void EnterData( ) //Enter student details cout<< \n Enter Students Admission Number : ; cin>>admno ; cout<< \n Enter Students Name : ; gets(name) ; cout<< \n Enter percentage of marks obtained : ; cin >> Percent ; void DisplayData( ) //Display student details ; cout << \nadmission Number\tName\t\tPercentage\n ; cout<<admno<< \t <<Name<< \t\t <<Percent<<endl; int RetAdmNo( ) return AdmNo ; //Return admission number Q 5 (a) What is a Primary Key? [1] (b) Differentiate between char and varchar. [1] (c) Consider the following tables Consumer and Stationary.

Table: Stationary S_ID StationaryName Company Price BP01 Ball Pen Reynolds 10 PL02 Pencil Natraj 5 ER05 Eraser Natraj 3 PL01 Pencil Apsara 6 GP02 Gel Pen Reynolds 15 Table: Consumer C_ID ConsumerName City S_ID 01 Pen House Delhi PL01 06 Write Well Mumbai GP02 12 Topper Delhi BP01 15 Good Learner Delhi PL02 16 Motivation Bangalore PL01 Write SQL statements for (i) to (iv) [4] (i) To display the consumer detail in descending order of their name. (ii) To display the Name and Price of Stationaries whose Price is in the range 10 to 15. (iii) To display the ConsumerName, City and StationaryName for stationaries of "Reynolds" Company (iv) To increase the Price of all stationary by 2 Rupees. Write the output of SQL queries for (v) to (viii) [2] (v) SELECT * FROM CITY WHERE StationaryName Like 'B%' (vi) SELECT DISTINCT City FROM Consumer; (vii) SELECT Company, MAX(Price), MIN(Price), COUNT(*) from Stationary GROUP BY Company; (viii) SELECT C.ConsumerName, S.StationaryName, S.Price FROM Stationary S, Consumer C WHERE C.S_ID=S.S_ID; Q 6. (a) Prove that [2] (b) Draw the logic circuit for the following Boolean expression [2] ((A+B')(B+C)')' (c) Write the POS expression for the Boolean function given by the following truth table [1] A B C F 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 ( d) Minimize the given Boolean function using k-map and draw the logic circuit for the reduced expression. [3] F(A,B,C,D)= (0,1,2,4,5,6,8,12) Q. 7 (a) What is Firewall? [1] (b) Expand the terms GPRS, SIM [1] (c) Which network (PAN/MAN) is formed when two mobiles are connected via Bluetooth? [1] (d) Name any two protocol used in Communication. [1]

(e) Differentiate between LAN and WAN [2] (f) MHA & Co. has set up its new center at Mumbai for its office and web based activities. The company compound has 4 blocks as shown in the diagram below: [4] Distances between various blocks and Number of Computers at each block are given below Blocks Distance Black A to Block B 50 m A 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 150 m 125 m 170 m 115 m Block No. of Computers Black A 25 Block B 35 Block C 95 Block D 20 75 m (i) Suggest a cable layout for connecting the blocks. (ii) Suggest the most suitable place to house the server. (iii) Suggest the placement of the following devices with justification a. Repeater (b) Switch (iv) Suggest a way to connect its front office in Mumbai with office at Chennei at reasonably high speed. --------- B D C