#include<iostream.h> #include<conio.h> #include<ctype.h>

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

Sample Paper 2015 Class XII Subject Computer Science

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

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- Comm Subject INFORMATICS PRACTICES. Q1 a) Rewrite the code using While Loop? 2

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

Model Sample Paper 2015

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

KendriyaVidyalayaSangathan Kolkata Region

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

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

Question Bank Class XII Subject : Computer Science

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

COMPUTER SCIENCE

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

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

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

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

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

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

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


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

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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

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

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

Q2) Define a class candidate in C++ with following Description: Private Members 4 Number) of type long

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

CLASS-XI COMPUTER SCIENCE

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

Downloaded from

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

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

Computer Science 2006 (Outside Delhi)

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

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

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

General Instructions:

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

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

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

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

DELHI PUBLIC SCHOOL, RUBY PARK, KOLKATA CLASS XII SUBJECT: COMPUTER SCIENCE QUESTION BANK FILE HANDLING:-

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme Sample Question Paper I Subject Code - 083

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

COMPUTER SCIENCE 1998 (Delhi Board)

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

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

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

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.

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 2012 Class XII Subject Computer Science

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

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

2016 COMPUTER SCIENCE

Downloaded from

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

Computer Science 2006 (Delhi)

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

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

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


Class XII Computer Science (083) Sample Question Paper Time allowed: 3 Hours Max. Marks: 70

Computer Science[083]

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

COMPUTER SCIENCE (Theory) Class XII - Code : 083 Blue Print

COMPUTER SCIENCE 2002 (Delhi Board)

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

b) #include<iostream.h> void main() { int a, b; cout<<"input two integer values? "; cin>>a>>b; double avg=(a+b)/2.0; cout<<"average="<<avg<<endl; }

THE INDIAN COMMUNITY SCHOOL, KUWAIT

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

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


(b) Name the header files for the following inbuilt functions. 1 (i) random() (ii) exit() Ans: (i) stdlib.h (ii) process.h/ stdlib.

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE. CLASS- XII Time Allowed: 3 hours Max.

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

Transcription:

