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

Similar documents
Sample Paper 2015 Class XII Subject INFORMATICS PRACTICES

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

SAMPLE PAPER: 2015 Class :XII Subject : Informatics Practices. Time: 3 hrs. M.M. 70. Section A

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

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

COMPUTER SCIENCE 1998 (Delhi Board)

Downloaded from

SAMPLE PAPER Class XII Subject INFORMATICS PRACTICES. TIME: 3Hrs. M.M. 70

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

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

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

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

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

Computer Science 2006 (Outside Delhi)

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

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

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

Downloaded from

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

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

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

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

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

COMPUTER SCIENCE

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

Question Bank Class XII Subject : Computer Science

Model Sample Paper 2015

KendriyaVidyalayaSangathan Kolkata Region

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

CHAPTER 9 INHERITANCE. 9.1 Introduction

Computer Science 2006 (Delhi)

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

Sample Paper 2012 Class XII Subject Computer Science

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

ITL Public School Pre-Board( ) Computer Science (083) Time:3 hrs M. M: 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

Computer Science, Class XII ( ) (Summer Vacation-2015) (Holiday H.W) Chapter No.1 to 3

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

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

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

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

COMPUTER SCIENCE 2002 (Delhi Board)

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

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


KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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:

QUESTION BANK SUB: COMPUTER SCIENCE(083)

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

KENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015

D.A.V. PUBLIC SCHOOL, NEW PANVEL

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

COMPUTER SCIENCE Paper 1

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

CBSE Sample Paper for Computer Science Class XII.

COMPUTER SCIENCE (083)

2016 COMPUTER SCIENCE

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

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

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

SET 4. Series : GBM/C COMPUTER SCIENCE. Code No. 91. Candidates must write the Code on the title page of the answer-book. Roll No.

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

Padasalai.Net Half Yearly Exam Model Question Paper

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

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 Subject Computer Science

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

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

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

Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 15 min Max. marks : 70

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

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

Kapil Sehgal PGT Computer. Science Ankleshwar Gujarat

Computer Science 330 Assignment

(4) Find the syntax error(s), if any, in the following program: #include main() int x[5],*y,z[5]; for(i=0;i<5;i++) x[i]=i; z[i]=i+3; y=z; x=y; (5) Rew

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

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

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

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

KENDRIYA VIDYALAYA SANGATHAN,MUMBAI REGION 1 ST PRE-BOARD EXAMINATION TIME- 3 HRS. CLASS-XII SUBJECT-COMPUTER SCIENCE MARKS-70 MARKING SCHEME

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

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

Transcription:

Mock Test Paper-2 CBSE XII : Computer Science Mock Test Paper-2 1 Duration : 3hrs Max Marks : 70 1. (a) What is the difference between Object Oriented Programming and Procedural programming? 2 (b) Write the names of the header files to which the following functions belong : 1 (i) gets () (ii) ceil () (c) Rewrite the following program after removing the syntactical errors (if any). Also underline each correction. 2 #include <iostream.h> void main() int x, sum=0; cin<<x; for (x=1,x<100,x+=2) if x%2= =0 sum+=x; cout>> Sum is >>sum; (d) Find the output of the following : 3 #include<iostream.h> int func(int &x, int y=15) if (x%y= =0) return ++x; else return y ; void main() int p=20,q=25; q=func(p,q); cout<<p<<q<<endl; p=func(q); cout<<p<<q<<endl; q=func(p); cout<<p<<q<<endl; (e) Find the output of the following. Assume that all the necessary sections are included in the program. 2 #include<iostream.h>

2 CBSE-XII Computer Science #include<ctype.h> char *Name= an epic ; for (int x=0;x<strlen(name);++x) if (islower(name[x])) Name[x]=toupper(Name[x]); else if (isupper(name[x])) if (x%2!=0) Name[x]=tolower(Name[x-1]); else Name[x] ; cout<<name<<endl; 2. (f) In the following program : 2 (i) What is the difference between while and Do-while loops? (ii) What would be the output? int i=0; do i=(i+1)%10; cout<<i<< ; while (i!=0); cout<<endl; (a) Differentiate between Encapsulation and Data Hiding. 2 (b) Answer the questions (i) and (ii) after going through the following class : 2 class example int num1,num2; example () //Function 1 num1=15; num2=20; example(int f,int i) //Function 2 num1=f; num2=i; int add() //Function 3

Mock Test Paper-2 3 return (num1+num2); ~ example() //Function 4 cout<< Object is being released here\n ; ; (i) In Object Oriented programming what is Function 4 referred to as when it is invoked/called? (ii) In Object Oriented Programming what is Function 2 referred to as when it is invoked/called? (c) Define a class Serial with the following specifications : 4 The private members of Serial are- SerialCode Integer type Title 20 Character Duration Float type NoOfEpisodes Integer type The public members of class Serial are- - A Constructor function to initialize Duration as 45 and noofepisodes as15. - NewSerial() function to accept values for SerialCode and Title. - OtherEntries() function to assign the values of duration and noofepisodes with the help of corresponding values passed as parameters to this function. - Displaydata() function to display all the data members on the screen. Note : You are required to give detailed function definitions. ; (d) Consider the following C++ declarations and answer the questions given below : (4) class vehicle int wheels; protected : long int passenger; void data_in(); void data_out(); ; class heavy_vehicle :private vehicle int diesel_petrol; protected : long int load; void detail_in(int,int); void detail_out(); ; class bus :public heavy_vehicle

