COMPUTER SCIENCE 2002 (Delhi Board)

Similar documents
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++

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION


Fundamentals of Programming. Lecture 19 Hamed Rasifard

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

COMPUTER SCIENCE Paper 1

2016 COMPUTER SCIENCE

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


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

COMPUTER SCIENCE PAPER 1

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

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. Regional Office Delhi Split-up Syllabus Session Subject:-Computer Science Subject Code:-083

COMPUTER APPLICATION

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

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

Computer Science Paper 1 (Theory) Part I While working questions in this part, indicate briefly your working and reasoning wherever required.

KENDRIYA VIDYALAYA SANGATHAN

ISC 2011 COMPUTER SCIENCE PAPER 1 THEORY

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

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

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

KENDRIYA VIDYALAYA SANGATHAN

COMPUTER SCIENCE. Paper 1

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

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

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

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

5. (a) What is secondary storage? How does it differ from a primary storage? (b) Explain the functions of (i) cache memory (ii) Register

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

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

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

Sample Paper 2012 Class XII Subject Computer Science

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

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

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

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

Computer Science 2006 (Outside Delhi)

ISC 2010 COMPUTER SCIENCE PAPER 1 THEORY


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

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

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

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

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

double d0, d1, d2, d3; double * dp = new double[4]; double da[4];

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

C++ For Science and Engineering Lecture 27

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

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

CS 216 Exam 1 Fall SOLUTION

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

Mock Test Paper-3. Computer Science. Duration : 3hrs Max 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

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

1 Epic Test Review 2 Epic Test Review 3 Epic Test Review 4. Epic Test Review 5 Epic Test Review 6 Epic Test Review 7 Epic Test Review 8

THE NAME OF THE CONSTRUCTOR AND DESTRUCTOR(HAVING (~) BEFORE ITS NAME) FUNCTION MUST BE SAME AS THE NAME OF THE CLASS IN WHICH THEY ARE DECLARED.

Chapter 3. Gate-Level Minimization. Outlines

CSE030 Fall 2012 Final Exam Friday, December 14, PM

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

LIST OF EXPERIMENTS. (1) (Office Automation)

Computer Science 2006 (Delhi)

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

ONE MARKS QUESTION AND ANSWERS

Chapter 2 Combinational Logic Circuits

Programming and Data Structure Solved. MCQs- Part 2

Review: Standard forms of expressions

QUESTION BANK FOR TEST

Largest Online Community of VU Students

Aryan College. Computer Fundamental. Introduction to Computer System

Code No: R Set No. 1

List of Practical for Class XII Computer Science

Topic 6: Inner Classes

Associate Professor Dr. Raed Ibraheem Hamed

Introduction to Programming Using Java (98-388)

ii) Do the following conversions: output is. (a) (101.10) 10 = (?) 2 i) Define X-NOR gate. (b) (10101) 2 = (?) Gray (2) /030832/31034

Dept. of Computer Sc., SDP College for Women, Ludhiana


CSC 221: Computer Organization, Spring 2009

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

OBJECT-ORIENTED PROGRAMMING CONCEPTS-CLASSES II

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

COMBINATIONAL LOGIC CIRCUITS

Data Structure (CS301)

CSCE 110 PROGRAMMING FUNDAMENTALS

2015 Academic Challenge

Experiment 3: Logic Simplification

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

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

Transcription:

COMPUTER SCIENCE 2002 (Delhi Board) Time allowed: 3 hours Max. Marks: 70 Instructions: (i) All the questions are compulsory. (ii) Programming Language: C++ QUESTION l. (a) What the purpose of a header file in a program? Name the header files C++ to which the following functions belong: (i) write() (ii) arc(iii) open() (iv) strlen() c) Find the syntax error(s), if any, in the following program: # include <iostream.h> int x; cin<< x; for(int y = 0; y<10; y++); cout>>x + y; d) Find the output of the following program: int x=5,y=5; cout << x++; cout<<","; cout<<++x; cout<< ","; cout << y++<<, <<++y; (e) Write the output of the following program: #include <iostream.h> void X(int A, int &B) A = A+B; B = A-B; A = A-B; int a=4, b=l8; X(a,b); cout<< a <<, <<b;

