# Computer Science (Code 083) Sample Paper with Solution Set II

Size: px
Start display at page:

Transcription

1 Max. Marks: Computer Science (Code 083) Sample Paper with Solution Set II Duration: 3 Hours (a) What is the difference between Object Oriented Programming and Procedural Programming? 2 Object Oriented Programming Emphasis on Data Follows Bottom-Up approach in program design Data hiding feature prevents accidental change in data Features like data encapsulation, polymorphism, inheritance are present Procedural Programming Emphasis on doing things (functions) Follows Top-down approach in program design Presence of Global variables increase chances of accidental change in data Such features are not available (b) Write the names of the header files to which the following belong: 1 (i) frexp() (ii) isalnum() (i) math.h (ii) ctype.h (c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2 #include <iostream.h> struct Pixels int Color,Style; void ShowPoint(Pixels P) cout<<p.color,p.style<<endl; void main() Pixels Point1=(5,3); ShowPoint(Point1); Pixels Point2=Point1; Color.Point1+=2; ShowPoint(Point2); #include <iostream.h> struct Pixels int Color,Style;; void ShowPoint(Pixels P) cout<<p.color<<p.style<<endl; void main() Pixels Point1=5,3; ShowPoint(Point1); Pixels Point2=Point1; Point1.Color+=2; ShowPoint(Point2);

2 (d) Find the output of the following program: 3 #include <iostream.h> void Changethecontent(int Arr[], int Count) for (int C=1;C<Count;C++) Arr[C-1]+=Arr[C]; void main() int A[]=3,4,5,B[]=10,20,30,40,C[]=900,1200; Changethecontent(A,3); Changethecontent(B,4); Changethecontent(C,2); for (int L=0;L<3;L++) cout<<a[l]<< # ; cout<<endl; for (L=0;L<4;L++) cout<<b[l] << # ; cout<<endl; for (L=0;L<2;L++) cout<<c[l] << # ; 7#9#5# 30#50#70#40# 2100#1200# (e) Find the output of the following program: 2 #include <iostream.h> struct Game char Magic[20];int Score; ; void main() Game M= Tiger,500; char *Choice; Choice=M.Magic; Choice[4]= P ; Choice[2]= L ; M.Score+=50; cout<<m.magic<<m.score<<endl; Game N=M; N.Magic[0]= A ;N.Magic[3]= J ; N.Score-=120; cout<<n.magic<<n.score<<endl; TiLeP550 AiLJP430 (f) In the following program, if the value of N given by the user is 20, what maximum and minimum values the program could possibly display? 2 #include <iostream.h> #include <stdlib.h> void main()

3 int N,Guessnum; randomize(); cin>>n; Guessnum=random(N-10)+10; cout<<guessnum<<endl; Maximum Value: 19 Minimum Value: (a) What do you understand by Polymorphism? Give a suitable example of the same. 2 Polymorphism: It is a method of using the same operator or function (method) to work using different set of inputs. Function overloading is one of the example of polymorphism, where more than one function carrying same name behave differently with different set of parameters passed to them. void Display() cout<< Hello! <<endl; void Display(int N) cout<<2*n+5<<endl; (b) Answer the questions (i) and (ii) after going through the following program: 2 class Match int Time; Match() //Function 1 Time=0; cout<< Match commences <<end1; void Details() //Function 2 cout<< Inter Section Basketball Match <<end1; ; Match(int Duration) //Function 3 Time=Duration; cout<< Another Match begins now <<end1; Match(Match &M) //Function 4 Time=M.Duration; cout<< Like Previous Match <<end1;

4 i) Which category of constructor - Function 4 belongs to and what is the purpose of using it? Copy Constructor, it is invoked when an object is created and initialised with values of an already existing object. ii) Write statements that would call the member Functions 1 and 3 Match M1; //for Function 1 Match M2(90); //for Function 3 (b) Define a class in C++ with following description: 4 Private Members A data member Flight number of type integer A data member Destination of type string A data member Distance of type float A data member Fuel of type float A member function CALFUEL() to calculate the value of Fuel as per the following criteria Distance Fuel <= more than 1000 and <= more than Public Members A function FEEDINFO() to allow user to enter values for Flight Number, Destination, Distance & call function CALFUEL() to calculate the quantity of Fuel A function SHOWINFO() to allow user to view the content of all the data members class FLIGHT int Fno; char Destination[20]; float Distance, Fuel; void CALFUEL(); void FEEDINFO(); void SHOWINFO(); ; void FLIGHT::CALFUEL() if (Distance<1000) Fuel=500; else if (Distance<2000) Fuel=1100; else Fuel=2200; void FLIGHT::FEEDINFO() cout<< Flight No : ;cin>>fno;

