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

Similar documents
DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

SAMPLE PAPER-2015 CLASS-XII COMPUTER SCIENCE Time allowed: 3 hr. MM: 70

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

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

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

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

DATA FILE HANDLING. The function should create another file OUT.TXT with the text

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

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

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

Question Bank Class XII Subject : Computer Science

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

VIDYA BHARATI SCHOOL

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

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

Model Sample Paper 2015

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

KendriyaVidyalayaSangathan Kolkata Region

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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly


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

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

THE INDIAN COMMUNITY SCHOOL, KUWAIT

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

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

BLUE PRIENT SUBJECT:- Computer Science

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

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

Downloaded from

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

Computer Science 2006 (Outside Delhi)

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

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

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)

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

Computer Science 2006 (Delhi)

KENDRIYA VIDYALAYA SANGATHAN MODEL QUESTION PAPER-5 BLUE PRINT CLASSS XII COMPUTER SCIENCE (083) TIME: 03:00 Hrs. MAX. MARKS: 70 S.No.

Sample Paper 2015 Class XII Subject Computer Science

General Instructions:

QUESTION BANK SUB: COMPUTER SCIENCE(083)

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

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

vinodsrivastava.com Constructor and Destructor

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

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

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

2016 COMPUTER SCIENCE

Kendriya Vidyalaya Sangathan Model Question Paper-1 Class XII Subject - Computer Science (083) Max. Marks: 70. Blue Print

Computer Science, Class XII ( ) (Autumn Break-2015) (Holiday H.W) Chapter No.4 to 6, 11 to 13

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

Sample Paper 2012 Class XII Subject Computer Science

COMPUTER SCIENCE 2002 (Delhi Board)

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

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

HOLIDAY HOME WORK COMPUTER NETWORK AND COMMUNICATION

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.

COMPUTER APPLICATION

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

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

CS201 Latest Solved MCQs

CBSE 12th Computer Science Question Papers

Class XII Computer Science (083) Sample Question Paper Time allowed: 3 Hours Max. Marks: 70

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

Downloaded from

Government of Karnataka SYLLABUS FOR SECOND PUC - COMPUTER SCIENCE (41) SUB-UNITS

2 SEMESTER EXAM CLASS : 12 DECEMBER 2016 TIME : 3 Hrs MAX 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


Subject - Computer Science (Code-083)

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

Transcription:

Sample Paper- 2015 COMPUTER SCIENCE (Theory) Class-XII Time Allowed: 3hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C+ + Ques. 1 a) What is the use of inline functions in C++ with the help of an example? 2 b) Name the header files that shall be needed for the successfully execution of following code: 1 void main() char Word[]= Exam ; cout<<setw(20)<<word; c) Rewrite the following program after removing syntactical error(s) if any. Underline each correction. 2 #include iostream.h Class Music int Mno; float Fees; PUBLIC: void Register ( ) cin>>mno>>fees; void Display( ) cout<<mno<<" : "<<Fees<<endl; ; void main() Music delete; Register(); delete.display(); d) Give the output of the following program segment (Assuming all required header files are included in the program): 2 #include<iostream.h> #include<ctype.h> void main( )

char Mystring[ ] = "what@anidea!"; for(int I=0; Mystring [I]! = '\0' ; I++) if(!isalpha (Mystring[I]) ) Mystring[I ]= ' * '; else if(isupper (Mystring[I] )) Mystring[I] = Mystring[I]+1; else Mystring[I] = Mystring[I+1]; cout<<mystring; e) Find the output of the following program. 3 #include<iostream.h> void main() int Numbers[] = 2,4,8,10; int *ptr = Numbers; for (int C = 0; C<3; C++) cout<< *(ptr+1)-1 << @ ; ptr++; cout<<endl; for(c = 0; C<4; C++) (*ptr)=(*ptr * 2); --ptr; for(c = 0; C<4; C++) cout<< Numbers [C]<< # ; cout<<endl; f) Observe the following program RANDNUM.CPP carefully. If the value of VAL entered by the user is 10, choose the correct possible output(s) from the options from i) to iv) and justify your option. 2 //program RANDNUM.CPP #include<iostream.h> #include<stdlib.h> #include<time.h> void main() randomize(); int VAL, Rnd; int n=random(2); Rnd=8 + random(sizeof(val)) * 1;

