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

Similar documents
Sample Paper 2012 Class XII Subject Computer Science

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

Sample Paper 2015 Class XII- Comm Subject INFORMATICS PRACTICES. Q1 a) Rewrite the code using While Loop? 2

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

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 ALIGANJ SHIFT-II HOLIDAY HOME WORK XII COMPUTER SCIENCE ARRAY AND STRUCTURES

INTERNATIONAL INDIAN SCHOOL, RIYADH. Ch 1 C++ Revision tour

COMPUTER SCIENCE 1998 (Delhi Board)

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

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

2016 COMPUTER SCIENCE

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

1. FIBONACCI SERIES. Write a C++ program to generate the Fibonacci for n terms. To write a C++ program to generate the Fibonacci for n terms.

Computer Science 2006 (Outside Delhi)

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

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

COMMON PRE-BOARD EXAMINATION INFORMATICS PRACTICES. Time Allowed: 3 hours Maximum Marks: 70 MARKING SCHEME

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

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

Subject: Fundamental of Computer Programming 2068

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

Guru Gobind Singh Public School Sector: V/B, Bokaro Steel City Assignment (Level 2)

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

COMPUTER SCIENCE. Paper 1

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

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

COMPUTER SCIENCE Paper 1

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

Sample Paper Class XI Subject Computer Sience UNIT TEST II

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

Object Oriented Pragramming (22316)

C++ 8. Constructors and Destructors

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

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

ISC SPECIMEN PAPER Computer Science Paper 1 (Theory) Part I Question 1. [ 2 x 5 = 10] Question 2. [ 2 x 5 = 10] Question 3.

Downloaded from

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

13. What is the meaning of Open Source in the term Open Source Database Management. 14. Difference between Proprietary and Open Source Software.

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

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

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

COMPUTER SCIENCE

CLASS-XI COMPUTER SCIENCE

Session Chapter 4: Classess & Object

KENDRIYA VIDYALAYA PICKET : SECUNDERABAD :09 CLASS XII HOLIDAY HOME WORK

Code No: R Set No. 1

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

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

Computer Programming C++ (wg) CCOs

Chapter-11 POINTERS. Important 3 Marks. Introduction: Memory Utilization of Pointer: Pointer:

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

Computer Science 2006 (Delhi)


COMPUTER SCIENCE PAPER 1

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

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

KENDRIYA VIDYALAYA NO-1 ARMAPUR

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions

Question Bank Class XII Subject : Computer Science

Darshan Institute of Engineering & Technology for Diploma Studies

COMPUTER SCIENCE (083)

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

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

BRAIN INTERNATIONAL SCHOOL Term-II Class-XI Sub:- Computer Science Revision Sheet

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

Model Sample Paper 2015

(c)rewrite the following program after removing the syntactical error(s),if any.under line each correction. [2] def main1(emp): print emp[name]

EAS 230 Fall 2002 Section B

KendriyaVidyalayaSangathan Kolkata Region

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

COMPUTER SCIENCE 2002 (Delhi Board)

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

Assignment No. 1 DBMS CONCEPTS

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

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

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

KENDRIYA VIDYALAYA SANGATHAN- ERNAKULAM REGION MODEL PAPER - CLASS XII COMPUTER SCIENCE (083)

C++ Programs(CONDITIONAL CONSTRUCTS & LOOPS)

Padasalai.Net s Model Question Paper

Computer Science 330 Assignment

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

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme


Chapter-13 USER DEFINED FUNCTIONS

UNIT - V STRUCTURES AND UNIONS

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

C++ is case sensitive language, meaning that the variable first_value, First_Value or FIRST_VALUE will be treated as different.

CSE202-Lec#4. CSE202 C++ Programming

Downloaded from

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

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

'C' Programming Language

Transcription:

Ashok Garg - 9149405 Code No.08 Roll No. Candidate must write the Code on the title page of the answer-book Please check that this question paper contains 8 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 candidate. Please check that this question paper contains 7 questions. Please write down the Serial Number of the question paper before attempting it. Write down the question numbers fully and neatly. i.e. (a), (b) etc. COMPUTER SCIENCE (CODE 08) CLASS XII Time allowed : Hours Maximum. Marks 70 Instructions: (i) All questions are compulsory. (ii) Programming Language : C++ 1(a) Name the header file to which the following belong: 1. random(). setw() 1 (b) Find the output of the following program. #include<iostream.h> #include<conio.h> struct PLAY int Score, Bonus; ; void Calculate(PLAY &P, int N=10) P.Score++; P.Bonus+=N;