5 cout<< Destination : ;gets(destination); cout<< Distance : ;cin>>distance; CALFUEL(); void FLIGHT::SHOWINFO() cout<< Flight No : <<Fno<<endl; cout<< Destination : <<Destination<<endl; cout<< Distance : <<Distance<<endl;; cout<< Fuel : <<Fuel<<endl;; (c) Answer the questions (i) to (iv) based on the following: 4 class CUSTOMER int Cust_no; char Cust_Name[20]; protected: void Register(); CUSTOMER(); void Status(); ; class SALESMAN int Salesman_no; char Salesman_Name[20]; protected: float Salary; SALESMAN(); void Enter(); void Show(); ; class SHOP : private CUSTOMER, public SALESMAN char Voucher_No[10]; char Sales_Date[8]; SHOP(); void Sales_Entry(); void Sales_Detail(); ; (i) Write the names of data members which are accessible from objects belonging to class CUSTOMER. (ii) Write the names of all the member functions which are accessible from objects belonging to class SALESMAN. (iii) Write the names of all the members which are accessible from member functions of class SHOP. (iv) How many bytes will be required by an object belonging to class SHOP? (i) None of data members are accessible from objects belonging to class CUSTOMER. (ii) Enter(), Show() (iii) Data members: Voucher_No, Sales_Date, Salary Member function: Sales_Entry(), Sales_Details(), Enter(), Show(), Register(), Status() (iv) 66

6 3. (a) Write a function in C++ to combine the contents of two equi-sized arrays A and B by computing their corresponding elements with the formula 2*A[i]+3*B[i]; where value i varies from 0 to N-1 and transfer the resultant content in the third same sized array. 4 void AddNSave(int A[],int B[],int C[],int N) for (int i=0;i<n;i++) C[i]=2*A[i]+3*B[i]; (b) An array P[20][30] is stored in the memory along the column with each of the element occupying 4 bytes, find out the memory location for the element P[5][15], if an element P[2][20] is stored at the memory location Given, W=4 N=20 M=30 Loc(P[2][20])=5000 Column Major Formula: Loc(P[I][J]) =Base(P)+W*(N*J+I) Loc(P[2][20]) =Base(P)+4*(20*20+2) 5000 =Base(P)+4*(400+2) Base(P) = Base(P) =4196 Loc(P[5][15]) =4196+4*(20*15+5) =4196+4*(300+5) = =5416 (c) Write a function in C++ to perform Push operation on a dynamically allocated Stack containing real numbers. 4 struct NODE float Data; NODE *Link; ; class STACK NODE *Top; STACK(); void Push(); void Pop(); ; void STACK::Push() NODE *Temp; Temp=new NODE; cin>>temp->data; Temp->Link=Top; Top=Temp;

7 (d) Write a function in C++ to find sum of rows from a two dimensional array. 2 void MatAdd(int M[][4],int N,int M) for (int R=0;R<N;R++) int SumR=0; for (int C=0;C<M;C++) SumR+=M[C][R]; cout<<sumr<<endl; (e) Evaluate the following postfix notation of expression: 2,, AND,,, NOT, OR, AND Step 1: Push Step 2: Push Step 3: AND Step 4: Push Pop Op2= Pop Op1= Op2= Push Step 5: Push Step 6: NOT Pop Op2= Push Step 7: OR Push Pop Pop Op2= Op1= Op2= Step 8: AND Push

8 Step 9: Pop Pop Pop Op2= Op1= Op2= Result 4. (a) Observe the program segment given below carefully and fill the blanks marked as Statement 1 and Statement 2 using seekg() and tellg() functions for performing the required task. 1 #include <fstream.h> class Employee int Eno;char Ename[20]; //Function to count the total number of records int Countrec(); ; int Item::Countrec() fstream File; File.open( EMP.DAT,ios::binary ios::in); //Statement 1 int Bytes = //Statement 2 int Count = Bytes / sizeof(item); File.close(); return Count; File.seekg(0,ios::end); //Statement 1 File.tellg(); //Statement 2 (b) Write a function in C++ to count the number of alphabets present in a text file NOTES.TXT. 2 void CountAlphabet() ifstream FIL( NOTES>TXT ); int CALPHA=0; char CH=FIL.get(); while (!FIL.eof()) if (isalpha(ch)) CALPHA++; CH=FIL.get(); cout<< No. of Alphabets: <<CALPHA<<endl;

