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

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

Downloaded from

THE INDIAN COMMUNITY SCHOOL, KUWAIT

ARMY PUBLIC SCHOOL NO.2, JABALPUR Important Questions SUBJECT: COMPUTER SCIENCE(XII)

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

Rich Harvest Public School Holiday Homework Session: Class -XII

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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:

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

COMPUTER SCIENCE

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

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

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

Sample Paper 2015 Class XII Subject Computer Science

KendriyaVidyalayaSangathan Kolkata Region

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

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

(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 FIRST COMMON PRE BOARD EXAMINATION CLASS:XII - (COMPUTER SCIENCE )

Model Sample Paper 2015

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

CLASS-XI COMPUTER SCIENCE

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

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

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

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 2002 (Delhi Board)

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

Question Bank Class XII Subject : Computer Science

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

COMPUTER SCIENCE 1998 (Delhi Board)

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

2016 COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

Computer Science 2006 (Outside Delhi)

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

Sample Paper 2012 Class XII Subject Computer Science

COMPUTER SCIENCE (083)

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

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

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

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

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

Computer Science 2006 (Delhi)

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

KE DRIYA VIDYALAYA SA GATHA, CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO COMPUTER SCIE CE (CLASS-XII) MARKI G SCHEME

COMPUTER SCIENCE Time allowed : 3hours] [Maximum 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

Downloaded from

C++ 8. Constructors and Destructors

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN CLASS XII EXAMINATION INFORMATICS PRACTICES (065)

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


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

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

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

Cambridge School, Noida Practice Paper Session Subject: Computer Science Class VIII Time: 3hrs MM: 80

General Instructions:

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

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 }

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

Padasalai.Net s Model Question Paper

Index for C++ Programming

SRI SARASWATHI MATRIC HR SEC SCHOOL PANAPAKKAM +2 IMPORTANT 2 MARK AND 5 MARK QUESTIONS COMPUTER SCIENCE VOLUME I 2 MARKS

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

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

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

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

THE INDIAN COMMUNITY SCHOOL, KUWAIT

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

THE EMIRATES NATIONAL SCHOOL SHARJAH THIRD MODEL EXAMINATION COMPUTER SCIENCE ( Code : 083) ANSWER KEY

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

vinodsrivastava.com Constructor and Destructor

Object Oriented Pragramming (22316)

Questions Bank. 14) State any four advantages of using flow-chart

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

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

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

Transcription:

SAMPLE QUESTION PAPER CLASS-XII, SESSION: 07-8 SUBJECT: COMPUTER SCIENCE Time: hrs Max. Marks: 70 General Instructions: i. All questions are compulsory. ii. Programming language: C++ iii. Database query language: SQL iv. Attempt all questions in serial order.. a. Write the type of C++ tokens( keywords and user defined identifiers) from the following: i. auto iii. If ii. WHILE iv. default b. Shaurya has typed the following C++ code: int n; char Designation[5]; cin>>designation; n=strlen(designation); cout<< \nthe length of the string is:\t <<n; During compilation he found the following errors: i. Function strlen should have prototype. ii. Undefined symbol cout iii. Undefined symbol cin Write the name of the header files, which Shaurya needs to include for successful compilation and execution of the above code. c. Observe the following program carefully and attempt the given questions: #include<iostream.h> #include<conio.h> #include<stdlib.h> clrscr(); randomize(); char courses[][0]="m.tech","mca","mba","b.tech"; int ch; for(int i=;i<=;i++) ch=random(i)+; 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 and which course will always be displayed at first in the output? II. Mention the minimum and the maximum value assigned to the variable ch? d. Rewrite the following program after removing the syntactical errors (if any). Underline each correction. #include<conio.h> #include<iostream.h> #include<string.h> #include<stdio.h> class product int product_code,qty,price; char name[0]; product() product_code=0;qty=0;price=0; name=null; void entry() /7

