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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

INTRODUCTION (SQL & Classification of SQL statements)

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

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

Downloaded from

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

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

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

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

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

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

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

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

Sample Paper 2012 Class XII Subject Computer Science

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

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

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

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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

(Structured Query Language)

COMPUTER SCIENCE

Question Bank Class XII Subject : Computer Science

Computer Science 330 Assignment

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

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

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

Computer Science 2006 (Outside Delhi)

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

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

Downloaded from

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

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

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

2016 COMPUTER SCIENCE

COMPUTER SCIENCE Paper 1

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

Holiday Homework AUTUMN BREAK : to CLASS XII

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

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

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

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

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

Model Sample Paper 2015

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

COMPUTER SCIENCE 2002 (Delhi Board)

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

Sample Paper, 2015 Subject: Computer Science Class 12 th


KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK XII COMPUTER SCIENCE ARRAY AND STRUCTURES

Computer Science 2006 (Delhi)

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

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

COMPUTER SCIENCE 1998 (Delhi Board)

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.

INDIAN SCHOOL MUSCAT FIRST PRELIMINARY EXAMINATION 2017 INFORMATICS PRACTICES

KENDRIYA VIDYALAYA SANGATHAN CLASS XII EXAMINATION INFORMATICS PRACTICES (065)

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

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

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

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

Index for C++ Programming

include<iostream.h> #define PI=3.14 void main( ) { float r;a; cout<< enter any radius ; cin>>r; a=pi*pow(r,2); cout<< Area= <<a }

CLASS-XI COMPUTER SCIENCE

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

KENDRIYA VIDYALAYA SANGATHAN,MUMBAI REGION 1 ST PRE-BOARD EXAMINATION TIME- 3 HRS. CLASS-XII SUBJECT-COMPUTER SCIENCE MARKS-70 MARKING SCHEME

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

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

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

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

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

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

Holiday Home work Sub: IP Class: 12

CLASS XII SAMPLE PAPER-065 INFORMATICS PRACTICES

List of Practical for Class XII Computer Science

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

Q1. (a) (½) (b) (½) (c) (½) (d) (½) (e) (2) (f) (1) (g) (1) above address object/device assigned (h) (4) Q2. (a) (1) (b) (1) (c) (1) (d) (1)

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

KendriyaVidyalayaSangathan Kolkata Region

General Instructions:

VIDYA BHARATI SCHOOL

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION CLASS XII COMMON PRE-BOARD EXAMINATION

Transcription:

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 Language : C++, SQL 1. (a) Differentiate between run time error and syntax error with the help of suitable example. (b) Write the name of the header files for the following: (i). delay() (ii). fabs() 1 Rewrite the following program after removing the syntactical error(s) (if any). Underline the correction. structure SwimmingClub int mem number; char memname[0]; char memtype[]="lig"; ; SwimmingClub per1,per; cin<<"member Number: "; cin>>memnumber.per1; cout<<"member Nmae: "; cin>>per1.membername; per1.memtype="hig"; per=per1; cin<<"member Number: "<<per.membernumber; cin<<"member Name: "<<per.memname; cin<<"member Type: "<<per.memtype; Page 1 of 7

(d) Write the output of the following code: int global = 10; void callme(int &x, int y) x -= y; y = x * 10; cout<<x<<':'<<y<<endl; int global = 7; callme(::global,global); cout<<global<<':'<<::global<<endl; callme(global,::global); cout<<global<<':'<<::global<<endl; (e) Write the output of the following code: void pass(int *ptr) for(int *pt=ptr ; pt<ptr+ ;pt++) cout<<*pt<<'-'; cout<<endl; int box[] = 10,,17,1,0; pass(box); pass(box+1); pass(&box[]); (f) In the following program what is the expected value of myscore from options (i) to (iv). Justify your answer. #include<stdlib.h> randomize(); int score[]=5,0,,56,7,6,myscore; myscore=score[+random()]; cout<<myscore<<endl; (i) 5 (ii) (iii) 0 (iv) None Page of 7

. (a) Differentiate between abstract class and concrete class. (b) Answer the questions (i) and (ii) after going through the following class: class mammal public: char category[0]; mammal( char xname[]) // function1 ; strcpy(category, xname) mammal(mammal &t); //function (i) Create an object, such that it invokesfunction1. (ii). Write complete definition for function. Define a class TravelPlan in C++ with the following description: Private Members: PlanCode of type long Place of type string NOT(No_of_Travellers) of type integer NOB(No of Buses) of type integer Public Members: A constructor to assign initial values of PlanCode as 1001, Place as "Agra", NOT as 5, NOB as 1 A function NewPlan() which allows users to enter PlanCode, Place and NOT. The function assigns the value of NOB as per the following conditions: Number of Travellers Number of Buses Less than 0 1 Equal to or more than 0 and less than 0 Equal to 0 or more than 0 A function ShowPlan() to display the content of all the data members. (d) Consider the following declarations and answer the questions given below: class parent char name[0]; protected: int son; public: void inputdata(char, int); void outputdata(); ; class father : protected parent Page of 7