9 (b) Write a function in C++ to add new objects at the bottom of a binary file STUDENT.DAT, assuming the binary file is containing the objects of the following class. 3 class STUD int Rno; char Name[20]; void Enter()cin>>Rno;gets(Name); void Display()cout<<Rno<<Name<<endl; ; void Addnew() fstream FIL; FIL.open( STUDENT.DAT,ios::binary ios::app); STUD S; char CH; do S.Enter(); FIL.write((char*)&S,sizeof(S)); cout<< More(Y/N)? ;cin>>ch; while(ch!= Y ); FIL.close(); 5. (a) What do you understand by Primary Key & Candidate Keys? 2 An attribute or set attributes which are used to identify a tuple uniquely is known as Primary Key. If a table has more than one such attributes which identify a tuple uniquely than all such attributes are known as Candidate Keys. (b) Consider the following tables GAMES and PLAYER. Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii) 6 Table: GAMES GCode GameName Number PrizeMoney ScheduleDate 101 Carom Board Jan Badminton Dec Table Tennis Feb Chess Jan Lawn Tennis Mar-2004 Table: PLAYER PCode Name Gcode 1 Nabi Ahmad Ravi Sahai Jatin Nazneen 103 (i) To display the name of all Games with their Gcodes

10 SELECT GameName,Gcode FROM GAMES; (ii) To display details of those games which are having PrizeMoney more than SELECT * FROM GAMES WHERE PrizeMoney>7000 (iii) To display the content of the GAMES table in ascending order of ScheduleDate. SELECT * FROM GAMES ORDER BY ScheduleDate; (iv) To display sum of PrizeMoney for each of the Number of participation groupings (as shown in column Number 2 or 4) SELECT SUM(PrizeMoney),Number FROM GAMES GROUP BY Number; (v) SELECT COUNT(DISTINCT Number) FROM GAMES; 2 (vi)select MAX(ScheduleDate),MIN(ScheduleDate) FROM GAMES; 19-Mar Dec-2003 (vii) SELECT SUM(PrizeMoney) FROM GAMES; (viii) SELECT DISTINCT Gcode FROM PLAYER; (a) State and algebraically verify Absorbtion Laws. 2 X+X.Y = X L.H.S = X+X.Y = X.1+X.Y = X.(1+Y) = X.1 = X = R.H.S X+X.Y = X+Y L.H.S. = X+X.Y = (X+X ).(X+Y) = 1.(X+Y) = X+Y = R.H.S

11 (b) Write the equivalent Boolean Expression for the following Logic Circuit 2 U V F(U,V)=U.V+U.V (c) Write the SOP form of a Boolean function G, which is represented in a truth table as follows: 1 P Q R G G(P,Q,R) = P.Q.R +P.Q.R +P.Q.R +P.Q.R (d) Reduce the following Boolean Expression using K-Map: 3 F(U,V,W,Z)=Π(0,1,2,4,5,6,8,10) W Z W Z WZ 1 WZ F(U,V,W,Z)=UV+WZ+UZ U V U V UV UV a) Define the term Bandwidth. Give unit of Bandwidth. 1 Bandwidth is the capability of a medium to transmit an amount of information over a distance. Bandwidth of a medium is generally measured in Bytes per second (bps) or more commonly in kilobytes per second (kbps) b) Expand the following terminologies: 1 (i) HTML (ii) XML (i) Hypertext Markup Language

12 (ii) Extended Markup Language c) Define the term firewall. 1 Firewall is a feature used for Network Security. In a Network there is always danger of information leaking out or leaking in. Firewall is a feature which forces all information entering or leaving the network to pass through a check to make sure that there is no unauthorized usage of the network. d) What is the importance of URL in networking? 1 URL stands for Uniform Resource Locator. Each page that is created for Web browsing is assigned a URL that effectively serves as the page s worldwide name or address. URL s have three parts: the protocol, the DNS name of the machine on which the page is located and a local name uniquely indicating the specific page(generally the filename). e) Ravya Industries has set up its new center at Kaka Nagar for its office and web based activities. The company compound has 4 buildings as shown in the diagram below: Raj Fazz Harsh Jazz Center to center distances between various buildings is as follows: Harsh to Raj Raz to Fazz Fazz to Jazz Jazz to Harsh Harsh to Fazz Raj to Jazz 50 m 60 m 25 m 170 m 125 m 90 m Number of Computers in each of the buildings is follows: Harsh 15 Raj 150 Fazz 15 Jazz Bulding 25 e1) Suggest a cable layout of connections between the buildings. 1