while(n<rnd) cout<<n<< \t ; n++; output options: i) 1 2 3 4 5 6 7 8 9 10 11 12 13 ii) 0 1 2 3 4 5 6 7 8 iii) 1 2 3 4 5 iv) 1 2 3 4 5 6 7 8 Ques. 2 a) What is difference between the Procedural Programming and Modular Programming? Give Suitable Example? 2 b) Answer the questions (i) and (ii) after going through the following class: 2 class WORK int WorkID; char WorkType; ~WORK( ) // Function 1 cout<< Un-Allocated <<endl; void status( ) // Function 2 cout<<workid<< ; <<WorkType<<endl; WORK( ) // Function 3 WorkID=10; WorkType= T ; WORK(WORK &W) // Function 4 WorkID=W.WorkID+12; WorkType=W.WorkType+1; ; (i) Which member function out of function1, function2, function3 and function4 shown in the above example of class WORK is called automatically, when the scope of an object gets over? Is it known as Constructor OR Destructor OR Overloaded Function OR Copy Constructor? (ii) WORK W; //Statement 1 WORK Y (W); //Statement 2

Which member function out of Function1, Function2, Function3 and Function4 shown in above definition of class WORK will be called on execution of statement written as Statement 2? What is this function specifically known as out of Destructor or Copy Constructor or Parameterized Constructor? c) Define a class Account in C+ + with the following description: 4 Private Members ICode of type integer (Item Code) Item of type string (Item Name) Price of type float(price of each item) Qty of type integer (quantity in stock) Discount of type float (Discount percentage on the item) A member function FindDisc( ) to calculate discount as per the following rule: If Qty<=100 Discount is 0 If Qty (101 and200) Discount is 15 If Qty>200 Discount is 20 Public Members: A constructor to assign all values with 0 and null respectively A function Buy( ) to allow user to enter values for ICode, Item, Price, Qty and call function FindDisc( ) to calculate the discount. A Function ShowAll( ) to allow userto view the content of all the data members. d) Answer the questions (i)to (iv) based on the following: 4 class Aayurved void getvala( ); void anyval( ); protected: ; int x,y; float *p; void procval( ); double z; void putvala( ); class yoga : public Aayurved short a, b; protected: int c, d; void getyoga( );

void putyoga( ); class Wisdom: public yoga (i) (ii) long int p; protected: long double q; void getwis( ); void showis( ); ; ; unsigned long e; Name all the member functions, which are accessible by the objects of class wisdom. Name all the protected members of class wisdom. (iii) Name the data members, which are accessible from the objects of class wisdom (iv) How many bytes will be occupied by the object of class Wisdom. Ques. 3 a) 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 3 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]. a) X [1..6][1.10] is a two dimensional array. The first element of the array is stored at location 100. Each element of the array occupies 6 bytes. Find the memory location of X[2][4] when (i) array is stored row wise. (ii)array is stored column wise. 3 b) Write a function in C++ to delete an element from a dynamically allocated Queue where each node contains a real number as data. 3 Assume the following definition of node for the same. struct node float NUM; node *next ; c) Evaluate the following postfix expression E given below, show the contents of the stack during the evaluation 2

TRUE FALSE TRUE FALSE NOT OR TRUE OR AND Ques. 4. a) Observe the program segment given below carefully and fill the blanks marked statement 1 and statement 2 using seekg( ) and tellg( ) function for performing the required task. 1 #include<fstream.h> class Employee int Eno; char Ename[30]; //Function to count the total number of records int Countrec( ); ; int Employee:: Countrec( ) fstream File; File.open( Emp.Dat,ios::binary ios::in); // Statement 1 int Bytes = // Statement 2 int count = Bytes/sizeof(Employee); File.close( ); return count; b) Assume a text file coordinate.txt is already created. Using this file create a C++ function to count the number of.words having first character capital. 2 Example: Do less Thinking and pay more attention to your heart. Do Less Acquiring and pay more Attention to what you already have. Do Less Complaining and pay more Attention to giving. Do Less criticizing and pay more Attention to Complementing. Do less talking and pay more attention to SILENCE. Output will be : Total words are 16 c) Given a binary file PHONE.DAT, containing records of the following class type 3 class Phonlist char name[20]; char address[30]; char areacode[5]; char Phoneno[15]; void Register() void Show(); void CheckCode(char AC[]) return(strcmp(areacode,ac); ;