int daughter; protected : int baby; public : void readdata(int, int); void writedata(); ; class mother : private father int X; public : void fetchdata (int); void displaydata(); ; (i) Name the base class and derived class of the class father. (ii) Name the data members that can be accessed from function displaydata(); (iii) Name the member function which can be accessed by an object of mother class. (iv) Is the member function outputdata() accessible to the object of father class?. (a) Write a function in C++ two input int arrays arranged in ascending order and their sizes as arguments and one output array and an output variable for the size of result array as arguments and it merges both the input arrays in output array such that the output array is in ascending order. If any element is common in both the input array only one copy of it will go in the output array. Define the funciton. (b) An array DATA[1..10][1..10] requires bytes for each element. If the base address of the array is 1500, determine the location of DATA[][5], when the array is row wise. Define(write code of) two important function of dynamic stack containing names of cities. (d) Write a C++ function to print both the diagonal of a square matrix. E.g. Then the output should be: 5 1 6 9 Diagonal 1: Diagonal : 5 9 (e) Evaluate the following postfix expression using a stack and show the contents of the stack after each operation. 100, 0, 8, +, 0, 10, -, +, *. (a) Given the following code: #include<fstream.h> #include<conio.h> ifstream fin; Page of 7

clrscr(); fin.open("a.txt",ios::in); int size=0;... // statement 1 size=... ; //statement cout<<size; fin.close(); getch(); Write statement 1 and statement using seek..() and tell..() so that it calculate the file size. (b) Write a function in C++ which opens a text file sample.txt and count the number of lines present in the file and displays it. class book int book_no; char book_name[0]; float price; public: void enter_book_details( ) cin>> book_no>> price; gets(book_name); void show_book_details( ); int checkbookno(int bookno) If(book_no==bookno) Return(0); Else Return (1); ; Write a function deletebook() in C++ that deletes the required book record from the binary file BOOKS.DAT based on book_no. 5. (a) Differentiate between DDL & DML. Also give example. (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). TABLE: Product P_ID ProductName Manufacturer Price TP01 Talcom Powder LAK 0 FW05 Face Wash ABC 5 BS01 Bath Soap ABC 55 SH06 Shampoo XYZ 10 FW1 Face Wash XYZ 95 TABLE: Client C_ID ClientName City P_ID 6 Page 5 of 7

01 Cosmetic Shop Delhi FW05 06 Total Health Mumbai BS01 1 Live Life Delhi SH06 15 Pretty Woman Delhi FW1 16 Dreams Bangalore 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 FROM Product, Client WHERE Client.P_ID=Product.P_ID; (viii) SELECT ProductName, Price* FROM Product; Write SQL commands for the following: (i). To delete all the records from table Employee; (ii). To add primary key constraint to rollno column in an existing table student. 6. (a) Explain principle of duality with the help of example. (b) Write the SOP expression for the following truth table: X Y Z F(output) 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 1 Draw the logical circuit for the following boolean expression using only NAND gates: F(x,y) = x.y + x.y (d) Reduce the following boolean expression using K-Map: F(a,b,c,d) = m0 + m1 + m + m + m + m10 + m11 7. (a) What do you mean by Open Source Software? 1 Page 6 of 7

(b) What is PAN? 1 What is firewall? 1 (d) Which protocol is used for transferring files from one computer to another? 1 (e) Knowledge Supplement Organisation has set up its new center at Mangalore for its office and web based activities. It has blocks of buildings as shown in the diagram below: Block C Block B Block D Center to center distances between various blocks Black A to Block B Block B to Block C Block C to Block D Block A to Block D Block B to Block D Block A to Block C Number of Computers 50 m 150 m 5 m 170 m 15 m 90 m Black A 5 Block B 50 Block C 15 Block D 10 i. Suggest a cable layout of connections between the blocks. ii. Suggest the most suitable place (i.e. block) to house the server of this organisation with a suitable reason. iii. Suggest the placement of the following devices with justification (i) Repeater (ii) Hub/Switch iv. The organization is planning to link its front office situated in the city in a hilly region where cable connection is not feasible, suggest an economic way to connect it with reasonably high speed? Page 7 of 7