13 Layout 1: Raj Fazz Harsh Jazz Layout 2: Since the distance between Fazz and Jazz is quite short Raj Fazz Harsh Jazz e2) Suggest the most suitable place (i.e. building) to house the server of this organisation with a suitable reason. 1 The most suitable place / block to house the server of this organisation would be Raj, as this block contains the maximum number of computers, thus decreasing the cabling cost for most of the computers as well as increasing the efficiency of the maximum computers in the network. e3) Suggest the placement of the following devices with justification: 1 (i) Internet Connecting Device/Modem (ii) Switch (i) Raj (ii) In both the layouts, a hub/switch each would be needed in all the buildings, to interconnect the group of cables from the different computers in each block

14 e4) The organisation is planning to link its sale counter situated in various parts of the same city, which type of network out of LAN, MAN or WAN will be formed? Justify your answer. 1 The type of network that shall be formed to link the sale counters situated in various parts of the same city would be a MAN, because MAN (Metropolitan Area Networks) are the networks that link computer facilities within a city.

### COMPUTER SCIENCE Sample Paper I

COMPUTER SCIENCE Sample Paper I Time allowed: 3 hours Max. Marks: 70 Instructions: (i) All the questions are compulsory. (ii) Programming Language: C++ 1. (a) What is the difference between Object Oriented

### Computer Science (Code 083) Sample Paper with Solution Set II

Max. Marks: 70 1. Computer Science (Code 083) Sample Paper with Solution Set II Duration: 3 Hours (a) What is the difference between Object Oriented Programming and Procedural Programming? 2 Object Oriented

### Kendriya Vidyalaya Sangathan MODEL QUESTION PAPER - 2 Class-XII Subject: Computer Science (083) Time 3 hrs MM 70

Kendriya Vidyalaya Sangathan MODEL QUESTION PAPER - Class-XII Subject: Computer Science (083) Time 3 hrs MM 70 S.No. UNIT VSA SA I SA II LA TOTAL ( Mark) ( Marks) (3 Marks) (4 Marks) Review of C++ covered

### COMPUTER SCIENCE (Theory) - Class XII Sample Question Paper II Subject Code - 083

COMPUTER SCIENCE (Theory) - Class XII Sample Question Paper II Subject Code - 083 TIME : 3 Hrs MM : 70 No. Questions Marks 1. (a) What is the difference between Actual Parameter and Formal Parameters?

### COMPUTER SCIENCE (Theory) - Class XII Marking Scheme

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme 1 a) Call by value l It is a used to create a temporary copy of data coming from actual parameter.the changes done in the function in the formal parameter

### Sample Paper I Class XII

Sample Paper I Class XII. (a) Define default parameter and constant parameter of a C++ function with the help of suitable examples. (b) Name the header files which include the following C++ functions :

### Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory) Time Allowed: 3hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C+ + Ques 1. (a)what is the difference

### ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

ASSIGNMENT CLASS : XII (2015-16) COMPUTER SCIENCE Short answer typequestions: 1.(a)What is the difference between logical error and runtime error? Give suitable example for the same. (b) What is the difference

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

1 CLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70 General Instructions- (i) All questions are compulsory (ii) Programming Language: C++ 1. (a) Differentiate between call-by-value and

### CLASS XII GUESS PAPER COMPUTER SCENCE (083)

CLASS XII GUESS PAPER COMPUTER SCENCE (083) TIME: 3 hours MARKS: 70 Q1. Please check that this question paper contains 11 printed pages. Code-snippets in questions may be printed wrong rectify the errors

### 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

KE DRIYA VIDYALAYA SA GATHA,CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO 2008-09. COMPUTER SCIE CE CLASS- XII Time allowed : 3 hours Maximum Marks : 70 1. (a) Explain the difference between an actual parameter

### COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII TIME: 3 HOURS MAX.MARK: 70 General Instructions- (i) All questions are compulsory (ii) Programming Language: C++ 1 (a) When a function is overloaded,

### KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

CLASS- XII MAX MARKS-70 KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION 01-15 SUBJECT COMPUTER SCIENCE TIME- HOURS Q1 a) What is the Difference between Global Variable and Local Variable?

### 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:

SECOND PREBOARD EXAMINATION (2017 18) CLASS: XII Subject: COMPUTER SCIENCE Date: 24.1.2018 Time Allowed: 3 Hours Maximum Marks: 70 General instructions: (1) All questions are compulsory. (2) Marks are

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

Roll No. CBSE GUESS PAPER Computer Sc. XII(083)/2011-12 Time Allowed 3 Hours Maximum Marks- 70 General Instructions: (i) All questions are compulsory. (ii) The paper contains 7 questions. (iii) Programming

### KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION CLASS:XII SUB:COMPUTER SCIENCE Code No. 083 Instructions: (i) All questions are compulsory. (ii) Programming language: C++

### COMPUTER SCIENCE

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

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