Write a function TRANSFER( ) in C++, that would copy all those records which are having areacode as DEL from PHONE.DAT to PHONBACK.DAT. Ques. 5 a) What is the difference between the SQL and SQL+ Give one example of each. 2 b) Consider the following tables FACULTY and COURSES. Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii) FACULTY F_ID Fname Lname Hire_date Salary 102 Amit Mishra 12-10-1998 12000 103 Nitin Vyas 24-12-1994 8000 104 Rakshit Soni 18-5-2001 14000 105 Rashmi Malhotra 11-9-2004 11000 106 Sulekha Srivastava 5-6-2006 10000 107 Niranjan Kumar 26-8-1996 16000 COURSES C_ID F_ID Cname Fees C21 102 Grid Computing 40000 C22 106 System Design 16000 C23 104 Computer Security 8000 C24 106 Human Biology 15000 C25 102 Computer Network 20000 C26 105 Visual Basic 6000 C27 107 Dreamweaver 4000 6 (i) To display details of those Faculties whose salary is greater than 12000. (ii) To display the details of courses whose fees is in the range of 15000 to 50000 (both values included). (iii) To increase the fees of all courses by 500. (iv) To display details of those courses which are taught by Sulekha. (v) Select COUNT(DISTINCT F_ID) from COURSES; (vi) Select MIN(Salary) from FACULTY,COURSES where COURSES.C_ID = FACULTY.F_ID; (vii) Select SUM(Fees) from courses Group By F_ID having count(*) > 1; (viii) Select Fname, Lname from FACULTY Where Lname like M% ;

Ques.6 (a) State and verify Complementary law in Boolean Algebra. 2 (b) Convert the following Boolean expression into its equivalent Canonical Product of Sum (POS) form. PQR + PQ R + PQ R + P Q R 2 (c) Obtain a simplified form for a Boolean expression 2 F (a, b, c, d) = ( 0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 13, 15) using Karnaugh Map. (d) Represent the Boolean expression A. (B+C) with the help of NOR gates only. 2 Ques.7 a) What is the difference between the Open Source Software and Proprietary Software?Give example for each. 2 b) Which of the following units measures the speed with which data can be transmitted from one node to another node of a network? Also, give the expansion of the suggested unit. 1 (i) KMph (ii) Mbps (iii) MGps c) Write the full forms of the following: 1 (i) UMTP (ii) EDGE d) Vidya for All is an educational NGO. It is setting up its new campus at Jaipur for its web based activities. The campus has four buildings as shown in diagram below: 4 Center to center distances between various buildings as per architectural drawings (in meters) is as follows: Main Building to Resource Building 120m Main Building to Training Building 40m Main Building to Accounts Building 135m Resource Building to Training Building 125m Resource Building to Accounts Building 45m Training Building to Accounts Building 110m Expected number of Computers in each building is as follows: Main Building 15 Resource Building 25 Training Building 250

(i) (ii) (iii) (iv) Accounts Building 10 Suggest a cable layout of connection between the buildings. Suggest the most suitable place( i.e building) to house the server of this NGO. Also provide a suitable reason for your suggestion. Suggest the placement of the following devices with justification: i. Repeater ii. Hub/Switch The NGO is planning to connect its International office situated in Delhi. Which out of following wired communication links, will you suggest for very high speed connectivity? i) Telephone Analog Line ii) Optical Fibre iii) Ethernet Cable (v) What are Script 1 (vi) What do you mean by Cyber Law?