cout<<"\n Enter code,qty,price"; cin>>product_code>>qty>>price; gets(name); void tot_price() return qty*price; ; p product; p.entry(); cout<<tot_price(); e. Write the output of the following C++ program code: Note: Assume all required header files are already being included in the program. void change(int *s) for(int i=0;i<4;i++) if(*s<40) if(*s%==0) *s=*s+0; *s=*s+; if(*s%==0) *s=*s-0; *s=*s-; cout<<*s<<" "; s++; int score[]=5,60,5,5; change(score); f. Write the output of the following C++ program code: Note: Assume all required header files are already being included in the program. class seminar char topic[0]; int charges; seminar() strcpy(topic,"registration"); charges=5000; seminar(char t[]) strcpy(topic,t); charges=5000; seminar(int c) strcpy(topic,"registration with Discount"); charges=5000-c; void regis(char t[],int c) /7

strcpy(topic,t); charges=charges+c; void regis(int c=000) charges=charges+c; void subject(char t[],int c) strcpy(topic,t); charges=charges+c; void show() cout<<topic<<"@"<<charges<<endl; ; seminar s,s(000),s("genetic Mutation"),s4; s.show(); s.show(); s.subject("ict",000); s.show(); s.regis("cyber Crime",500); s.show(); s.regis(); s.show(); s4=s; s4.show(); getch();. a. What do you understand by static member function? Explain with suitable example. b. Answer the questions(i) and (ii) after going through the following class: class planet char name[0];char distance[0]; planet() //Function strcpy(name, "Venus"); strcpy(distance,"8 million km"); void display(char na[],char d[]) //Function cout<<na<<"has "<<d<<" distance from Earth"<<endl; planet(char na[], char d[]) //Function strcpy(name,na); strcpy(distance,d); ~planet() //Function 4 cout<<"planetarium time over!!!"<<endl; ; I. What is Function referred as? When will it be executed? II. Write suitable C++ statement to invoke Function. c. Answer the questions (i) to (iv) based on the following: 4 /7

class indoor_sports int i_id; char i_name[0]; char i_coach[0]; protected: int i_rank,i_fee; void get_ifee(); indoor_sports(); void ientry(); void ishow(); ; class outdoor_sports int o_id; char o_name[0]; char o_coach[0]; protected: int orank,ofee; void get_ofee(); outdoor_sports(); void oentry(); void oshow(); ; class sports:public indoor_sports,protected outdoor_sports char rules[0]; sports(); void registration(); void showdata(); ; (i) Name the type of inheritance illustrated in the above C++ code. (ii) Write the names of all the members, which are accessible from the objects belonging to class outdoor_sports. (iii) Write the names of all the member functions, which are accessible from the member function of class sports. (iv) What will be the size of the object belonging to class indoor_sports? d. Define a class DanceAcademy in C++ with following description: Private Members : Enrollno of type int Name of type string Style of type string Fee of type float A member function chkfee( ) to assign the value of fee variable according to the style entered by the user according to the criteria as given below: 4 Style Fee Classical 0000 Western 8000 Freestyle 000 Public Members : A function enrollment() to allow users to enter values for Enrollno,Name, Style and call function chkfee() to assign value of fee variable according to the Style entered by the user. A function display() to allow users to view the details of all the data members.. a. An array P[0][0] is stored along the column in the memory with each element requiring bytes of storage. If the base address of the array P is 6500, find out the location of P[0][0]. b. Write a function in C++ void transpose(int [ ][5],int,int) to find the transpose of a two dimensional array without using second Array. c. Write the definition of a member function PUSH() for a class Library in C++ to insert a book 4 4/7

information in a dynamically allocated stack of books considering the following code is already written as a part of the program: struct book int bookid; char bookname[0]; book *next; ; class Library book *top; Library() top=null; void push(); void pop(); void disp(); ~Library(); ; d. Evaluate the following POSTFIX expression. Show the status of Stack after execution of each operation separately: 45, 45, +,, 0, 0, /, -,* e. Write a user-defined function swap_row(int ARR[ ][],int R,int C) in C++ to swap the first row values with the last row values: For example if the content of the array is: 0 0 0 40 50 60 70 80 90 Then after function call, the content of the array should be: 70 80 90 40 50 60 0 0 0 4. a. Write a function display () in C++ to display all the students who have got a distinction(scored percentage more than or equal to 75) from a binary file stud.dat, assuming the binary file is containing the objects of the following class: class student int rno; char sname [0]; int percent; int retpercent() return percent; void getdetails() cin>>rno; gets(sname); cin>>percent; void showdetails() cout<<rno; puts(sname); cout<<percent; ; b. Write a user defined function word_count() in C++ to count how many words are present in a text file named opinion.txt. For example, if the file opinion.txt contains following text: Co-education system is necessary for a balanced society. With co-education system, Girls and Boys may develop a feeling of 5/7