COMPUTER SCIENCE-2010 Time allowed : 3hours] [Maximum Marks :70 Instructions (i) (ii) All questions are compulsory Programming Language : C++ 1. (a) What is the difference between automatic type conversion

### Question Bank Class XII Subject : Computer Science

Question Bank Class XII Subject : Computer Science Q1. What is the difference between call by reference & call by value method in a user defined function in C++? Explain it with suitable example. Q.2.Write

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

SPLIT-UP SYLLABUS ----CHENNAI REGION COMPUTER SCIENCE (Code: 083) Class-XII Academic Session 2008-09 Sr.No. Duration Number of Working Days From To Topic to be Covered Nos. of Periods required CAL/TAL

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

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

Unit-III DATABASES MANAGEMENT SYSTEM AND SQL DBMS & Structured Query Language Chapter: 07 Basic Database concepts Data : Raw facts and figures which are useful to an organization. We cannot take decisions

### DELHI PUBLIC SCHOOL BOKARO STEEL CITY

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION 2015-2016 Class: XII Subject : Computer Science Assignment No. 3 Question 1: (a) What is the difference between Call by Value and Call by

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

K.V.NO.3 AFS CHAKERI AUTUMN BREAK HOME WORK 2017-18 CLASS-XII 1. a) Differentiate between an identifier and keywords. b) Name the header files, to which following inbuilt function belong to: a) abs( )

### Home Assignment for Class XII(Summer Vacation) Subject: CS Based on Library Functions ( 1 Mark)

Home Assignment for Class XII(Summer Vacation) Subject: CS Based on Library Functions ( 1 Mark) Q1. Write the names of the header files to which the following belong: (i) isdigit() (vi) setw() (ii) strcmp()

### DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION 2017 2018 Class: XII Subject : Computer Science Assignment No. 3 1. a) What is this pointer? Explain with example. b) Name the header file

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

Sample Paper 2012 Class XII Subject Computer Science Time: 3 Hrs. M.M. 70 General instructions: 1) All questions are compulsory. 2) Read all the questions carefully. 3) Programming language C++. Q.1(a)

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

PRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION (2018-19) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS MAXIMUM MARKS: 70 General Instructions 1. This question paper contains 7 questions. 2. SECTION

### Model Sample Paper 2015

Time: 3 Hours MM: 70 Model Sample Paper 2015 Class XII Computer Science (083) Instructions: (i) (ii) All questions are compulsory. Programming Language C++. 1. (a) What is the difference between Actual

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

Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70 INSTRUCTIONS: All the questions are compulsory. i. Presentation of answers should be neat and to the point. iii. Write down the serial

### (b) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2

HALF-YEARLY EXAMINATION-2017-2018 COMPUTER SCIENCEMARKING SCHEME CLASS XII 1. (a) Write any two differences between procedural programming and object oriented programming. 2 Ans. Procedural oriented programming

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

JB Academy, Faizabad Half Yearly Examination - 2017-18 Subject: Computer Science (083) Class XII Time: 3 Hours Max. Marks: 70 Instructions: i) All questions are compulsory and so attempt all. ii) Programming

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

Sample Paper, 2012-13 Subject: Computer Science Class 12 th Time Allowed : 3 Hr. M.M.: 70 General Instruction 1. Please check this question paper contains 10 printed pages. 2. Code number given on the

### Sample Paper 2015 Class XII Subject Computer Science

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

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

BHARATIYA VIDYA BHAVAN S V.M.PUBLIC SCHOOL, VADODARA Class : XII SAMPLE PAPER Max Marks : 70 Subject : Computer Science Time Allotted : 3 hrs General Instructions : Programming Language : C++. All questions

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

Guru Harkrishan Public School, Karol Bagh Pre Mock 2014-15 Class XII Sub: COMPUTER SCIENCE Time Allowed :3 hrs M.M. 70 Please check that this question paper contains 9 printed pages. Please check that

### UNIT 5 : Communication and Network Concepts : 1 OR 2 Mark Questions

UNIT 5 : Communication and Network Concepts : 1 OR Mark Questions 1. Differentiate between Internet and Intranet.. Expand the following (i) CDMA (ii) URL 3. What is a Bandwidth? 4. Expand the following

If the function modify( ) is supposed to change the mark of a student having student_no y in the file student.dat, write the missing statements to modify the student record. 10. Observe the program segment

### Sample Paper, 2015 Subject: Computer Science Class 12 th

Sample Paper, 2015 Subject: Computer Science Class 12 th Time: 3 Hours Max. Marks: 70 Instructions: i) All questions are compulsory and so attempt all. ii) Programming language: C++. iii) Please check

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

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE QUESTION BANK FOR BOARD EXAMINATION 016-17 SUBJECT COMPUTER SCIENCE (Code: 083) Q1. Answer the following questions: a) Name the header file(s) that shall be

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

