COMPUTER SCIENCE

Similar documents
Question Bank Class XII Subject : Computer Science

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

Somany Vidyapeeth, Masani, Rewari

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

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

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

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

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

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

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION MARKING SCHEME. Code No. 083

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

(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

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

Model Sample Paper 2015

Sample Paper 2012 Class XII Subject Computer Science

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

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

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

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

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

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

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

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

Computer Science 2006 (Outside Delhi)

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

KendriyaVidyalayaSangathan Kolkata Region

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

CBSE 12th Computer Science Question Papers

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

COMPUTER SCIENCE 1998 (Delhi Board)

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

Computer Science 2006 (Delhi)

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

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

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

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

COMPUTER SCIENCE. Time allowed : 3 hours 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

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:

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

SAMPLE QUESTION PAPER CLASS-XII, SESSION: 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.

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

2016 COMPUTER SCIENCE

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

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

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

Sample Paper 2015 Class XII Subject Computer Science

INDIAN SCHOOL DARSAIT DEPARTMENT OF ICT

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


INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

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

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

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

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

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

CLASS-XI COMPUTER SCIENCE

Sample Paper 2015 Class XII Subject COMPUTER SCIENCE. Some Important Questions Networking

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

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

THE INDIAN COMMUNITY SCHOOL, KUWAIT

CBSE Sample Paper for Computer Science Class XII.

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

Computer Science 302 Fall 2018 (Practice for) Third Examination, November 14, 2018

Short Notes of CS201

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK CLASS-XII INFORMATICS PRACTICES

CS201 - Introduction to Programming Glossary By

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

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

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

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

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

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE- CLASS- XII. Marking scheme

KENDRIYA VIDYALAYA SANGATHAN

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.

Transcription:

Final 2012-13 COMPUTER SCIENCE - 083 (Theory) CLASS XII Time allowed : 3 hours Maximum marks: 70 Instructions : i) All the questions are compulsory. ii) Programming Language : C++. 1. a) What is the difference between call by reference & call by value method in a user defined function in C++? Explain it with suitable example. 2 b) Write the names of the header files, which is/are essentially required to execute the following functions: i) isdigit( ) ii) sin( ) 1 c) Rewrite the following program after removing all the syntactical errors (if any), underlining each correction. : include<iostream.h> typedef char[40] string; void main( ) string S= Australia ; L=strlen(S); cout<< String <<S<< has <<L<< Characters <<endl; }2 d) Give the output of the following program ( Assuming that all required header files are included in the program ) : #define i 5 class TEMP static int a; float b; TEMP( ) b=10; } void INTEMP( ) a++; b=a+10; } void OUTTEMP( ) cout<<a*i<<"$"<<b-3<<endl; } int TEMP::a=2; void main() TEMP ob[5]; for(int x=1;x<5;x++) ob[x].intemp( ); for(x=1;x<5;x++)

ob[x].outtemp( );} 3 e) Give the output of the following program ( Assuming that all required header files are included in the program ) : #include<iostream.h> #include<stdio.h> #include<conio.h> void TRANSFER(char *s1,char *s2) int n,j=0; for(int i=0;*(s1+i)!='\0';i++) n=*(s1+i); if(n%2==0) *(s2+j++)=*(s1+i); } } void main() char *p="charlesbabbage",q[80]; TRANSFER(p,q); cout<<q<<endl;} 2 f) Go through the following c++ code, find out the correct possible output(s) from the suggested output options i) to iv). Also write the highest value which can be assigned to variable G : #include<iostream.h> #include<stdlib.h> void main( ) randomize( ); int G,H=5; G=random(H)+30; for(int i=35;i>g;i--) cout<<i<< $ ; cout<<i; } i) 35$34$33$32$31$30$ ii) 35$34$33$32$31 iii) 30$31$32$33$34$35$36 iv) 35$34$33$32$31$30 2 2. a) What is constructor overloading? Support your answer with example. 2

b) Answer the questions (i) and (ii) after going through the following class : class BUS private: char Pname[30],TicktNo[20]; float Fare; BUS( ) //function 1 strcpy(pname, \0 ); strcpy(ticktno, \0 ); Fare=0; } void Details( ) //function 2 cout<<pname<<endl<<ticktno<<endl<<fare<<endl; } BUS(char * name, char *tno, float N); //function 3 BUS(BUS &F); // function 4 1. In OOP, what is function 3 referred to as? Also define this function. 2. Define function 4 and write about its purpose? c) Define a class TAXPAYER in C++ with following description : Private members : a. Name of type string b. PanNo of type string c. Taxabincm (Taxable income) of type float d. TotTax of type double e. A function CompTax( ) to calculate tax according to the following slab: Taxable Income Tax% Up to 160000 0 >160000 and <=300000 5 >300000 and <=500000 10 >500000 15 Public members : A parameterized constructor to initialize all the members A function INTAX( ) to enter data for the tax payer and call function CompTax( ) to assign TotTax. A function OUTAX( ) to allow user to view the content of all the data members. 4 d) Answer the questions (i) to (iv) based on the following : class Student