mutual respect towards each other. The function should display the following: Total number of words present in the text file are: 4 c. Find the output of the following C++ code considering that the binary file sp.dat already exists on the hard disk with records in it. class sports int id; char sname[0]; char coach[0]; void entry(); void show(); void writing(); void reading(); s; void sports::reading() ifstream i; i.open("sp.dat"); while() i.read((char*)&s,sizeof(s)); if(i.eof()) break; cout<<"\n"<<i.tellg(); i.close(); s.reading(); 5. a. Observe the table Club given below: Member_id Member_Name Address Age Fee M00 Nisha Gurgaon 9 500 M00 Niharika New Delhi 00 M004 Sachin Faridabad 8 500 i. What is the cardinality and degree of the above table? ii. If a new column contact_no has been added and three more members have joined the club then how these changes will affect the degree and cardinality of the above given table. b. Write SQL commands for the queries (i) to (iv) and output for (v) to (viii) based on the tables Watches and Sale given below: Watches Watchid Watch_Name Price Type Qty_Store Sale Watchid Qty_Sold Quarter W00 HighTime 0000 Unisex 00 W00 0 W00 LifeTime 5000 Ladies 50 W00 5 W00 0 W00 Wave 0000 Gents 00 W00 0 W004 HighFashion 7000 Unisex 50 W00 5 W00 0 W005 GoldenTime 5000 Gents 00 W005 0 W00 5 4 i. To display all the details of those watches whose name ends with Time ii. To display watch s name and price of those watches which have price range in between 5000-5000. iii. To display total quantity in store of Unisex type watches. iv. To display watch name and their quantity sold in first quarter. v. select max(price), min(qty_store) from watches; vi. select quarter, sum(qty_sold) from sale group by quarter; 6 6/7

vii. select watch_name,price,type from watches w, sale s where w.watchid!=s.watchid; viii. select watch_name, qty_store, sum(qty_sold), qty_store sum(qty_sold) Stock from watches w, sale s where w.watchid=s.watchid group by s.watchid; 6. a. State and prove Involution theorem of Boolean Algebra using truth table method. b. Draw the equivalent logic circuit for the following Boolean expression: F( A,B)=A ʘ B c. Write SOP expressions of a Boolean Function F(A,B,C) represented by the truth table shown below respectively: Inputs Outputs A B C Y 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 d. Obtain the minimal form for the following Boolean expressions using Karnaugh s Map: F(A,B,C,D)=Ʃ m (0,,,4,5,7,8,9,0,,4) 7. a. i. What is Web.0? ii. Identify the type of topology on the basis of the following:. Since every node is directly connected to the server, a large amount of cable is needed which increases the installation cost of the network.. It has a single common data path connecting all the nodes. iii. The following is a bit binary number usually represented as 4 decimal values, each representing 8 bits, in the range 0 to 55 (known as octets) separated by decimal points. 40.79.0.00 What is it? What is its importance? iv. Differentiate between Optical Fiber and Coaxial Cable transmission media. b. Quick Learn University is setting up its Academic blocks at Prayag Nagar and planning to set up a network. The university has academic blocks and one Human Resource Center as shown below: Business Block Technology Block Law Block HR Center Center to Center distances between various Blocks/ Center as per architectural drawings (in Metre) is: Number of computers in each of the Blocks/Center is as follows: Law Block to Business Block 40 Law Block 5 Law Block to Technology Block 80 Technology Block 40 Law Block to HR Center 05 HR Center 5 Business Block to Technology Block 0 Business Block 5 Business Block to HR Center 5 Technology Block to HR Center 5 i. Suggest an ideal layout for connecting these blocks/center for a wired connectivity. ii. iii. iv. Suggest the most suitable place (Block/Center) to house the server for this University. Also, provide a suitable reason for your suggestion. Which device will you suggest to be placed / installed in each of these blocks/center to efficiently connect all the computers within these blocks/center. The University is planning to connect its admission office in the closest big city, which is more than 50 km from university, which type of network out of LAN,MAN or WAN will be formed? Justify your answer. 7/7