Sample Paper 2015 Class XII Subject Computer Science

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

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

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

Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs 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

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

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

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

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

COMPUTER SCIENCE

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

COMPUTER SCIENCE 2002 (Delhi Board)

Question Bank Class XII Subject : Computer Science

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

Computer Science 2006 (Delhi)

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

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

Computer Science 2006 (Outside Delhi)

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

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

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

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

COMPUTER SCIENCE 1998 (Delhi Board)

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

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

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

Model Sample Paper 2015

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

2016 COMPUTER SCIENCE

Sample Paper 2012 Class XII Subject Computer Science

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

General Instructions:

KENDRIYA VIDYALAYA SANGATHAN

KENDRIYA VIDYALAYA SANGATHAN, KOLKATA REGION SPLIT-UP SYLLABUS ( ) CLASS XII : COMPUTER SCIENCE (THEORY)

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:

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

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme

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

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

Object Oriented Pragramming (22316)

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

KENDRIYA VIDYALAYA SANGATHAN

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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

KENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015

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

KendriyaVidyalayaSangathan Kolkata Region


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

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

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

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

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

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

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

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

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

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

Sample Paper Class XII SUBJECT : 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; }

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

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

Suggestive List of C++ Programs

COMPUTER SCIENCE (083)

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

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

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


PART I. Answer all questions in this Part. While answering questions in this Part, indicate briefly your working and reasoning, wherever required.

KENDRIYA VIDYALAYA SANGATHAN GUWAHATI REGION क य व लय स गठन, ग व ह ट स भ ग I-PRE BOARD 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.

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

Index for C++ Programming

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

Transcription:

Sample Paper 2015 Class XII Subject Computer Science MAX. MARKS: 70 Note (i) (ii) All questions are compulsory. (ii) Programming Language : C++ TIMES: 3 HOURS Q1. (a) Write a macro using #define directive to calculate semi-perimeter of a triangle. Use this macro in void main to calculate semi-perimeter of the triangle. 2 (b) Name the header file(s) that shall beneeded for successful compilation of the following C++ code. 1 void main() char name[20]; cout<<"enter name :"; gets(name); for(int i=0;name*i+!= \0 ;i++) name[i]=toupper(name[i]); cout<<"name in upper case is "; puts(name); getch(); (c) Rewrite the following after making corrections in the following code, if any. Also underline the corrections made. 2 #include <iostream.h> class phone int no; char areacode[10]; int calls; phone (int i=0, char b); phone (phone A) no = A.no; areacode = A.areacode; ~phone( ),cout << Destroying Object <<--calls<< \n ; ; void main( )

phone X, Y; Y.no =10; (d)find the output of the following program 3 #include<iostream.h> class train int mno,tripno,passengercount; train(int tmno=10) mno=tmno; tripno=0; passengercount=0; void trip(int pc=30) tripno++; passengercount+=pc; void statusshow() cout<<mno<< : <<tripno<< : <<passengercount<<endl; ; void main() train m(15),t; m.trip(); t.trip(25); m.statusshow(); m.trip(50); t.statusshow(); m.statusshow(); (e)find the output of the following program 2 # include<iostream.h> # include<ctype.h> #include<string.h> void change (char *state, int &s) int b=s; for (int x=0;s>=0;x++,s--) if ((x+s)%2) *(state+x) = toupper(*(state+b-x)); void main ( ) char s[]="punjab"; int b = strlen(s)-1; change(s,b);

cout<<s<<"#"<<b; (f)study the following program and select the possible output(s)from it : 2 #include<stdlib.h> #include<iostream.h> #include<string.h> void main() randomize(); char A[]="WELCOME"; int ToGo; for(int I=0;I<strlen(A);I++) ToGo=random (sizeof (ToGo)*2) +1; cout<<a[togo]<<":"; a) W: E: L: C: O: M: E: b) E: C: E: E: C: C: E: c) E: C: E: E: C: C: O: d) C: C: C: E: E: C: C: Q2. (a) What do you understand by Polymorphism? Also, givean example in C++ to illustrate the same. 2 (b) Answer the questions (i) and (ii) after going through the following class : 2 class Factory private: char Name[30]; int worker; Factory( ) //function 1 strcpy(name, Blank ); worker=0; void Details( ) //function 2 cout<<name<<endl<<worker<<endl; Factory(char *Fact_name, int No); //function 3 Factory(Factory &F); // function 4 ;

