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

Similar documents
CBSE 12th Computer Science Question Papers

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

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

Model Sample Paper 2015

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs 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

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

[Time allowed : 3hours] [Maximum Marks: 70] Instructions (i) All questions are compulsory (ii) Programming Language: C++

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

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

KendriyaVidyalayaSangathan Kolkata Region

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

COMPUTER SCIENCE


DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

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

SAMPLE PAPER 2015 SUB - COMPUTER SCIENCE - (Theory) CLASS XII 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:

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

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

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

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

COMPUTER SCIENCE 1998 (Delhi Board)

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

COMPUTER SCIENCE (083)

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

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

Question Bank Class XII Subject : Computer Science

Computer Science 2006 (Delhi)

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

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


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

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

After going through this lesson, you would be able to: store data in a file. access data record by record from the file. move pointer within the file

COMPUTER SCIENCE Paper 1

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

CLASS XII SECOND TERM EXAMINATION SUBJECT : COMPUTER SCIENCE SET A2 (SOLUTIONS)

Downloaded from

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

Sample Paper 2012 Class XII Subject Computer Science

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

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

Guru Gobind Singh Public School Sector : V/B, Bokaro Steel City

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

Computer Science 2006 (Outside Delhi)

COMPUTER SCIENCE PAPER 1

CLASS XII SECOND TERM EXAMINATION SUBJECT : COMPUTER SCIENCE SET A1(SOLUTIONS)

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

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

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

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

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

2016 COMPUTER SCIENCE

vinodsrivastava.com Consider the following c++ code and answer the questions from (i) to (iv): class Personal protected: public:

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

Computer Science, Class XII, Chapter No.7 (Data File Handling)

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

Sample Paper 2015 Class XII Subject Computer Science

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

KENDRIYA VIDYALAYA SANGATHAN

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

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

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

KENDRIYA VIDYALAYA SANGATHAN

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.

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

COMPUTER SCIENCE (083)


Convenient way to deal large quantities of data. Store data permanently (until file is deleted).

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

COMPUTER SCIENCE (THEORY) Class XII ( Theory) - Python. Unit No. Unit Name MARKS UNIT 1: PROGRAMMING WITH PYTHON

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

COMPUTER SCIENCE 2002 (Delhi Board)

Transcription:

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 are compulsory 1. (a) What is the difference between #define and constant int? Also, give a suitable C++ code to illustrate both. 2 (b) Write the names of the header files, which is/are essentially required to run/execute the following code:1 char Str[ 10]; gets (Str); for (int i=0 ; Str[i]! ='\0' ;i++) if (isupper(str[i])) Str[i]=tolower(Str[i]); else Str[i]=toupper (Str [i]) ; puts(str); (c) Rewrite the following program after removing the syntactical errors (if any).underline each correction. 2 include<iostream.h> typedef String char[20]; String S= "New String"; int L=strlen(S) ; cout<<s<< 'has'<<l<< 'characters'<<end1; (d) Find the output of the following program: 3 #include <iostream.h> void Move(int arr[ ], int N, int s) for (int p=1 ;p<n; p++) if (p< s) arr[p]+ = p; else arr [p]- = p; Void Output (int Arr [ ], int N) for (int p=0 ; p<n ; p++) if(p%2==0) cout<<arr[p]<<"#"; else cout<<arr[p]<<endl;

int list[ ]= 30,40,50,20,10,5; Shift (list, 6, 3); Display (list, 6); (e) Find the output of the following program: 2 #include<iostream.h> char *K, Moves [ ] = Demonitisation ; K = Moves; Moves [2] + = 5; cout<< "K @"<<*K<<endl; *K - = 11; K + = 2; cout<< "Now @"<<*K<<endl; K++; cout<< "Finally@"<<*K<<endl; cout<< "New Origin @"<<Moves[0]<<endl; (f) Go through the C++ code shown below, and find out the possible output or outputs from the suggested Output Options (i) to (iv). Also, write the minimum and maximum values, which can be assigned to the variable Num. 2 #include<iostream.h> #include <stdlib.h> randomize ( ) ; int Num, Max=5; Num = 20 + random (Max) ; for (int N=Num; N<=25;N++) cout<<n<<"&"; (i) 20&21&22&23&24&25& (ii) 22&23&24&25& (iii) 23&24& (iv) 21&22&23&24&25 2. (a) Define Copy constructor function with respect to Object Oriented Programming. Write the significance of default constructor. 2 (b) Answer the questions (i) and (ii) after going through the following class: 2 class Hospital int Pid, Did; Hospital(int P); //Function 1 Hospital(); // Function 2 Hospital(Hospital&C); //Function 3 void Admit(); //Function 4 void Discharge( ); //Function 5 ; main( )

