CLASS XII GUESS PAPER COMPUTER SCENCE (083)

Similar documents
KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

Sample Paper 2015 Class XII Subject Computer Science

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

INTRODUCTION (SQL & Classification of SQL statements)

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

Downloaded from

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

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

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

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

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

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:

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

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

COMPUTER SCIENCE 2002 (Delhi Board)

INFOTECH Computer Education, Kishangarh (Raj) Visit : Page 1

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE


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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

COMPUTER SCIENCE (083)

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

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

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

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

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

COMPUTER SCIENCE 1998 (Delhi Board)

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

Computer Science 2006 (Outside Delhi)

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

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

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

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme

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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

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

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

Model Sample Paper 2015

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

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

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

COMPUTER SCIENCE

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

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

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION. REVISION Examination 2013 COMPUTER SCIENCE (083) CLASS XII. Time Allowed: 3 Hours Maximum Marks: 70

Question Bank Class XII Subject : Computer Science

COMPUTER SCIENCE Paper 1

Computer Science 2006 (Delhi)

KendriyaVidyalayaSangathan Kolkata Region

Downloaded from

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

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

Session Chapter 4: Classess & Object

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

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

Holiday Homework AUTUMN BREAK : to CLASS XII

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

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

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

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.

General Instructions:

Q1. (SQL) Consider the following table HOSPITAL. Write SQL commands for the statements (i) to (v)

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

VIDYA BHARATI SCHOOL

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION MAX MARKS:70 CODE - A DURATION : 3 Hours

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

CBSE Sample Paper 2015 Computer Science C++ Class XII Time 3hrs M.M 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

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

HOLIDAY HOMEWORK ASSIGNMENT-5 Q1. What will be the output of the following program segment Class Num { int x; float y; public: void init( ) { x = y =

CLASS-XI COMPUTER SCIENCE

2016 COMPUTER SCIENCE

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

CPE Summer 2015 Exam I (150 pts) June 18, 2015

6.096 Introduction to C++ January (IAP) 2009

INDIAN SCHOOL MUSCAT FIRST PRELIMINARY EXAMINATION 2017 INFORMATICS PRACTICES

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

An Object Oriented Programming with C

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010

Homework Assignment #1

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

Sample Paper 2012 Class XII Subject Computer Science

Transcription:

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 and answer accordingly. Please check that this question paper contains 7 main questions. Please set time of 15 minutes allotted to read this question paper.try to answer the question in the sequence. All questions are compulsory. Presentation of answers should be neat. Rewrite the answer again if there is any striking or scratching. SECTION A a. What is the difference between call by reference and call by value with respect to memory allocation? Give suitable example to illustrate call by reference. 2 b. Observe the following C++ code and write the name(s) of the header files, which will be essentially required to run it. 1 void main( ) char ch, str[20] ; cin >> str; ch = toupper (str [0] ) ; cout << str << starts with << ch << endl; c. Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2

# include < iostream.h > class Item long Id, Qty ; void Purchase cin >> Id >> Qty ; void Sale ( ) cout << setw (5) << Id << OLD << Qty << endl ; cout << New : << - -Qty << endl ; void main( ) Item I; Purchase ( ); Item. Sale ( ); d. Find the output of the following C++ code: 2 (Assume all header files are already included in the program) typedef char Text [80] ; void Jumbleup ( Text T ) int L = strlen ( T ); for ( int C = 0; C < L-1; C + = 2) char CT = T [C] ; T [ C ] = T [ C + 1] ; T [ C + 1] = CT ; for ( T [ C ] > = M && T [ C ] < = U ) T [ C ] = @ ;

void main ( ) Text str = HARMONIOUS ; Jumbleup ( str ) ; cout << str << endl ; e. Write the output of the following C++ program code. In the following code, what will be the possible output from the following options i to iv? Justify the answer. 2 # include < iostream.h > # include < conio.h > # include < stdlib.h > const int LIMIT = 3; void main ( ) randomize ( ); int Points; Points=50 + random (LIMIT); for ( int P = points; P >= 50; P- - ) cout << P << # << endl; getch ( ); i) 53#52#51#50# ii) 50#51#52# iii) 50#51#53 iv) 51#50# f. Observe the following code carefully and obtain the output, which will appear on the screen after execution. 2 void main( ) int *p[10];

int score[ ] = 80, 30, 74, 50, 34, 67, 0, 98 ; for ( int i =0; score [i]!= 0; i++) p[i] = &score[i] ; *(p[i]) += 10 ; int count =0; while (count <i) int q = *(p[count]) ; count ++ ; if(q > 50) cout << q <<, endl ; Q2. a. Write any four important characteristics of Object Oriented Programming. Give example of any one of the characteristics using C++. 2 b. Observe the following C++ code and answer the following questions ( i ) and ( ii ). Assume all header files are included. 2 class seminar int time; seminar( ) // Function 1 time =20; cout << Seminar starts now << endl; void lecture ( ) // Function 2 cout << Lectures in the Seminar << endl; seminar (int duration) // Function 3 time = duration; cout << Seminar starts now << endl; ~ seminar( ) // Function 4 cout<< Vote of thanks <<endl; ;

i) In Object Oriented Programming, which concept is illustrated by Function 1and Function 3 together? ii) In Object Oriented Programming, what is Function 4 referred as and when does it get invoked / called? c. Define a class in C++ with following description: 4 Private Members A data member FlightNumber 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 <=1000 500 more than 1000 and <=2000 1100 more than 2000 2200 Public Members A function FEEDINFO ( ) to allow user to enter values for FlightNumber, 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. d. What do you understand by copy constructor? Give the example of copy constructor through defining it within a class. Also give the statement invoking it. 2 e. Answer the questions (i) to (iv) based on the following: 4 class A protected: long Cust_no; char Cust_Name[20]; int Register(float);