(d) Raising a number to a power p is the same as multiplying n by itself p times. Write a function called power that takes two arguments, a double value for n and an int value for p, and return the result as double value. Use default argument of 2 for p, so that if this argument is omitted the number will be squared. Write the main function that gets value from the user to test power function. QUESTION 2. (a) What do you understand about a base class and a derived class? If a base class and a derived class each include a member function with the same name and arguments, which member function will be called by the object of the derived class if the scope operator is not used? (b) Considering the following specifications : Structure name Data Type Size Name first array of character 40 mid array of character 40 last array of character 60 Phone area array of character 4 exch array of character 4 numb array of character 6 Class name Data Type P_rec name Name Phone Phone With member functions constructor and display_rec. Declare a class of P_rec. Define the constructor (outside the class P_rec) that gathers information from the user for the above two structures Name and Phone. Define the display_rec (outside the class P_rec) that shows the current values. c) consider the following class declaration and answer the question below : class SmallObj private : int some; more; void err_1() cout<< error ; public: void Xdata(int d) some=d; more=d++; void Ydata() cout<<some<< <<more; ; (i) Write the name that specifies the above class. (ii) Write the data of the class with their access scope. (iii) Write all member function of the class along with the access scope. (iv) Indicate the member function of the SmallObj that sets data.

QUESTION 3. (a) Define Queue and Stack. (b) Given the following class : char *msg[ ] = "overflow, under flow" class Stack int top; // the stack pointer stk[5]: //the elements void err_rep(int e_num) cout << msg[e_enum]; // report error message public : void init() top=0; // initialize the stack pointer void push(int); // put new value in stk void pop(); // get the top value ; Define push outside the Stack. In your definition take care of overflow condition. Function push has to invoke err_rep to report over flow. c) Use a stack to evaluate the following postfix expression and show the content of the stack after execution of each operation. Don't write any code. Assume as if you are using push and pop member functions of the stack. AB - CD + E * + (where A=5, B=3, C=5, D =4, and E=2) d) The array A[20] [10] is stored in the memory with each element requiring one byte of storage if the base address of A is C 0. Determine C 0 when the location of A[10] [5] is 2000. e) Considering the following key set: 42, 29, 74, 11, 65, 58. Use bubble sort to sort the data in ascending order and indicate the sequences of steps required. QUESTION 4. a) What is the difference between get() and read()? b) Write a C++ program, which reads one line at a time from the disk file TEST.TXT, and displays it to a monitor. Your program has to read all the contents of the file. Assume the length of the line not to exceed 80 characters. You have to include all the header files if required. QUESTION 5. (a) What is relation? Define the relational data model. Given the following Lab relations : Write SQL command for questions (b) to (g).

No. ItemName Cost RELATION : LAB QuantityPerltem DateofPurchase Warranty Operational 1 Computer 60000 9 21/5/96 2 7 2 Printer 15000 3 21/5/97 4 2 3 Scanner 13900 1 29/8/98 3 1 4 Camera 21901 2 13/6/96 1 2 5 Hub 8000 1 31 10/99 2 1 6 UPS 5000 5 21/5/96 1 4 7 Plotter 25000 2 11/1/2000 2 2 (b) To select the Itemname purchased after 31/10/97. (c) To list the ItemName, which are within the Warranty period till present date. (d) To list the ItemName in ascending order of the date of purchase where quantity is more than 3. (e) To display ItemName, CostPerltem and Quantity whose Warranty is over. (f) To count the number of items whose cost is more than 10000. (g) To insert a new record in the Lab table with the following data : I 8. "VCR", 10000. 2. 2 2 2000. 1, 2 (h) Give the output of the following SQL command : i) SELECT MIN (DISTINCT quantity) FROM lab; ii) SELECT MIN(warranty) FROM lab WHERE quantity = 2; iii) SELECT SUM(costperitem) FROM lab WHERE quantity >2; iv) SELECT AVG(csostperitem) FROM lab WHERE dateofpurchase<l/199; QUESTION 6. (a) State the associative law and verify the law using truth table. (b) Prove XY+ YZ + YZ' = Y (c) Obtain the simplified form of a Boolean expression using Karnaugh map. F(x,y,z) = (2, 3, 6, 7) (d) Draw a logic circuit of full Adder. (e) Represent the Boolean expression X(Y'+ Z) with help of NOR gate only. (f) Given the following truth table, write the sum of products form of the function F(x,y,z) : x y z F 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1

QUESTION 7. (a) Compare coaxial and optical fiber cable. (b) Write the following abbreviations in their full form : LAN, OSI (c) What is the purpose of Telnet? (d) Briefly mention two advantages and disadvantages of Ring topology in network. Free Download CBSE QUESTION PAPERS, C++ PROJECT, C++ PRACTICAL QUESTION & ANSWERS http://www.cppforschool.com