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

Similar documents
Computer Science 2006 (Outside Delhi)

Model Sample Paper 2015

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

(Structured Query Language)

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

COMPUTER SCIENCE

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

Computer Science 2006 (Delhi)

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

Computer Science[083]

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

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.:

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

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

Sample Paper, 2015 Subject: Computer Science Class 12 th

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

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

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

Downloaded from

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

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

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

COMPUTER SCIENCE 1998 (Delhi Board)

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

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

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


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

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

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 SAM PLE PAPER 2-HALF YEARLY EXAMINATION

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.

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

Computer Science 330 Assignment

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

KendriyaVidyalayaSangathan Kolkata Region

COMPUTER SCIENCE 2002 (Delhi Board)

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

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

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

KENDRIYA VDYALAYA SANGATHAN ERNAKULAM REGION MODEL PAPER - SET-I SUB: INFORMATICS PRACTICES CLASS: XII Time: 3 Hrs Max.Mark: 70

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

KENDRIYA VIDYALAYA PICKET : SECUNDERABAD :09 CLASS XII HOLIDAY HOME WORK

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

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

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

Index for C++ Programming

VIDYA BHARATI SCHOOL

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

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

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

Sample Paper 2012 Class XII Subject Computer Science

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

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

(1)Given a binary file PHONE.DAT, containing records of the following structure type class Phonlist { char Name[20]; char Address[30]; char

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

COMPUTER SCIENCE (083)

case control statement (switch case)

Example : class Student { int rollno; float marks; public: student( ) //Constructor { rollno=0; marks=0.0; } //other public members };

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

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

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

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

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

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

SUB: INFORMATICS PRACTICES CLASS: XII ANSWER KEY SET-2. Time: 3 Hrs Max.Mark: 70 1.

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

CLASS-XI COMPUTER SCIENCE

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

General Instructions:

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

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

CBSE Sample Paper for Computer Science Class XII.

4. BOOLEAN ALGEBRA 8 5. NETWORKING AND OPEN SOURCE SOFTWARE 10

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

COMPUTER SCIENCE (083)

Subject - Computer Science (Code-083)

Transcription:

Mock Test Paper-3 Computer Science Mock Test Paper-3 11 Duration : 3hrs Max Marks : 70 1. (a) How does a class inforce data hiding? 2 (b) Name the header files to which the following belong- 1 (c) Rewrite the following program after removing the syntactical errors. If any. 2 Underline the each correction. #include <iostream.h> struct serial char serial_name[20]; char serial_type; int cost=200; SERIAL; gets(serial_name); gets(serial_type); (d) Find the output of the following program : 3 #include<iostream.h> #include<string.h> class student char *s_name; int l; student() l=0; s_name =new char[l+1]; student(char *s) l=strlen(s); s_name=new char[l+1]; strcpy(s_name,s); void display() cout<<s_name<<endl; void manipulate( student &a, student &b) l=a.l +b.l; delete s_name; s_name = new char[l+1]; strcpy(s_name,a.s_name); strcpy(s_name,b.s_name);

12 CBSE-XII Computer Science ; char *temp= John ; student name1(temp), name2( Johny ), name3( Janardan ),s1,s2; s1.manipulate(name1,name2); s2.manipulate(s1,name3); s1.display(); s2.display(); (e) Find the output of the following program- 2 #include<iostream.h> long number=7583241; int First=0, Second=0; do int R=Number%10; if (R%2 = = 0) First +=R; else Second+=R; Number/=10; while (Number>0); cout<<first Second; (f) In thefollwoing program, find the correct possible output(s) from the options : 2 #include<stdlib.h> #include<iostream.h> randomize(); char City[][10]= DEL, CHN, KOL, BOM, BNG ; int Fly ; for( int I= 0 ;I<3;I++) Fly = random(2)+1; cout<<city[fly]<< : ;

2. Outputs : (i) DEL : CHN : KOL : (ii) CHN : KOL : CHN : (iii) KOL : BOM : BNG :(iv) KOL : CHN : KOL : Mock Test Paper-3 13 (a) What is this pointer? Give an example to illustrate the use of it in C++.2 (b) Answer the questions (i) and (ii) after going through the following classclass exam int year; exam(int y) year=y; //Constructor 1 exam(exam &t); //Constructor 2 ; (i) Create an object, such that it invokes constructor 1. 1 (c) Define a class named Hostel in C++ with the following descriptions : 4 Private members- REG_NO Integer NAME Array of characters (String) TYPE Character COST Float Public members- - Function Read_Data() to read an object of Hostel type. - Function Display() to display the detail of an object. (d) Answer the questions (i) to (iii) based on the following codesclass Furniture char Type; char Mode[10]; furniture(); void Read_fur_details(); void Disp_fur_details(); ; class Sofa :public Furniture int no_of_seats; float cost_of_sofa; void Read_sofa_details(); void Disp_sof_details(); ; class Office :private Sofa

14 CBSE-XII Computer Science int no_of_pieces; char delivery_date[10]; void Read_office_details(); void Disp_office_details(); ; Office MyFurniture; (i) Mention the member names which are accessible by MyFurniture declared in main() function. (ii) What is the size of MyFurniture in bytes? (iii) Mention the names of functions accessible from the member function Read_office_details() of class Office. (iv) Name the data members accessible from the object of Furniture. 3. (a) Write a function in C++ which accepts an integer array and its size as arguments/ parameters and assigns the elements into a two dimensional array of integers in the following format- 3 if the array is 1,2,3,4,5,6 if the array is 1,2,3 The resultant 2D array is given below The resultant 2D is given below 1 0 0 0 0 0 1 0 0 1 2 0 0 0 0 1 2 0 1 2 3 0 0 0 1 2 3 1 2 3 4 0 0 1 2 3 4 5 0 1 2 3 4 5 6 (b) An array X[10][10] is stored in the memory along the row with each element occupying 4 bytes of memory. Find out the base address and the address of element X[8][5], if the location of X[3][7] is stored at the address 1000. 3 (c) Write a function PUSH() to add an element to the top of the Stack dynamically. Consider the following NODE for stack- 4 4. struct NODE int RollNum; char Name[20]; NODE *Link; ; (d) Write a function MatConvert() in C++ to convert the odd numbers even by multiplying the elements by 2 and convert all even numbers by dividing the elements by 2 of Arr[M][N]. 2 (e) Solve the following postfix expression - 2 10,3,*,7,1,-,*,23,+

Mock Test Paper-3 15 (a) Observe the program segment given below carefully, and answer the question that follows : 1 class Book int Book_No; char Book_Name[20]; //function to enter book detail void enterdetails(); //function to display Book details void showdetails(); //function to return Book_no int Rbook_no() return Book_no; ; void Modify(Book NEW) fstream File; File.open( Book.Dat,ios : :binary ios : :in ios : :out); Book OB; int Recordsread = 0, Found = 0; while (!Found && File.read((char *)&&OB, sizeof(ob))) Recordsread++; if ( NEW.RBook_no() = = OB.RBook_no()) //Missing statement File.write((char*)&&NEW, sizeof(new)); Found=1; else File.write((char *)&OB, sizeof(ob)); if (!Found) cout<< Record for modification does not exist ; File.close(); If the function Modify is supposed to modify a record in file BOOK.DAT with the values of Book NEW passed to its argument, write the appropriate statement for Missing Statement using seekg(0 or seekg(), whichever needed, in the above code that would write the modified record at its proper place. (b) Write a function to count the number of alphabets present in a text file named TEXT.TXT. 2 (c) Following is the structure of each record in a data file named ITEMS.DAT. struct ITEM

16 CBSE-XII Computer Science char Item_code[10]; char Item_Description[10]; int Stock; ; Write a function in C++ to update the file with a new value of stock. The Stock and the Product_code whose stock is to be updated, are reading during the execution of the program. 3 void modify() fstream out; out.open( ITEMS.DAT,ios : :binary iost : :in ios : :out) ITEM P1; int flag=0;stock; char Icode[10]; gets(icode); cin>>stock; while (out.read((char *)&P1, sizeof(p1))) if (strcmp(p1.item_code,icode)= =0) flag=1; P1.Stock=stock; int Position =out.tellg()-sizeof(p1); out.seekp(position); out.write((char *)&P1, sizeof(p1)); if (!flag) cout<< Product code does not match <<endl; out.close(); 5. (a) What are DDL and DML? 2 (b) Study the following tables FLIGHTS and FARES and answer the questions given in b1 and b2. TABLE : FLIGHTS FL_NO STARTING ENDING NO_FLIGHTS NO_STOPS IC301 MUMBAI DELHI 8 0 IC799 BANGLORE DELHI 2 1 MC101 INDORE MUMBAI 3 0 IC302 DELHI MUMBAI 8 0 AM812 KANPUR BANGLORE 3 1 IC899 MUMBAI KOCHI 1 4 AM501 DELHI TRIVENDRUM 1 5 MU499 MUMBAI MADRAS 3 3 IC701 DELHI AHMEDABAD 4 0

TABLE : FARES Mock Test Paper-3 17 FL_NO AIRLINES FARE TAX% IC701 Indian Airlines 6500 10 MU499 Sahara 9400 5 AM501 Jet Airways 13450 8 IC899 Indian Airlines 8300 4 IC302 Indian Airlines 4300 10 IC799 Indian Airlines 10500 10 MC101 Deccan Airlines 3500 4 (b1) Write the SQL commands for the following statements- 4 6. (i) Display FL_NO and NO_FLIGHTS from KANPUR to BANGLORE from the table FLIGHTS. (ii) Arrange the contents of the table FLIGHTS in the ascending order of FL_NO. (iii) Display the FL_NO and fare to be paid for the flights from DELHI to MUMBAI using the tables FLIGHTS and FARES, where the fare to be paid = FARE +FARE * TAX%100. (iv) Display the minimum fare Indian Airlines is offering from the table FARES. (b2) Write the output of the following SQL statements- 2 (i) SELECT FL_NO, NO_FLIGHTS, AIRLINES from FLIGHTS, FARES where STARTING= DELHI and FLIGHTS.FL_NO=FARES.FL_NO; (ii) SELECT COUNT(DISTINCT ENDING) from FLIGHTS; (iii) SELECT ENDIING,COUNT(ENDING) FROM FLIGHTS GROUP BY ENDING; (a) State and verify Associative Law. 2 (b) Write the equivalent expression for following logical circuit- 2 (c) Express P+Q R in POS form- 1 (d) Reduce the following Boolean expression using K-Map- 3 F(P,Q,R,S)=?(0,3,5,6,7,11,12,15) 7. (a) Name two transmission media for networking. 1 (b) Expand the following terms- 1 (i) GSM (ii) CDMA (c) Differentiate between Hackers and Crackers. 1

18 CBSE-XII Computer Science (d) What is meant by FTP? 1 (e) Indira Convent School in Lucknow is setting up the network between its different wings. There are 4 wings named as Senior(S), Junior(J), Admin(A) and Hostel(H). Distance between various wings is given below- Wing A to Wing S 100m Wing A to Wing J 200m Wing A to Wing H 400m Wing S to Wing J 300m Wing S to Wing H 100m Wing J to Wing H 450m Number of Computers Wing A 10 Wing S 200 Wing J 100 Wing H 50 (e1) Suggest a suitable topology for networking the computer of all wings. 1 (e2) Name the wing where the server is to be installed. Justify your answer. 1 (e3) Suggest the placement of Hub/Switch in the network. 1 (e4) Mention the economic technology to provide Internet accessibility to all the wings. 1 Note : Satellite Link, Optical Fiber, Microwave and leased line are not acceptable solution for this question. (f1) What is a shareware? 1 (f2) Explain hacking. 1