void main() clrscr(); PLAY PL=10,15; Calculate(PL,5); cout<<pl.score<<":"<<pl.bonus<<endl; Calculate(PL); cout<<pl.score<<":"<<pl.bonus<<endl; Calculate(PL,15); cout<<pl.score<<":"<<pl.bonus<<endl; getch(); (c) Write the output of the following program segment. #include<iostream.h> #include<conio.h> int &max(int &x, int &y) if(x>y) x++; return x; else y++; return y; void main() clrscr(); int A=5, B=7; max(a,b)=-1; cout<<"a = "<<A<<"\tB = "<<B<<endl; max(b,a)=4; cout<<"a = "<<A++<<"\tB = "<<--B<<endl; max(a,b)=5; cout<<"a = "<<A<<"\tB = "<<B<<endl; getch(); (d) State the reason why enum Boolean(false, true); is better than enum Boolean(true, false);

(e) Write a program to print the truth table for XY+Z. (Using Loops) (a) What will be the output of following? #include<iostream.h> #include<conio.h> class MAIN MAIN() calculate(); cout<<"\t"<<"constructor\n"; void calculate() show(); cout<<"\t"<<"calculating"; void show() cout<<"i am displaying"; ; void main() MAIN one; (b) A Group Housing Society received applications from various applicants. They want to allot houses by lottery system. Write a program to computerized their system with the following specifications. 4 Define a class named HOUSING in C++ with the following description Private members: Reg_no Regestration Number - Integer( ranges 10 1000); Name Name of the person - Array of characters (max 0 characters) Type Type character(general - G, Reserved - R) Cost double Public members: read_data() - Function to read an object of Housing type void disp_data() - Function to display the details of an object void draw_nos() - Function to choose and display the details of houses selected randomly from an array of 10 objects of type HOUSING. Use random function to generate regestration nos. to match with Reg_no from the array.

4 (c) What is containership? How does it differ from inheritance? (d) Answer the question 1 to 4 based on the following code: 4 class Book char Title[0]; char Author[0]; int No_of_pages; void read(); void show(); ; class Textbook:private Book int no_of_chapters, no_of_assignments; protected: int standard; void readtextbook(); void showtextbook(); ; class Physicsbook:public Textbook char Topic[0]; void readphysicsbook(); void showphysicsbook(); ; 1. Name the members, which are accessed from the member functions of class physicsbook.. Name the members, which are accessed by an object of class Textbook.. Name the members, which are accessed by an object of class Physicsbook. 4. What will be the size of an object (in bytes) of class Physicsbook? (a) Write a function in C++ which accepts an integer array and its size as arguments/parameters and assign the elements into a two dimensional array of integers in the following format. If the array is 1,,,4,5 then the resultant -D array is of type: 1 0 0 0 0 1 0 0 0 1 0 0 1 4 0 1 4 5

5 (b) If an array B[11][8] is stored as column wise and B[][] is stored at 104 and B[][] at 1084. Find the address of B[5][] and B[1][1]. (c) Given two arrays of integers X and Y of sizes m and n respectively. Write a function named MERGE() which will produce a third array named Z, such that the following sequence is followed: 1. All odd numbers of X from left to right are copied into Z from left to right.. All even numbers of X from left to right are copied into Z from right to left.. All odd numbers of Y from left to right are copied into Z from left to right. 4. All even numbers of Y from left to right are copied into Z from right to left. X, Y and Z are passed as arguments to MERGE() Example: X,,1,7,6, Y9,,5,6,8,10 Z,1,7,,9,,5,10,8,,6,6, 4(a) Distinguish between Serial files and Sequential files. (b) Assuming the class BUS as shown below: #include <fstream.h> #include<string.h> #include<process.h> #include<stdio.h> #include<conio.h> class BUS int bus_no; char destination[0]; float distance; float bus_fare; void getdata(); //To read an object from the keyboard void dispdata(); //To show an object on monitor. int retbus_no() return bus_no; ; void BUS::getdata() cout<<"enter Bus Number : "; cin>>bus_no; cout<<"enter destination : "; gets(destination); cout<<"enter distance : "; cin>>distance; cout<<"enter Bus fare : "; cin>>bus_fare; void BUS::dispdata() cout<<"bus Number : "<<bus_no<<endl; cout<<"destination : "<<destination<<endl; cout<<"distance : "<<distance<<endl; cout<<"bus fare : "<<bus_fare<<endl;

