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

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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

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

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

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

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

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

KendriyaVidyalayaSangathan Kolkata Region

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

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

COMPUTER SCIENCE

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

Question Bank Class XII Subject : Computer Science

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

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

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

THE INDIAN COMMUNITY SCHOOL, KUWAIT

2016 COMPUTER SCIENCE

Computer Science 2006 (Outside Delhi)

HOLIDAYS HOMEWORK 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

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

Model Sample Paper 2015

Sample Paper 2012 Class XII Subject Computer Science

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

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

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

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

Computer Science 2006 (Delhi)

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

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

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

COMPUTER SCIENCE 1998 (Delhi Board)

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION MAX MARKS:70 CODE - A DURATION : 3 Hours

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 Paper 1

General Instructions:

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

Downloaded from

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:

Downloaded from

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

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

CLASS-XI COMPUTER SCIENCE

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

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

include<iostream.h> #define PI=3.14 void main( ) { float r;a; cout<< enter any radius ; cin>>r; a=pi*pow(r,2); cout<< Area= <<a }

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

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

Sample Paper 2015 Class XII Subject Computer Science

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

COMPUTER SCIENCE (083)

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

COMPUTER SCIENCE 2002 (Delhi Board)

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

Rich Harvest Public School Holiday Homework Session: Class -XII

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

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

Q2) Define a class candidate in C++ with following Description: Private Members 4 Number) of type long


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

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

Session Chapter 4: Classess & Object

Downloaded from

BRAIN INTERNATIONAL SCHOOL. Term-I Class XI Sub: Computer Science Revision Worksheet

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

Assignment 3 Class XII (Computer Science 083) Topic Array

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

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

Guru Gobind Singh Public School Sector: V/B, Bokaro Steel City Assignment (Level 2)

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


Transcription:

PRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION (2018-19) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS MAXIMUM MARKS: 70 General Instructions 1. This question paper contains 7 questions. 2. SECTION A refers to programming language C++. 3. SECTION C is compulsory for all. 4. All questions are compulsory within each section. SECTION A [Only for candidates, who opted for C++] Q1. a) Name the header files, to which the following built-in functions belong. i) islower() ii) clrscr() b) Out of the following find those identifiers, which cannot be used for naming variables or functions in a C++ program. Total*Tax, class, switch, _total c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction (2) #include<iostream.h> #include<string.h> #include<stdio.h> class product intproduct_code,qty,price; char name[20]; product() product_code=0;qty=0;price=0; name=null; void entry() cout<<"\n Enter code,qty,price"; cin>>product_code>>qty>>price; gets(name); voidtot_price() return qty*price; ; void main() p product; p.entry(); cout<<tot_price(); d) Find the output of the following program. (2) #include <iostream.h> #include <ctype.h> voidchangeit(char Text[ ], char C) - 1 -

for (int K=0;Text[K]!= \0 ;K++) if (Text[K]>= F && Text[K]<= L ) Text[K]=tolower (Text[K]); else if (Text[K]== E Text[K]== e ) Text[K]=C; else if (K%2==0) Text[K]=toupper(Text[K]); else Text[K]=Text[K-1]; void main ( ) char OldText[ ]= poweralone ; ChangeIt(OldText, % ); cout<< New TEXT: <<OldText<<endl; e) Observe the following program carefully and attempt the given questions. (3) #include<iostream.h> #include<conio.h> #include<stdlib.h> void main() clrscr(); randomize(); char courses[][10]="m.tech","mca","mba","b.tech"; intch; for(int i=1;i<=3;i++) ch=random(i)+1; cout<<courses[ch]<<"\t"; getch(); i) Out of all the four courses stored in the variable courses,which course will never be displayed in the output andwhich course will always be displayed at first in the output? ii) Mention the minimum and the maximum value assignedto thevariable ch. f) What is the difference between type casting and automatic type conversion? (3) Q2. a) What are the characteristics of constructor function used in a class? (2) b) Define a class RESORT in C++ with the following descriptions. (4) Private Members Rno //Data member to store room no Name //Data member to store customer name Charges //Data member to store per day charges Days //Data member to store number of days - 2 -