Hospital Apollo[20]; // Statement 1 (i).which of the functions out of Function 1,2,3,4 or 5 will get executed when the Statement 1 is executed in the above code? (ii).write a statement to declare a new object HealthCare with reference to already existing object A using function 3? (c) Define a class Student in C++ with following description: 4 Private Members _ A data member ENo (Examination Number) of type long _ A data member Name of type string _ A data member Agg (Aggregate Marks) of type float _ A data member Grade of type char _ A member function FindGrade() to find the Grade as per the Aggregate Marks obtained by a Examinee. Equivalent Aggregate Marks range and the respective Grades are shown as follows: Aggregate Marks Grade >=80 A less than 80 and >=65 B less than 65 and >=50 C less than 50 D Public Members _ A function ENTER() to allow user to enter values for ENo, Name, Agg & call function FindGrade() to find the Grade. _ A function QUALIFIED( ) to allow user to view the content of all the data members. (d) Answer the questions (i) to (iv) based on the following: 4 class Candidates int Regno: char CName[20]; float QMarksl; protected: void Qualified ( ) ; Cadets ( ) ; void Enroll ( ) ;void Display ( ) ; ; class Commander long CCode; char CName [20]; protected: float Salary; Commander ( ); void Enter ( ) ; void Show ( ) ; ; class Batalion: public Candidates, private Commander long CCode [10]; char CourseName [50]; char StartDate [8], EndDate [8];

Course ( ) ; void Commence ( ); void CDetail ( ) ; ; (i) Write the names of member functions, which are accessible from objects of class Batalion. (ii) Write the names of all the data members, which are accessible from member function Commence of class Batalion. (iii)which type of inheritance is shown in the above example? (iv)which type of Inheritance is illustrated in the above C++ code? 3. (a) Write a split() function in C++ to transfer the content from one array A[ ] to two different arrays O[ ] and E[ ]. The Odd[ ] array should contain the values from odd positions (1,3,5,...) of A[ ] and E [ ] array should contain the values from even positions (0, 2, 4,..) of A [ ]. 3 Example If the A[] array contains 12, 34, 56, 67, 89, 90 The O[] array should contain 34, 67, 90 And the E [] array should contain 12, 56, 89 (b) An array LIST[50][20] is stored in the memory along the row with each of its elements occupying 8 bytes. Find out the location of LIST[10][15], if LIST[0][0] is stored at 4200. 3 (c) Write a function in C++ to perform Insert operation on a dynamically allocated Queue containing Members details as given in the following definition of NODE: 4 struct NODE long Mno //Member Number char Mname[20]; //Member Name NODE &Link; ; (d) Write a Digonal( ) function in C++ to find sum of all the elements on the Diagonal from a NxN Matrix. (Assuming that the N is a odd number) 2 (e) Evaluate the following postfix notation of expression: 2 True, False, NOT, AND, True, True, AND,OR 4. (a) Observe the program segment given below carefully and fill the blanks marked as Statement 1 and Statement 2 using seekg( ), seekp( ) tellp( ) and tellg( )functions for performing the required task. 1 #include <fstream.h> class article int Ano;char Aname[20]; float Price; void ModifyPrice() ;//The function is to modify price of a particular ARTICLE ; void article: :ModiyPrice() fstream File; File.open ("ARTICLE.DAT", ios::binary ios::in ios: :out) ; int CAno; cout<<"article No to modify price:";cin>>cano; while (file.read ((char&) this, sizeof (ARTICLE))) if (CAno==Ano) cout<<"present Price:"<<Price<<end1; cout<<"changed price:"; cin>>price; long FilePos = ; //Statement 1,