Sample Paper -205 Sub:Computer Science Class XII Time: 3Hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C++.(a)Give the difference between the type casting and automatic type conversion.also, give a suitable C++ code to illustrate both. 2.(b)Which C++ header file(s) will be essentially required to be included to run /execute the following C++ source code (Note : Do not include any header file, which is/are not required): void main() char Text[ ]="SomeThing"; cout<< Remaining SMS Chars: <<60-strlen(Text)<<endl;.(c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2 #include <iostream.h> class Book Long Bid,Qty; Public: void Purchase()cin>>Bid>>Qty; void Salecout<<setw(5)<<Bid<< Old: <<Qty<<endl; ; void main() Book B; B.Purchase(); B.Sale() Sale.B(); Sale();.(d). Find the output of the following program: 3 #include<iostream.h> #include<conio.h> #include<ctype.h> class Metro int Mno,TripNo,PassengerCount; Metro(int Tmno=) Mno=Tmno; TripNo=0; PassengerCount=0; void Trip(int PC=20) TripNo++; PassengerCount+=PC; void StatusShow()

cout<<mno<<":"<<tripno<<":"<<passengercount<<endl; ; void main() Metro M(5),T; M.Trip(); T.Trip(50); M.StatusShow(); M.Trip(30); T.StatusShow(); M.StatusShow();.(e). Find the output of the following program: 2 #include<iostream.h> #include<conio.h> #include<ctype.h> typedef char Str80[80]; void main() clrscr(); char *Notes; Str80 Str="vR2GooD"; int L=6; Notes=Str; while(l>=3) Str[L]=(isupper(Str[L])?tolower(Str[L]):toupper(Str[L])) ; cout<<notes<<endl; L--; cout<<l; Notes++; cout<<notes;.(f).observe the following program and find out, which output(s) out of (i) to (iv) will not be expected from the program? What will be the minimum and the maximum value assigned to the variable Chance? 2 #include<iostream.h> #include<stdlib.h> void main( ) randomize( ); int Arr[ ]=9,6,N; int Chance=random(2)+0; for(int I=0; I<2;I++) N=random(2); cout<<arr[n]+chance<< * ;

(i) 9*6* (ii) 9*7* (iii) 9*6* (iv) 20*6* 2 (a)what do you understand by Data Encapsulation and Data Hiding? Also, give a suitable C++ code to illustrate both. 2 2 (b)answer the questions (i) and (ii) after going through the following class: 2 class Travel int PlaceCode;char Place[20];float Charges; Travel() //Function PlaceCode=; strcpy (Place, DELHI ); Charges=000; void TravelPlan(float C) //Function 2 cout<<placecode<< : <<Place<< : <<Charges<<endl; ~Travel() //Function 3 Cout<< Travel Plan Cancelled <<endl; Travel (int PC,char P[],float C) //Function 4 PlaceCode=PC;strcpy(Place,P);Charges=C; ; i) In Object Oriented Programming, what arefunction and Function 4 combined together referred as? ii) In Object Oriented Programming, which concept is illustrated by Function 3? When is this function called/invoked? 2(c)Define a class SUPPLY in C++ with following description: 4 Private Members: Code of type integer FoodName of type string Sticker of type string FoodType of type string A member function GetType() to assign the following values for FoodType as per the given Sticker: Sticker FoodType RED GREEN YELLOW Vegetarian Contains Egg Non-Vegetarian Public Members: A function FoodIn() to allow user to enter values for Code,FoodName,Sticker and call function GetType ( ) to assign respective FoodType. A function FoodOut () to allow user to view the content of all the data members.. 2(d) Answer the questions (i) to (iv) based on the following: 4 class PUBLISHER char Pub[2];

double Turnover; protected: void Register(); PUBLISHER(); void Enter(); void Display(); ; class BRANCH char CITY[20]; protected: float Employees; BRANCH(); void Haveit(); void Giveit(); ; class AUTHOR : private BRANCH, public PUBLISHER int Acode; char Aname[20]; float Amount; AUTHOR(); void Start(); void Show(); ; (i) Write the names of data members, which are accessible from objects belongingto class AUTHOR. (ii) Write the names of all the member functions which are accessible from objectsbelonging to class BRANCH. (iii) Write the names of all the members which are accessible from member functionsof class AUTHOR. (iv) How many bytes will be required by an object belonging to class AUTHOR? 3 (a)write a function SWAP2BEST(int ARR[ ],int Size) in C++ to modify the content of the array in such a way that the elements,which are multiples of 0 swap with the value present in the very next position in the array. ForExample:If the content of array ARR is 90,56, 45, 20,34,54 The content of array ARR should become 56, 90, 45,34,20,54 3 3(b) An array V[40][0] is stored in the memory along the column with each of the element occupying 4 bytes, Find out the address of the location V[3][6] if the location V[30][0] is stored at the address 9000. 3 3(c) Write a function in C++ to perform Insert operation in static circular Queue containing Players information (represented with the help of an array of structure PLAYER). 4 struct PLAYER long PID ; // Player ID char Pname [20] ; // Player Name ; 3(d) Write a function TRANSFORM ( int A[ ][3],int N,int M) in C++ to swap the elements of first and last row. 2 3(e) Evaluate the following POSTFIX notation. Show status of Stack after every step of evaluation (i.e., after each operator) 32, 4, /, 2, *, 2, 3, -, + 2

4. (a) Observe the program segment given below carefully and answer the question that follows: # include<fstream.h> class Book int Bno ; char Title [20] ; public : void EnterVal () cin >> Bno ; cin.getline ( Title, 20); void showval () cout << Bno << # << Title << end l ; ; void Search ( int RecNo) fstream File ;Book B ; File. open ( BOOK.DAT, ios : : binary ios : : in) ; // Statement File. read (( char*) &B, sizeof (B) ) ; B.Show();File.close(); void Modify(int RecNo) fstream File;Book B; File.open( BOOK.DAT,ios::binary ios::in ios :out); B.EnterVal( ); //Statement 2 File.write((char *)&B,sizeof(B)); File.close(); (i) Write statement to position the file pointer to the beginning of the desired record to be read, which is sent as parameter of the function (assuming RecNo stands for the first record) (ii) Write statement 2 to position the file pointer to the beginning of the desired record to be modified, which is sent as parameter of the function (assuming RecNo stands for the first record). 4(b) Write a function in C++to count the word this (including This / THIS too) present in a text file DIARY.TXT. 2 4(C)Write a function in C++ to search for a Toy having a particular ToyCode from a binary file TOY.DAT and display its details (Tdetails),assuming the binary file is containing the objects of the following class. 3 class TOYSHOP int Tcode; //Toy Code char Tdetails[20]; int RTcode( ) return Tcode; void AddToy( ) cin>>tcode;gets(tdetails); void DisToy ( ) cout<<tcode<<tdetails<<endl; ; 5. (a) What do you understand by Degree and Cardinality of a table? 2 5.(b)Consider the following tables ACTIVITY and COACH. Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii) Table: ACTIVITY

ACode ActivityName ParticipantsNum PrizeMoney ScheduleDate 00 Relay 00x4 6 0000 23-Jan-2004 002 High jump 0 2000 2-Dec-2003 003 Shot Put 2 8000 4-Feb-2004 005 Long Jump 2 9000 0-Jan-2004 008 Discuss Throw 0 5000 9-Mar-2004 Table: COACH PCode Name ACode Ahmad Hussain 00 2 Ravinder 008 3 Janila 00 4 Naaz 003 (i) To display the name of all activities with their Acodes in descending order. (ii) To display sum of PrizeMoney for each of the Number of participants groupings (as shown in column ParticipantsNum 0,2,6) (iii) To display the coach s name and ACodes in ascending order of ACode from the table COACH. (iv)to display the content of the GAMES table whose ScheduleDate earlier than 0/0/2004 in ascending order of ParticipantNum. (v) SELECT COUNT(DISTINCT ParticipantsNum) FROM ACTIVITY; (vi) SELECT MAX(ScheduleDate),MIN(ScheduleDate) FROM ACTIVITY; (vii) SELECT SUM(PrizeMoney) FROM ACTIVITY; (viii) SELECT DISTINCT ParticipantNum FROM COACH; 6 6.(a)State and verify De Morgan s Lawsusing truth table. 2 6.(b)Write the equivalent Boolean Expression for the following Logic Circuit. 6.(c)Write the SOP and POS form of a Boolean function R, which is represented in a truth table as follows: A B C R 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 6.(d) Reduce the following Boolean expression using k-map: F(A,B,C,D)= (0,,2,4,5,8,9,0,) 3 7. (a)what out of the following, will you use to have an audio- visual chat with an expert sitting in a far-away place to fox-up a technical issue? i) VoIP ii) email iii) FTP 7.(b)Name one server side scripting language and one client side scripting language. 7. (c)which out of the following comes under Cyber Crime? i) Operating someone s Internet banking accounting, without his knowledge. ii) Stealing a keyboard from someone s computer. iii) Working on someone s computer with his/her permission. 7.(d)Write one advantage of Bus Topology of network. Also, illustrate how 4 computers can be connected with each other using star topology of network. 7. (e) Workalot Consultants are setting up a secured network for their office campus at Gurgaon for their day-to-day office and web-based activities. They are planning to have connectivity between 3 buildings and the head office situated in Mumbai. Answer the questions (i) to (iv) after going through the building position in the campus and other details, which are given below: 4 Distance between various buildings Number of Computers

Building GREEN to RED 0m Building GREEN 32 Building GREEN to BLUE 45m Building RED 50 Building BLUE to RED 65m Building BLUE 45 Gurgaon Campus to Head Office 760m Head Office 0 i) Suggest the most suitable place (i.e. building) to house the server of this organization. Also give a reason to justify your suggested location. ii) Suggest a cable layout of connections between the buildings inside the campus. iii) Suggest the placement of the following devices with justification: ) Switch 2) Repeater iv) The organization is planning to provide a high speed link with its head office situated in MUMBAI using a wired connection. Which of the following cables will be most suitable for this job? ) Optical Fibre 2) Co- axial Cable 3) Ethernet Cable f) Give one suitable example of each URL and Domain Name. g) Name two Proprietary software s along with their application.