SAMPLE PAPER Class - XII SUBJECT COMPUTER SCIENCE Subject: Computer Sc. Class: XII Time: 3 Hours MM: 70 1. (a) Differentiate between a global variable and a local variable. (b) Name the Header file(s)

### COMPUTER SCIENCE 1998 (Delhi Board)

COMPUTER SCIENCE 1998 (Delhi Board) Time allowed: 3 hours Max. Marks: 70 Instructions: (i) All the questions are compulsory. (ii) Programming Language: C++ QUESTION l. (a) Define the following terms: (i)

### KENDRIYA VIDYALAYA GOMTINAGAR, LUCKNOW (SHIFT-II) DAY-WISE ASSIGNMENT FOR WINTER BREAK CLASS XII SUBJECT : COMPUTER SCIENCE

KENDRIYA VIDYALAYA GOMTINAGAR, LUCKNOW (SHIFT-II) DAY-WISE ASSIGNMENT FOR WINTER BREAK 2015-16 CLASS XII SUBJECT : COMPUTER SCIENCE Instructions : Revise the topic (if required) and then solve the related

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

KENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70 GENERAL INSTRUCTIONS : 1. ALL QUESTIONS ARE COMPULSORY. 2. PROGRAMMING LANGUAGE : C++ Q1. (a) Out of

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

KUWAIT SAHODAYA EXAMINATION FIRST TERM 08-09 SUBJECT : COMPUTER SCIENCE (08) : CLASS - XII SET - Time : Hours MM=70 Instructions- (Based on the model of CBSE Exams). a) Find and write the output of the

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

SAMPLE PAPER 215 SUB - COMPUTER SCIENCE - (Theory) CLASS XII Time allowed: 3 hours Maximum marks: 7 Instructions : i) All the questions are compulsory. ii) Programming Language (for Q. 1-4): C++ iii) Write

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

KENDRIYA VIDYALAYA SANGATHAN Regional Office Delhi Split-up Syllabus Session-2017-18 Subject:-Computer Science Subject Code:-083 COMPUTER SCIENCE (083)-Theory CLASS XII Unit wise Weightage of Marks Duration:3

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

Autumn Break 2017 Exam Oriented Assignment Class-XII B, Computer Science S.No. 1 Name of Chapter/Topic CLASSES AND OBJECTS HOT Questions 1. What do you understand by member function? 2. Differentiate between

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

Code No. 91 Please check that this question paper contains 11 printed pages. Code number given on the right hand side of the question paper should be written on the title page of the answer-book by the

### COMPUTER SCIENCE (Theory) - Class XII Marking Scheme Sample Question Paper I Subject Code - 083

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme Sample Question Paper I Subject Code - 083 TIME : 3 Hrs MM : 100 No. Answers Marks 1. (a) Global Variable Local Variable 2 l It is a variable which

### 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

I Mid Semester May 01 : Class XII : Computer Science Max Mark 50 : Time Hrs 1. a) What is macro in C++? Give example b) Give the Header file for the following functions:- i) gets ( ) ii) tolower( ) 1 c)

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

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION 2014-15 FOR CLASS XII SUBJECT: COMPUTER SCIENCE SET-I F.M. 70 General Instructions: Programming Language C++ All Questions are

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

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE 2015-16 CLASS XII MONTH PORTION TO BE COVERED THEORY PRACTICAL April-May 2015 June-July 2015 Aug-2015 REVIEW: C++ covered

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

PRINCE PUBLIC SCHOOL HALF YEARLY EXAMINATION (2018-19) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS MAXIMUM MARKS: 70 General Instructions 1. This question paper conations 4 questions. 2.

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

KENDRIYA VIDYALAYA NO.1 SAGAR XII-COMPUTER SCIENCE (2018-19) HOMEWORK SUMMER VACATION 1.(a) Differentiate between Actual and Formal parameters. Also give suitable C++ code to illustrate both. (b) What

### KENDRIYA VIDYALAYA SANGATHAN

KENDRIYA VIDYALAYA SANGATHAN JAMMU REGION CLASS: XII SESSION: - 17 SPLIT-UP SYLLABUS COMPUTER SCIENCE MONTH PORTION TO BE COVERED THEORY PRACTICAL April-May UNIT-1 REVIEW: C++ covered In Class - XI, Object

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

SAMPLE PAPER-2015 CLASS-XII COMPUTER SCIENCE Sample paper-i Time allowed: 3 hours Maximum Marks: 70 Name : Roll No.: General Instruction 1. Please check that this question paper contains 7 questions. 2.

### KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION CLASS XII COMMON PREBOARD EXAMINATION 05-06 COMPUTER SCIENCE (08) Time: hours Max. Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming

### (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

(1)Rewrite the following program after removing the syntactical error(s), if any Underline each correction, struct TV char Manu_name[20]; char Tv_Type; int Price = 17000; New Tv; gets(manu_name); gets(tv_type);

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION 2014-15 CLASS:XII - (COMPUTER SCIENCE ) MaxMarks:70 Time Allowed :3 Hours Instructions: (i) All questions are compulsory.

### CBSE 12th Computer Science Question Papers

CBSE 12th Computer Science Question Papers General Instructions: a) This paper consist question from 1 to 7. b) Marks are mentioned to each questions for your convenience. c) The given paper is of total

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

KENDRIYA VIDYALAYA SANGATHAN MODEL QUESTION PAPER-5 BLUE PRINT CLASSS XII COMPUTER SCIENCE (83) TIME: 3: Hrs. MAX. MARKS: 7 S.No. UNIT VS A (1 TOTAL SA I (2 Marks) SA II (3 Marks) L A (4 Marks) Mark) Review

### KENDRIYA VIDYALAYA SANGATHAN

KENDRIYA VIDYALAYA SANGATHAN JAMMU REGION Winter Stations CLASS: XII SESSION: 2016-17 SPLIT-UP SYLLABUS Computer Science MONTH PORTION TO BE COVERED THEORY PRACTICAL April May-June 2016 UNIT-1 REVIEW:

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

KENDRIYA VIDYALAYA SANGATHAN, KOLKATA REGION SPLIT-UP SYLLABUS (2017-) CLASS XII : COMPUTER SCIENCE (THEORY) MONTH PORTION TO BE COVERED THEORY PRACTICAL APRIL- MAY Unit 1 Object Oriented Programming in

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

SPLIT UP SYLLABUS SUBJECT : COMPUTER SCIENCE (083) SESSION:2014-15 Class XII (Theory) - C++ Duration: 3 hours Total Marks: 70 Unit No. Unit Name MARKS 1 OBJECT ORIENTED PROGRAMMING IN C++. 2. DATA STRUCTURE

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

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

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

r--- - -"" -.!':,c', I Series 50S I Code No. 91. I I I I I I I I Candidates must write the Code on Roll No. I I I I I I I I the title page of the answer-book.. Please check that this question paper contains

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

KENDRIYA VIDAYALAYA SANGATHAN ERNAKULAM REGION PREBOARD EXAMINATION 208-9 CLASS :XII MAX. MARKS : 70 SUBJECT : COMPUTER SCIENCE Instructions: TIME :3 HRS (i) Please check that this question paper contains

### BRAIN INTERNATIONAL SCHOOL. Computer Science Assignment CLASS XII OCTOBER 2018 Chapter-7. Data File Handling in C++ Text Files

BRAIN INTERNATIONAL SCHOOL Computer Science Assignment CLASS XII OCTOBER 2018 Chapter-7. Data File Handling in C++ Text Files Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Write a C++

### (Structured Query Language)

KENDRIYA VIDYALAYA HALDWANI 2 ND SHIFT CLASS XII SESSION 2016-17 DATABASE CONCEPTS, SQL ISSUED DATE: 12.05.2016 SUBMITTED DATE: 24.06.2016 ==============================================================================

### Computer Science 2006 (Outside Delhi)

Computer Science 6 (Outside Delhi) General Instructions: Q... All questions are compulsory.. Programming Language: C++ a. Name the header file to which the following belong: () i. pow( ) ii. random( )

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

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK 18-19 CLASS-XII INFORMATICS PRACTICES 1. Arrange the following data types in increasing order of their size : byte, int, float, double, char, boolean.

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

CBSE Sample Paper 2015 Computer Science C++ Class XII Time 3hrs M.M 70 Q1. A) Write short notes on typedef and #define. 2 Q1B) Give the Header files to run the following code. 1 void main() cout

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

ITL Public School Pre-Board(04-5) Date:..04 Class:XII Computer Science (08) Time: hrs M. M: 70 General Instructions:. Programming Language C++. Try to give Examples a) What is the difference between Actual

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

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO 2008-09 COMPUTER SCIE CE CLASS: XII Time : 3 Hrs. Max. Marks : 70 Instructions : (i) All questions are compulsory. (ii) Programming Language

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION REVISION Examination 01 COMPUTER SCIENCE (08) CLASS XII Time Allowed: Hours Maximum Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming

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