4 CBSE-XII Computer Science char make[25]; void read_data(); void write_data(); ; (i) Name the base class bus. (ii) Name the data members that can be accessed from function write_data() (iii) Name the data members that can be accessed by the object of bus class. (iv) What will be the size in bytes of the object of class bus. 3. (a) Write a function ItemSort in C++ to sort the following detail of items layed down in an structure and stored in array Arr[N] in descending order of Qty using selection sort technique- 3 struct Item int ItemCode; char ItemName[25]; int Qty; ; For example array X has the following details- ItemCode ItemName Qty 101 Britania Good day 30 102 Uncle Chips 57 103 Pastries 45 104 Bingo Namkeen 26 105 Kurkure 25 After sorting the above table looks like- ItemCode ItemName Qty 102 Uncle Chips 57 103 Pastries 45 101 Britania Good day 30 104 Bingo Namkeen 26 105 Kurkure 25 (b) An array X[7][10] is stored in the memory along the row with each of the element occupying 2 bytes. Find out the location for the element X[5][7], if the X[3][3] is being stored on location 2000. 3 (c) Write a function in C++ to add an element dynamically to the Queue containing the Patient detail. Consider the following structure accomplish the target. 4

struct Node int Pid; char Pname[20]; Node *Link; ; Mock Test Paper-2 5 (d) Write a function SumDiago() in C++ to add all the even numbers of diagonals of array Arr[N][N]. 2 Hint- See below the array Arr[4][4]- 5 3 4 2 3 4 9 3 7 2 2 6 8 1 5 4 The output of the above is- Sum of Left to Right diagonal even elements = 10 Sum of Right to Left diagonal even elements = 12 (e) Evaluate the following postfix expression using STACK- 2 true NOT false NOT true NOT AND OR 4. (a) A Product.dat file is created with the objects of class products. Assuming that the file has just been opened through the object pfile of fstream class- 1 (i) Give a command to place the file pointer to the fourth record from the end. (ii) In continuation to the above command, give command to bring file pointer to the beginning. (b) Write a function in C++ to count number of consonants present in a text file ALPHABET.TXT. 2 (c) Write a function in C++ to add a new object to binary file ACOUNT.DAT, assuming that the binary file is containing the objects of the following class. (3) class Customer int Accno; char Name[25]; float Balance; void get_detail () cout<< Account Number ;cin>>accno; cout<< Name of the Customer ; gets(name); cout<< Balance ;cin>>balance; void show_detail()

6 CBSE-XII Computer Science cout<< Account Number : <<Accno<<endl; cout<< Account Holder : <<Name <<endl; cout<< Balance : <<Balance<<endl; ; 5. (a) What is candidate key and primary key? 2 (b) Consider the following tables Furniture and Arrivals and answer the questions given in b1 and b2. Furniture SNo ItemName FCODE Dateofstock Price Discount 1 White Lotus DB01 23/02/2009 30000 25 2 Pink Feather BC01 20/01/2009 7000 20 3 Dolphin BC01 19/02/2009 9500 20 4 Decent OT01 01/01/2009 25000 30 5 Comfort Zone DB01 12/01/2009 25000 25 6 Donald BC01 24/02/2009 6500 15 7 Royal Finish OT01 20/02/2009 18000 30 8 Royal Tigger SO01 22/01/2009 31000 30 9 Econo Sitting SO01 13/12/2008 9500 25 10 Eating Paradise DT01 19/02/2009 11500 25 Articles FCODE F_TYPE COMPANY DB01 Double Bed Prem Furniture BC01 Baby Cot Meghdoot Furniture OT01 Office Table Arena Furniture DT01 Dinning Table Meghdoot Furniture SO01 Sofa DCM Furniture (b1)write the SQL commands for the following statements- 4 (i) To. list the items whose price is below 10000. (ii) To display all the items in descending order ItemName; (iii) To list all the items on discounted price. (iv) Display all the items with furniture type and company name. (b2) Give the output of the following SQL commands- 2 (i) SELECT COUNT(DISTINCT Fcode) FROM Furniture; (ii) SELECT FCODE, SUM(PRICE) FROM Furniture GROUP BY FCODE; (iii) SELECT ItemName FROM Furniture WHERE FOCDE IN ( DB01, DT01 ); (iv) SELECT MIN(Price) FROM Furniture WHERE Discount = 25

Mock Test Paper-2 7 6. (a) What is idempotent law? Prove. 2 (b) Write the equivalent Boolean Expression for the following logic circuit : 1 (c) Reduce the following Boolean Expression using K-Map. 3 F(A,B,C,D)=?(1,3,4,5,7,9,11,12,13,15) f(x,y,z)=xy+yz+zx 7. (a) Differentiate between HTML and XML? (2) (b) What is the importance of Cyber Law? (1) (c) What is a URL? (1) (d) What is video conferencing? (e) Saoni Webtech Ltd has set up its new centre at Noida for its office and web based activities. It has 4 blocks of buildings as shown in the figure below : Centre to Center distances between blocks : A to B B to C C to D A to D B to D A to C 40 m 120 m 60 m 170 m 150 m 70 m Number of Computers A block 15 B block 50 C block 115 D block 10 (e1) Suggest the cable layout of connections between blocks and topology. 1

8 CBSE-XII Computer Science (e2) Suggest the most suitable place to house the server of this organization with suitable reason. 1 (e3) Suggest the placement of the following devices with justification : (i) Repeater (ii) Hub/Switch 1 (e4) The organization is planning to link its front office situated in the city in hilly region where cable connection is not feasible, suggest the economic way to connect it with reasonably high speed. 1 (f1) Exapand the terms FSF and W3C. 1 (f2) What is a proxy server? 1