CUSTOMER (long double); char Status (char); ; class B: public A long Salesman_no; char Salesman_Name[20]; protected: float Salary; SALESMAN ( ); double Enter ( ); int Show ( ); ; class C : private B char Voucher_No[10]; SHOP ( ); char Sales_Date[8]; float Sales_Entry ( ); char Sales_Detail ( ); ; void main ( ) C Z ;

(i) Write the names of members which are accessible through Z. (ii) What type of inheritance is implemented in the above example? (iii) Write the names of all the data members which are accessible from class C. (iv) How many bytes will be required by an object of class B and class C? Q3. a. Evaluate the following POSTFIX notation. Show status of stack after every step of evaluation. 2 32, 4, /, 2, *, 12, 3, -, + b. An array A[10][30] is stored in the memory along the column with each of its elements occupying 4 bytes. Find out the address of an element A[2][5], if the location A[5][10] is stored at the address 4000. 2 c. Write a function to check if the passed array of 20 integers is sorted or not. The function should return 1 if arranged in ascending order, -1 if arranged in descending order, 0 if it is not sorted. 3 d. Give the necessary declaration of class for the linked implemented stack through defining the functions to push and pop the nodes. Each node is containing ItemCode (int) and Price (float) in addition to pointer field. 3 e. Write a user defined function ADDEnd (int a[] [4], int N, int M) in C++ to find and display the sum of all the values which are ending with 2( i.e units place) 2 Q4. a. Write a function in C++ to count and display the number of lines not starting with alphabet 'A' present in a text file "STORY.TXT". 2 Example: If the file "STORY.TXT" contains the following lines: The rose is red. A girl is playing there. There is a playground. An aeroplane is in the sky.

( The function should display the output as 3 ) b. Assuming the class DRINK as follows : 2 class DRINK int Qty; char Name[20]; void getdetails ( ) gets (Name) ; cin >> Qty ; void showdetails ( ) cout << Qty << << Name << endl ; ; i). Write the objects of DRINK to a binary file. ii). Reads the objects of DRINK from the binary file and display them on screen. c. Observe the program segment given below carefully and fill the blanks marked as Statement 1 and Statement 2 using seekp ( ) and tellg ( ) functions for performing the required task. 2 #include <fstream.h> class Client long Cno ; char Name [20], Email [30]; //Function to allow the user to enter data void Enter ( ); //Function to allow the user to enter(modify) Email void Modify ( ); long ReturnCno ( ) return Cno;

; void ChangeEmail ( ) Client C; fstream F; F.open ( INFO.DAT, ios :: binary ios :: in :: ios out); long Cnoc; //Clients no. whose Email needs to be changed cin >> Cnoc; while ( F.read ( (char *) &C, sizeof (c) ) ) if (Cnoc = = C. ReturnCno ( ) ) C. Modify ( ); int Pos = // statement 1 to find current position of file pointer //statement 2 To move the file pointer to write the modified record back into the file F.write (char*) &C, sizeof (C)); F.close Q5. a. Observe the following PARTICIPANTS and EVENTS tables carefully and write the name of the RDBMS operation which will be used to produce the output as shown in RESULT? Also find the Degree and Cardinality of the result. 2 TABLE: PARTICIPANTS PNO NAME 1 Aruanabha Tariban