private : char Rollno[20], Sname[30]; protected : auto float marks; Student( ); void ENROL( ); void SHOW( ); class Graduate: public Student char Fname[30]; protected: unsigned int age; Graduate( ); void GENROL( ); void GSHOW( ); class Pgraduate: private Graduate char Mname[25]; signed int year; Pgraduate( ); void PGENROL( ); void PGSHOW( ); i) Mention the member names that are accessible by an object of P graduate class. ii) Name the data members which can be accessed by the objects of Graduate class. iii) Name the data members that can be accessed by the functions of P graduate class. How many bytes will be occupied by an object of class P graduate? 4 3. a) Write a function TRANSFERP( int ALL[ ], int N), to transfer all the prime numbers from a one dimensional array ALL[ ] to another one dimensional array PRIME[ ]. The resultant array PRIME[ ] must be displayed on screen. 3

b) An array PP[40]32] is stored in the memory along the row with each of the elements occupying 10 bytes. Find out the memory location for the element PP[18][22], if the element PP[7][10] is stored at memory location 5000. 3 c) Write functions to perform PUSH & POP operations in a dynamically allocated stack containing the objects of the following structure: 4 struct NODE char name[30]; float fees; NODE *next; d) Consider the class: class QUEUE private: int data[20],front,rear; QUEUE( ) front=rear=-1; } void INSQ(int d); //to insert an element into queue void DELQ( ); //to delete an element from the queue void PRINTQ( ); //to print the current status of queue Complete the definition of function DELQ( ) of above class. e) Evaluate the following postfix notation of expression: 30, 6, 4, +, /, 14, +, 4, * 4. a) Observe the program segment given below carefully and answer the question that follows: 2 class school private : char name[25]; int numstu; void inschool( ); void outschool( ); int retnumstu( ) return numstu; } void modify(school A)

fstream INOUT; INOUT.open( school.dat,ios::binary ios::indies::ate); school B; int recread=0, found=0; while(!found && INOUT.read((char*)&B,sizeof(B)) recread++; if(a.retnumstu( )= = B.retnumstu( )) //missing statement INOUT.write((char*)&A,sizeof(A)); Found=1; } else INOUT.write((char*)&B,sizeof(B)); } if(!found) cout<< \nrecord for modification does not exist ; INOUT.close( ); } If the function modify( ) is supposed to modify a record in file school.dat with the values of school A passed to its argument, write the appropriate statement for missing statement using seekp( ) or seekg( ), whichever needed, in the above code that would write the modified record at its proper place. 2 b) Write a function to count the number of vowels stored in a text file STRINGS.TXT. 1 c) Write a function to delete a record on the given model number for a TV from the binary file TV.DAT containing the objects of TV (as defined below) : 2 class TV long model; float size; char brand[30],comp[30]; long retmodel( ) return model; } void Input( ) cin>>model>>size; gets(brand); gets(comp); } void Output( ) cout<<model<<size<<brand<<comp<<endl; } 2

3 5. a) What do you understand by Primary Key and Alternate Key. Explain with example. Table : GAMES GCODE GAMENAME NUMBER PRZMONEY SCHDATE 101 Chess 5 2 25000 3 Jan 2010 102 Badminton 3 38000 12 Nov 2008 103 Carrom 6 18000 18 Mar 2010 105 Table Tennis 3 30000 09 Jan 2009 108 Basketball 5 40000 29 Apr 2009 (i) (ii) (iii) (iv) (v) (vi) b) Consider the following table GAMES and PLAYER. Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii). 2 to display the details of those games which are having prize money less than 30000 and organized before 2009. 1 to display the details of those games which are having prize money less than 30000 and organized before 2009.1 to display the name of PLAYERS in reverse alphabetical order. to increase the prize money by 1000 for those games which name starts with B. Insert an additional attribute namely DOB for entering date of birth in table PLAYER. SELECT GAMENAME,NAME FROM GAMES G,PLAYER P WHERE G.GCODE=P.GCODE; (vii) SELECT MIN(SCHDATE), MAX(PRZMONEY) FROM GAMES ; (viii) (ix) SELECT AVG(PRZMONEY) FROM GAMES WHERE SCHDATE< 01-JAN-2009 ; SELECT COUNT(DISTINCT NUMBER) FROM GAMES; 6. a) State and verify Absorption law in Boolean algebra. 3 b) Write the SOP form of a Boolean function G, which is represented in a truth table as follows : 2 A B C G 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 c) Write the equivalent Boolean Expression R for the following circuit diagram : 2

d) If F(P,Q,R,S) = π (0,2,4,5,6,7,8,10,11,12,14), obtain the simplified form using K-Map. 1 7. a) What is the difference between packet & message switching? 1 b) Expand the following terminologies : 1 i) PHP ii) SMSC c) What is infrared technology? 1 d) What do you mean by spam? 1 e) What is proprietary software?. 1 f) What is Web Hosting? 1 g) The Rangoli Creation has set up its new center at Patna for its office & web based activities. It has four blocks of buildings as shown in the diagram below: The distance between various blocks are : Block A to Block B 30 m Block B to Block C 110 m Block C to Block D 55 m Block A to Block D 260 m

Block B to Block D 195 m Block A to Block C 32 m Number of computers in each block are : Block A 25 Block B 55 Block C 125 Block D 15 (g1) Suggest the cable layout (with diagram) of connections among the blocks & technology. 1 (g2) Suggest the most suitable place to house the server, with a suitable reason. 1 (g3) Suggest the placement of the following devices with reasons : 1 i) Repeater ii) Switch/Hub (g4) The organization is planning to link its another office in the city located in the hilly region where cable connection is not feasible. Suggest an economic way to connect it with reasonably high speed. Justify your answer. 1