6 Write a function modibus() which will accept a bus number and modify the contents related to that bus. Display proper message if the given bus number not found. (c) Write a program that reads a text file and create another file that is identical except that every sequence of consecutive blank spaces is replaced by a single space. For Example: After Running your program the contents of file Golden.txt saved in file Golden1.txt as shown. Each student will take the full responsibility of keeping the class syllabus to perform in class test, unit tests and other examination and getting all class work and home work checked in time. Golden1.txt Each student will take the full responsibility of keeping the class syllabus to perform in class test, unit tests and other examination and getting all class work and home work checked in time. (d) What is the difference between put() and write()? 5(a) Define the following. 1. Primary Key. Foreign Key (d) LIBRARY NO TITLE AUTHOR TYPE PUB QTY PRICE 1 DATA STRUCTURE LIPSCHUTZ DS MCGRAW 4 17 COMPUTER STUDIES FRENCH FND GALGOTIA 75 ADVANCED PASCAL SCHIDT PROG MCGRAW 4 50 4 DBASE DUMMIES PALMER DBMS PUSTAKM 5 10 5 MASTERING C++ GUREWICH PROG BPB 95 6 GUIDE NETWORK FREED NET ZPRESS 00 7 MASTERING FOXPRO SEIGAL DBMS BPB 15 8 DOS GUIDE NORTON OS PHI 175 9 BASIC FOR BEGINNERS MORTON PROG BPB 40 10 MASTERING WINDOW COWART OS BPB 1 5 1. SELECT ALL THE PROG TYPE PUBLISHED BY BPB FROM LIBRARY.. DISPLAY A LIST OF ALL BOOKS WITH PRICE MORE THAN 10 AND SORTED BY QTY.. DISPLAY ALL THE BOOKS SORTED BY PRICE IN ASCENDING ORDER. 4. DISPLAY A REPORT LISTING BOOK ID, CURRENT VALUE AND MISPLACEMENT CHARGES FOR EACH BOOKS IN THE ABOVE TABLE. CALCULATE THE MISPLACEMNT CHARGES FOR ALL BOOKS AS 8

PRICE*1.5. 7 5. COUNT THE NUMBER OF BOOKS PUBLISHED BY PHI. 6. INSERT A NEW BOOK IN THE LIBRARY TABLE. FILL ALL THE COLUMN WITH VALUES. 7. GIVE THE OUTPUT OF FOLLOWING SQL COMMANDS ON THE BASIS OF TABLE LIBRARY. a. SELECT MIN(PRICE) FROM LIBRARY WHERE PRICE<150. b. SELECT AVG(PRICE) FROM LIBRARY WHERE QTY< c. SELECT COUNT(DISTINCT TYPE) 6(a) State DeMorgan s Law. Verify one of the DeMorgan s Laws using truth tables. (b) Prove X Y + Z = (X + Y + Z) (X + Y + Z) (X + Y + Z) algebraically. (c) Write the dual of the Boolean expression (U + W) (V U + W) 1 (d) Obtain simplified form for a Boolean expression F= (0, 1,, 5, 7, 9, 11, 1, 1, 15) using K-Map. (e) Represent the Boolean expression X + YZ with the help of NOR gates only 1 (f) Write the Product Of Sum form of the function H(u, V, W), truth table representation of H is as follows: 1 U V W H 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 0 1 1 0 7(a) Identify and correct the error in the following code fragment: struct first int a; float b; S1; struct second int a; float b;

S; 8 S1=S; (b) Why do you think function overloading must be a part of an Object Oriented Language? (c) Distinguish between the following two statements (statement 1 and statement ): class time int hr,min,sec; time(int hh, int mm, int ss) hr=hh; min=mm; sec=ss; ; time T1(1, 10, 5); //statement 1 time T1=time(1,10,5); //statement (d) What is Recursion? Write a function to calculate factorial of a number using recursion and implement it. 4

9