i) In OOP, what is function 3referred as? Write the function definition for function 3. ii) Write statements which will invoke function 1, function 3 and function 4. (c) Define a class Participant in c++ with the following description. 4 Private members: Pname - String to store the participant name Age - Integer to store the participant age Category - String to store the category NOE - Integer to store number of events according to age Position - Integer array to store position hold by participant in each event TPoints - Integer to store the total points scored by the participant Calpoints() - function to read from the user the Position hold by participant in each events and calculate TPoints as sum of points based on the position hold by them as given below. Position Points 1 5 2 3 3 1 4 onwards 0 Protected members: Assign()- function to assign Category and NOE based on age as follows and Age Category NOE <9 SubJunior 4 >=9 and <=12 Junior 5 >12 and <=14 Inter 6 >14 and <=16 Senior 7 Public Members: Get_Data() to input Pname, Age and invoke Assign() function to assign the Category and no of events. Call the function Calpoints() to read the positions in all the events and calculate the total points.

Show_Data() to display Pname, Category and TPoints. (d) Answer the questions (i) to (iv) based on the following: 4 class Customer int CustNo; char CustName[20]; protected: void Register(); Customer(); void Status(); ; class Salesman int SalNo; char SalName[20]; protected: float Salary; Salesman(); void Enter(); void Show(); ; class Shop : private Customer, public Salesman char Voucher_No[14]; char Sales_Date[8]; Shop(); void Sales_Entry(); void Sales_Detail(); ; (i) (ii) (iii) How many bytes will be required by an object belonging to class Shop? Write the name of data member(s) which are accessible to object belonging to class customer. Write the name of all the data members which are accessible to member functions of class Shop.

(iv) Write the name of all the member functions which are accessible to objects belonging to class Salesman. Q3. (a) Write a function SWAP(int A[], int size) in c++ to modify the content of the array in such a way that the elements, which are multiples of 10 swap with the value present in the very next position in the array. 3 For example: If the content of array A is 80, 42, 41, 30, 24, 67 The content of array A should become 42, 80, 41, 24, 30, 67 (b) Consider a 2D array containing n names. The array is sorted in alphabetical order. Write a function to locate a name by binary search. Display a message name found if the search is successful else display a proper error message. The array,its size and name to be searched are passed as arguments to the function. (c) A 2D array A[4..7][-1..3]requires 2 bytes of storage per element. If the array is stored in row major form. Calculate the address of A[6][2] if the base address is 100. (d) Consider the following portion of a program, which implements a linked stack for Library. Write the definition of functions PUSH () and POP(), to insert and delete a new node in the stack with required information. struct Library int id; char names[20]; ; class stack Library *top; public : stack() top=null; void PUSH();

; void POP(); (e) Write a function in C++ to find and return the sum of elements from all alternate elements of a two dimensional array passed as argument with size, starting from [0][0]. For eg If the following is the content of the array B[0][0] B[0][1] B[0][2] 4 5 1 B[1][0] B[1][1] B[1][2] 2 8 7 B[2][0] B[2][1] B[2][2] 9 6 3 The function should add elements B[0][0], B[0][2], B[1][1], B[2][0] and B[2][2]. Q4. (a) What is the difference between ios :: app and ios:: ate file modes? 1 (b) Write a function in c++ to count the number of lines starting with article The from a text file NOTES.TXT. 2 (c) Given a binary file COMPUTER.DAT, containing records of the following type: 3 class computer int speed ; char chipset[20]; //chipset as PIV or "QUADCORE or "DUALCORE void Enter( ); //Function to enter the details.. void Show( ); //Function to display the details int checkchip(char ct[ ]) return strcmp(chipset, ct); ; i) Write a function copy ( ) that would copy only those records having chipset as DUALCORE from COMPUTER.DAT to NOTEBOOK.DAT ii) Write a function append ( ) to append new records to the existing file COMPUTER.DAT. Q5. (a) What do you understand by Degree and Cardinality of a table? Explain with example.2 (b) Consider the following tables Customer_Record and Order_Detail. Write SQL commands for statements (i) to (iv) and give output for SQL queries (v) to (viii)6