COMPUTE() //A function to calculate and return Amount as Days*Charges and if the value of Days*charges is more than 11000 then as 1.02*Days*Charges Public Members Getinfo() //A function to enter the content Rno, Name, Charges and Days Dispinfo() //A function to display Rno, Name, Charges, Days and Amount (Amount to be displayed by calling COMPUTE()). c) Observe the following C++ code and answer the questions(i) and (ii). Assume all necessary files are included. class BOOK long Code ; chartitle*20+; float Price; BOOK() //Member Function 1 cout<< Bought <<endl; Code=10;strcpy(Title, NoTitle );Price=100; BOOK(intC,char T[],float P) //Member Function 2 Code=C; strcpy(title,t); Price=P; void Update(float P) //Member Function 3 XII Computer Chap 4 to6 4 8 Price+=P; void Display() //Member Function 4 cout<<code<< : <<Title<< : <<Price<<endl; ~BOOK() //Member Function 5 cout<< Book Discarded! <<end1; ; void main() //Line 1 //Line 2 BOOK B,C(101, Truth,350; //Line 3 for(int I=0;I<4;I++) //Line 4 //Line 5 B.Update(50);C.Update(20); //Line 6 B.Display();C.Display(); //Line 7 //Line 8 //Line 9 i) Which specific concept of object oriented programming is illustrated by Member Function 1 and MemberFunction 2 combined together? - 3 - (2)

ii) How many times the message Book Discarded! will bedisplayed after executing the above C++ code? Out of Line 1 toline 9, which line is responsible to display the message BookDiscarded!? d) Answer the questions (i) to (vi) based on the following. (4) class PUBLISHER char Pub[12]; double Turnover; protected: void Register(); PUBLISHER(); void Enter(); void Display(); ; class BRANCH char CITY[20]; protected: float Employees; BRANCH(); Void Haveit(); Void Giveit(); ; class AUTHOR : private BRANCH, public PUBLISHER intacode; charaname[20]; float Amount; AUTHOR(); void Start(); void Show(); ; i) Write the names of data members, which are accessible from objects belonging to class AUTHOR. ii) Write the names of all the member functions which are accessible from objects belonging to class BRANCH. iii) Write the names of all the members which are accessible from member functions of class AUTHOR. iv) How many bytes will be required by an object belonging to class AUTHOR? Q3. a) Write the definition of a function Reverse(int Arr[], int N) in C++, which should reverse the entire content of the array Arr having N elements, without using any other array. (3) Example : if the array Arr contains 13 10 15 20 5 Then the array should become 5 20 15 10 13 Note : The function should only rearrange the content of the array. The function should not copy the reversed content in another array. The function should not display the content of the array. - 4 -

b) Write definition for a function ADDMIDROW(int MAT[][10],int R,int C) in C++, which finds sum of the middle row elements of the matrix MAT (Assuming C represents number of Columns and R represents number of rows, which is an odd integer). (2) For example, if the content of array MAT having R as 3 and C as 5 is as follows. 1 2 3 4 5 2 1 3 4 5 3 4 1 2 5 The function should calculate the sum and display the following : Sum of Middle Row : 15 c) T[25][30] is a two dimensional array, which is stored in the memory along the row with each of its element occupying 2 bytes, find the address of the element T[10] [15], if the element T[5] [10] is stored at the memory location 25000. (3) d) Write the definition of a member function ADDMEM( ) for a class QUEUE in C++, to add a MEMBER in a dynamically allocated Queue of Members considering the following code is already written as a part of the program. (4) struct Member int MNO; char MNAME[20]; Member *Next; ; Class QUEUE Member *Rear,*Front; QUEUE()Rear=NULL;Front=NULL; void ADDMEM(); void REMOVEMEM(); ~QUEUE(); ; e) Convert the following Infix expression to its equivalent Postfix expression, showing the stack contents for each step of conversion. (2) P + ( Q R ) * S / T Q4. a) Find the output of the following C++ code considering that the binary file BOOK.DAT exists on the harddisk with a data of 200 books. class BOOK intbid;charbname[20]; void Enter(); void Display(); ; void main() fstreaminfile; InFile.open("BOOK.DAT",ios::binary ios::in); BOOK B; InFile.seekg(5*sizeof(B)); InFile.read((char*)&B, sizeof(b)); cout<<"book Number:"<<InFile.tellg()/sizeof(B) + 1; - 5 -