; //Statement 2 File.write((char&)this,sizeof(ARTICLE)) ; // Re-writing the record File.close ( ) ; (b) Write a function in C++ to count the no. of "the" or "this" words present in a text file "Story. TXT If the file "Story. TXT" content is as follows: 2 Amit is playing in the ground. Rani is Playing with this dolls. The output of the function should be Count of the/this in file: 2 (c) Write a function in C++ to search for a TAB from a binary file "Gadget.DAT" containing the objects of class" TAB (as defined below). The user should enter the Model No and the function should search and display the details of the TAB. 3 class TAB long ModelNo; char make[20]; int Zoom; char Details[120]; void Enter ( ) cin>>modelno; gets(make); cin>>zoom; gets(details); void Display ( ) cout<<modelno<<make<<zoom<<details<<endl; long GetModelNo ( ) return ModelNo; ; 5. (a) What do you understand by Selection & Projection operations in relational algebra? 2 Consider the following tables ESHOP and ITEM and answer (b) and (c) parts of this question: Table: Computer shop ID Name Address E001 Amita computronics Karelibagh E002 Tech Services O P Road E003 Zeon O P Road E004 Lynx Communication AB Complex E005 Param Computers Naya Bazar Table: ITEM INo IName Price ID I01 Mother Board 10000 E001 I02 Hard Disk 5000 E002 I03 Mouse 300 E002 I04 Mother Board 14000 E004 I05 LCD 7000 E003 I06 Hard Disk 12000 E005 I07 Mouse 350 E004 (b) Write SQL queries for the following: 4 (i) To print all the details of the items with price more than 5000. (ii) To count the number of shops in the table ComputerShop. (iii) To display the item name of the item with maximum price. (iv) To increase the price of mouse by 50 in the table ITEM. (c) Write the output of the following SQL queries: 2 (i) Select IName from ITEM,ESHOP where ITEM.ID=ComputerShop.ID;

(ii) Select count(*) from ITEM; (iii) Select IName, Price from ITEM order by Price Desc; (iv) Select MAX(Price) from ITEM where IName = Mother Board ; 6 (a) Verify the following using Truth Table: 2 X+Y. Z=(X+Y).(X+Z) (b) Draw the logic circuit for the following Boolean expression: 2 AB +A C+A B C (c) Write the SOP form of a Boolean function F, which is represented in a truth table as follows: 1 U V W F 0 0 0 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 (d) Reduce the following Boolean Expression using K-Map: 3 F(a,b, c, d) = Σ (0,1, 2, 4, 5, 6, 7, 8, 10) 7. (a) Differentiate between HTML and XML. 1 (b) Differentiate between HTTP and FTP. 1 (c) Give one advantage of using Star Topology. 1 (d) Out of the following, identify client side script (s) and server side script (s). 1 (i) Javascript (ii) ASP (iii) vbscript (iv) JSP (e) Great Studies University is setting up its Academic schools at Sunder Nagar and planning to set up a network. The university has 3 academic schools and one administration center: 4 Center to center distances between various buildings is as follows : Law School to Business School 60m Law School to Technology School 90m Law School to Admin Center 115m Business School to Technology School 40m Business School to. Admin Center 45m Technology School to Admin Center 25m Number of Computers in each of the Schools/Center is follows: Law School 25 Technology School 50 Admin Center 125 Business School 35 (i) Suggest the most suitable place (i.e. School/Center) to install the server of this university with a suitable reason. (ii) Suggest an ideal layout for connecting these schools/ center for a wired connectivity. (iii) Which device will you suggest to be placed/installed in each of these schools / center to efficiently connect all the computers within these schools / center? (iv) The university is planning to connect its admission office in the closest big city, which is more than 350 km from the university. Which type of network out of LAN, MAN or WAN will be formed? Justify your answer. (f) What is the difference between 3G and 4G. 1 (g) What are cookies? 1 ***********************************************************************************************