Table: Customer_Record C_Code Name City Phone C001 Raju Patna 6837282 C002 Ali New Delhi 6763522 C003 James Patna 6912345 C004 Hari New Delhi 6354627 C005 Toms New Delhi 6644533 Table: Order_Detail (i) (ii) (iii) (iv) (v) (vi) (vii) O_Cod A001 C_Code C003 Date 23-Nov-07 Item Burger Qty 3 Amount 60 A002 C002 25-Nov-07 Pizza 2 300 A003 C005 30-Nov-07 Burger 5 100 A004 C004 03-Dec-07 Burger 5 100 A005 C001 15-Dec-07 Hot Dog 2 40 To display the name of all customers from Patna. To display C_Code, Name, Item, Qty and Amount for every customer. To display Customer Detail in descending order of customer name. To display City and number of customers from each city. Select count (distinct city) from Customer_Record; Select A.name, B.item from customer_record A, order_detail b where a.c_code=b.c_code and a.city = New Delhi ; Select O_code, c_code, qty, amount from order_detail where item not in ( Pizza, Hot Dog ); Select item, qty, o_code from order_detail where amount=60 or amount=40; (viii) Q6. (a) State and prove Distributive Law algebraically.2 (b) Draw the logic circuit diagram for the Boolean expression F=AB +BC using 1 only NAND gates. (c) Express A B+AC+BC in canonical SOP form.1 (d) Prove (P+R )(P +R)=PR+P Q R +P QR 2 (e) Reduce the following Boolean expression using K-Map: 2 F(A,B,C,D) = Σ(0,1,4,5,8,10,12,14,15) Q7. (a) Differentiate between Package switching and message switching technique. 1 1 (b) Expand: a) CDMA b) XML 1 1 (c) Give any two examples of client Server Scripts. 1 1

(d) Differentiate between Web Server and Web Browser. 1 (e) A National Networking company is planning to start their offices in four cities of 4 UAE to provide regional IT infrastructure support in the field of Culture and Education. The company has planned to set up their head office in Abu Dhabi in three locations and have named their Abu Dhabi Offices as Customer Support, Main Office and Maintenance office. The company s regional offices are located at Dubai, Sharjah and Al Ain. A rough layout of the same is as follows Approximate distance between these offices as per network survey team is as follows: From To Distance Main Office Customer Support 5 Km Main Office Maintenance Office 1 Km Main Office Dubai Office 180 Km Main Office Al Ain Office 130 Km Main Office Sharjah Office 225 Km In continuation of the above, the company experts have planned to install the following number of computers in each of their offices: Main Office 110 Customer Support 25 Maintenance Office 55 Al Ain Office 55 Dubai 55 Sharjah 55 (i) Suggest network type (out of LAN, MAN, WAN) for connecting each of the following set of their offices: Main Office and Maintenance Office Main Office and Sharjah Office (ii) Which device you will suggest to be procured by the company of connecting all the computers with in each of their offices out of the following devices? Modem Telephone Switch/Hub (iii) Which of the following communication medium, will you suggest to be procured by the company for connecting their local offices in Abu Dhabi for distortion free, effective and fast communication? Telephone Cable

Ethernet Cable Optical Fiber (iv) Suggest a cable/wiring layout for connecting the company s local offices located in Abu Dhabi. Also suggest an effective method/ technology for connecting the company s regional offices Al Ain, Dubai and Sharjah. (f) What is proprietary software? Give one example. 1 (g) Give one suitable example of each URL and Domain Name. 1