Series OSR Code No. 91 Roll No. Candidates must write the Code on the title page of the answer-book. Please check that this question paper contains 16 printed pages. Code number given on the right hand

### INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

Roll Number SET 1 INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION COMPUTER SCIENCE CLASS: XII Sub. Code: 08 Time Allotted: Hr 09.05.018 Max. Marks: 70 GENERAL INSTRUCTIONS: 1. All questions are compulsory..

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

DELHI PUBLIC SCHOOL, RANCHI Pre Board-II Examination 2018 Computer Science (083) Time: 3 Hours Class: XII Maximum Marks: 70 General Instructions: There are 08 Number of Questions, all in total. All Questions

### Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

Sample Paper - 2013 Class XII SUBJECT : COMPUTER SCIENCE FIRST SEMESTER EXAMINATION Instructions: (i) All questions are compulsory. (ii) (ii) Programming Language : C++ 1. (a) Name the header files that

### Subject - Computer Science (Code-083)

1 ST PRE BOARD EXAMINATION F CLASS XII -2015-16 Subject - Computer Science (Code-083) Time Allowed: 3hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C+ + 1. a)

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

Mock Test Paper-3 Computer Science Mock Test Paper-3 11 Duration : 3hrs Max Marks : 70 1. (a) How does a class inforce data hiding? 2 (b) Name the header files to which the following belong- 1 (c) Rewrite

### KENDRIYA VIDYALAYA SANGATHAN DEHRADUN REGION 1 st Pre-Board Examination, Class XII Computer Science(083) Time: 3 Hours Max.

KENDRIYA VIDYALAYA SANGATHAN DEHRADUN REGION st Pre-Board Examination, 05-6 Class XII Computer Science(08) Time: Hours Max. Marks: 70 (Marking Scheme) Q.No Answer Marks ) a. Post increment operator is

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

Sample Paper -205 Sub:Computer Science Class XII Time: 3Hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C++.(a)Give the difference between the type casting and

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

KENDRIYA VIDYALAYA SANGATHAN (KOLKATA REGION) Second Pre Board Examination (2014-15) COMPUTER SCIENCE (Theory) Class-XII Marking Scheme Ques. 1 a) [1] Automatic Type Conversion Type casting It is also

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

Sample Paper Class XII Subject Computer Science Please check that this question paper contains 7 printed pages. Code number given on the right hand side of the question paper should be written on the title

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

ATOMIC ENERGY CENTRAL SCHOOL NO- RAWATBHATA Half Yearly Examination 05 Model Paper Class XII Subject Computer Science Time Allowed: hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii)

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

(1)Given a binary file PHONE.DAT, containing records of the following structure type class Phonlist char Name[20]; char Address[30]; char AreaCode[5]; char PhoneNo[15]; Public: void Register(); void Show();

### General Instructions:

Time allowed: 3 hours CLASS: XII COMPUTER SCIENCE M.Marks: 70 2014-15 General Instructions: Check that this question paper contains 12 printed pages. Check that this question paper contains 7 questions

### COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION Q.1. (i) Name the header file to which the following belong: (a) gets( ) (b) open( ) (ii) (iv) (v) What is copy constructor? What do you understand

### Constructor & Classes Questions

(1)Answer the questions (i) and (ii) after going through the following program: class Match int Time; Match() //Function 1 Time=0; cout

### KendriyaVidyalayaSangathan Kolkata Region

KendriyaVidyalayaSangathan Kolkata Region Third Pre-Board Examination : 204-5 Please check that this question paper contains 7 questions. Please write down the Serial Number of the question before attempting

### HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

HOLIDAYS HOMEWORK 2017-18 CLASS : XII Subject : Computer Science Note : Attempt the following questions in a separate register and make yourself prepared to conquer the world. Chapter- 1 : C++ Revision

Unit-V Network and Communication Technology Network and Communication Technology Chapter: 09 A Network is a collection of interconnected autonomous computers. A Computer which is a part of a network is

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

Kendriya Vidyalaya Sangathan Model Question Paper-1 Class XII Subject - Computer Science (083) Max. Marks: 70 Blue Print S. UNIT VSA SA I SA II LA TOTAL No. (1 Mark) (2 Marks) (3 Marks) (4 Marks) 1 Review

Unit-II Data Structure Arrays, Stacks, Queues And Linked List Chapter: 06 In Computer Science, a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.

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

Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 5 min Max. marks : 7 I. Answer ALL the questions x =. Expand the term DDRRAM. Double Data Rate Random Access Memory 2. Write the standard symbol for

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

Roll No. Series SHC Code No. Please check that this question paper contains 11 printed pages. Code number given on the right hand side of the question paper should be written on the title page of the answer-book