Q5. InFile.seekg(0,ios::end); cout<<" of "<<InFile.tellg()/sizeof(B)<<end1; InFile.close(); b) A text file named MATTER.TXT contains some text, which needs to be displayed such that every next character is separated by a symbol #. (2) Write a function definition for HashDisplay() in C++ that would display the entire content of the file MATTER.TXT in the desired format. Example If the file MATTER.TXT has the following content stored in it. THE WORLD IS ROUND The function HashDisplay() should display the following content. T#H#E# #W#O#R#L#D# #I#S# #R#O#U#N#D# c) Write a definition for a function TotalTeachers( ) in C++ to read each object of a binary file 3SCHOOLS.DAT, find the total number of teachers, whose data is stored in the file and display the same. Assume that the file SCHOOLS.DAT is created with the help of objects of class SCHOOLS, which is defined below. (3) class SCHOOLS intscode; //School Code charsname[20]; //School Name int NOT; //Number of Teachers in the school void Display() cout<<scode<<"#"<<sname<<"#"<<not<<endl; int RNOT()return NOT; SECTION C [ For all the Candidates ] a) Differentiate between primary key and alternate key. (2) b) Consider the following DEPT and EMPLOYEE tables. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii). (6) i) To display Eno, Name, Gender from the table EMPLOYEE in ascending order of Eno. ii) To display the Name of all the MALE employees from the table EMPLOYEE. iii) To display the Eno and Name of those employees from the table EMPLOYEE who are born between '1987 01 01' and '1991 12 01'. - 6 -

Q6. iv) To count and display FEMALE employees who have joined after '1986 01 01'. v) SELECT COUNT(*),DCODE FROM EMPLOYEE GROUP BY DCODE HAVING COUNT(*)>1; vi) SELECT DISTINCT DEPARTMENT FROM DEPT; vii) SELECT NAME, DEPARTMENT FROM EMPLOYEE E, DEPT D WHERE E.DCODE=D.DCODE AND EN0<1003; viii) SELECT MAX(DOJ), MIN(DOB) FROM EMPLOYEE; a) State distributive law. Prove anyone using truth table. (2) b) Write the equivalent boolean expression for the following logic circuit:. (2) c) Write the POS form of a Boolean function F, which is represented in a truth table as follows. P Q R F 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 d) Simplify the expression of F using karnaugh map where F(a,b,c,d) = ( 0,1,2,3,4,5,10,11,15) (3) Q7. a) Identify the type of topology on the basis of the following. (2) i) Since every node is directly connected to the server, a large amount of cable is needed which increases the installation cost of the network. ii) It has a single common data path connecting all the nodes. b) Expand the following. i) VoIP ii) CDMA c) Which topology is used in point to point subnet? d) What is cyber crime? e) Define repeater. f) Rehaana Medicos Center has set up its new center in Dubai. It has four buildings as shown in the diagram given below. (4) As a network expert, provide the best possible answer for the following queries. i) Suggest a cable layout of connections between the buildings. ii) Suggest the most suitable place (i.e. buildings) to house the server of this organization. iii) Suggest the placement of the following device with justification: a) Repeater b) Hub/Switch iv) Suggest a system (hardware/software) to prevent unauthorized access to or from the network. - 7 -