2 John Fedricks 3 Kanti Desai TABLE: EVENTS EVENTCODE EVENTNAME 1001 IT Quiz 1002 Group Debate TABLE: RESULT PNO NAME EVENT CODE EVENT NAME 1 Anradhana Pradhan 1001 IT Quiz 1 Anradhana Pradhan 1002 Group Debate 2 Jhon Fedricks 1001 IT Quiz 2 Jhon Fedricks 1002 Group Debate 3 Kanti Desai 1001 IT Quiz 3 Kanti Desai 1002 Group Debate b. Consider the following tables PRODUCT and CLIENT. Write SQL commands for the statement (i) to (iv) and give outputs for SQL queries (v) to (viii) 6 Table: PRODUCT P_ID Product Name Manufacturer Price TP01 TalcomPowder LAK 40 FW05 Face Wash ABC 45 BS01 Bath Soap ABC 55 SH06 Shampoo XYZ 120 FW12 Face Wash XYZ 95 Table: CLIENT C_ID Client Name City P_ID 01 Cosmetic Shop Delhi FW05 06 Total Health Mumbai BS01 12 Live Life Delhi SH06 15 Pretty Woman Delhi FW12 16 Dreams Banglore TP01

i. To display the details of those Clients whose city is Delhi. ii. To display the details of Products whose Price is in the range of 50 to 100 (Both values included). iii. To display the ClientName, City from table CLIENT, and ProductName and Price from table PRODUCT, with their corresponding matching P_ID. iv. To increase the Price of all Products by 10. v. SELECT DISTINCT City FROM CLIENT. vi. SELECT Manufacturer, MAX (Price), MIN(Price), COUNT(*) FROM PRODUCT GROUP BY Manufacturer; vii. SELECT ClientName, Manufacturer Name FROM PRODUCT, CLIENT WHERE Client.Prod_Id = Product.P_Id; viii. SELECT ProductName, Price * 4 FROM PRODUCT. Q6. a. Give duals for the following: 2 i) A+ ĀB ii) AB+ĀB b. State and prove DeMorgan s First Law. 2 c. Draw logic circuit diagram for the following expression: 2 Y= AB+BC+CA d. Reduce the following Boolean expression using K-Map: 3 F(A,B,C,D)= (0,1,3,5,6,7,10,14,15) Q7. a. Differentiate between Packet switching and Message switching? 1 b. Expand the following terms: 2 i) WAIS ii) VoIP iii) GSM iv) SMTP c. Bhartiya Connectivity Association is planning to spread their offices in four major cities in India to provide regional IT infrastructure support in the field of Education & Culture. The company has planned to setup their head office in New Delhi in three locations and have named their New Delhi offices as Front Office, Back Office and Work Office.The Company has three more regional offices as South Office, East Offfice and West Office located in other three major cities of India. A rough layout of the same is as follows: 4

Approximate distance between these offices as per network survey team is as follows: Place From Place To Distance Back Office Front Office 10 KM Back Office Work Office 70 KM Back Office East Office 1291KM Back Office West Office 790 KM Back Office South Office 1952KM In continuation of the above, the company experts have planned to install the following number of computers in each of their offices: Front Office 100 Work Office 20 East Office 50 West Office 50 SouthOffice 50 1. Suggest network type(out of LAN,MAN,WAN) for connecting each of the following set of their offices: Back Office and Work Office Back Office and south Office 2. Which device you will suggest to be produced by the company for connecting all the computers with in each of their offices out of the following devices? Switch/Hub Modem Telephone 3. Which of the following communication medium, you will suggest to be produced by the company for connecting their offices in New Delhi for very effective and fast communication? Telephone Cable Optical Fibre Ethernet Cable

4. Suggest a cabling layout for connecting the company s local offices located in New Delhi. Also, suggest an effective method /technology for connecting the company s regional offices East Office, West Office and South Office with offices located in New Delhi. d. Write any two important characteristics of cloud computing? 1 e. Write the names of any two popular open source software, which are used as operating systems. 1 f. What is hacking and cracking? 1 ******************************************************