Question Bank Class XII Subject : Computer Science

Similar documents
COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

Somany Vidyapeeth, Masani, Rewari

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

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

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

Sample Paper, 2015 Subject: Computer Science Class 12 th

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

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

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

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

Sample Paper 2012 Class XII Subject COMPUTER SCIENCE (Theory)

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

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

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

Computer Science 2006 (Delhi)

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

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

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

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN Class- XI [INFORMATICS PRACTICES] Time Duration: 3 Hrs M. M. 70 General instruction: All questions are compulsory

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

Computer Science 2006 (Outside Delhi)

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (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

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

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

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

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

COMPUTER SCIENCE 1998 (Delhi Board)

Sample Paper 2012 Class XII Subject Computer Science

CBSE 12th Computer Science Question Papers

2016 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

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

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

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


Model Sample Paper 2015

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

KendriyaVidyalayaSangathan Kolkata Region

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

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

Sample Paper 2015 Class XII Subject Computer Science

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

List of Practical for Class XII Computer Science

CLASS XII GUESS PAPER COMPUTER SCENCE (083)


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


KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE- CLASS- XII. Marking scheme

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

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

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 QUESTION PAPER CLASS-XII, SESSION: SUBJECT: COMPUTER SCIENCE

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

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

KENDRIYA VIDYALAYA SANGATHAN

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

MOCK PRE-BOARD EXAMINATION 2017_18 Class : XII Computer Science ( Answer Key)

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

KENDRIYA VIDYALAYA SANGATHAN

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

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

PART I. Answer all questions in this Part. While answering questions in this Part, indicate briefly your working and reasoning, wherever required.

(4) Find the syntax error(s), if any, in the following program: #include main() int x[5],*y,z[5]; for(i=0;i<5;i++) x[i]=i; z[i]=i+3; y=z; x=y; (5) Rew

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

INDIAN SCHOOL DARSAIT DEPARTMENT OF ICT

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

COMPUTER SCIENCE (330) TUTOR MARKED ASSIGNMENT

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

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

COMPUTER SCIENCE Paper 1

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

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK CLASS-XII INFORMATICS PRACTICES

CBSE Sample Paper for Computer Science Class XII.

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

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

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

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

Downloaded from

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

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

COMPUTER SCIENCE 2002 (Delhi Board)

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

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

COMPUTER SCIENCE (CODE 083) CLASS XII Time allowed : 3Hours Maximum. Marks 70

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

Transcription:

Question Bank Class XII Subject : Computer Science Q1. What is the difference between call by reference & call by value method in a user defined function in C++? Explain it with suitable example. Q.2.Write the names of the header files, which is/are essentially required to execute the following functions: i) isdigit( ) ii) sin( ) iii)gets() iv)open() v) seekg() Q.3. Rewrite the following program after removing all the syntactical errors (if any), underlining each correction. include<iostream.h> typedef char[40] string; void main( ) string S= Australia ; L=strlen(S); cout<< String <<S<< has <<L<< Characters <<endl; } Q 4. Give the output of the following program ( Assuming that all required header files are included in the program ) #define i 5 class TEMP static int a; float b; TEMP( ) b=10; } void INTEMP( ) a++; b=a+10; } void OUTTEMP( ) cout<<a*i<<"$"<<b-3<<endl; } }; int TEMP::a=2; void main() TEMP ob[5]; for(int x=1;x<5;x++) ob[x].intemp( );

for(x=1;x<5;x++) ob[x].outtemp( );} Q. 5. Give the output of the following program ( Assuming that all required header files are included in the program ) : #include<iostream.h> #include<stdio.h> #include<conio.h> void TRANSFER(char *s1,char *s2) int n,j=0; for(int i=0;*(s1+i)!='\0';i++) n=*(s1+i); if(n%2==0) *(s2+j++)=*(s1+i); } } void main() char *p="charlesbabbage",q[80]; TRANSFER(p,q); cout<<q<<endl;} Q. 6.Go through the following c++ code, find out the correct possible output(s) from the suggested output options i) to iv). Also write the highest value which can be assigned to variable G : #include<iostream.h> #include<stdlib.h> void main( ) randomize( ); int G,H=5; G=random(H)+30; for(int i=35;i>g;i--) cout<<i<< $ ; cout<<i; } 1. 35$34$33$32$31$30$ 2. 35$34$33$32$31 3. 30$31$32$33$34$35$36 4. 35$34$33$32$31$30 Q. 7. What is constructor overloading? Support your answer with example Q. 8. Answer the questions (i) and (ii) after going through the following class : class BUS

private: char Pname[30],TicktNo[20]; float Fare; BUS( ) //function 1 strcpy(pname, \0 ); strcpy(ticktno, \0 ); Fare=0; } void Details( ) //function 2 cout<<pname<<endl<<ticktno<<endl<<fare<<endl; } BUS(char * name, char *tno, float N); //function 3 BUS(BUS &F); // function 4 }; 1. In OOP, what is function 3 referred to as? Also define this function. 2. Define function 4 and write about its purpose? Q. 9.Answer the questions (1) to (4) based on the following class Student private : char Rollno[20], Sname[30]; protected : auto float marks; Student( ); void ENROL( ); void SHOW( ); }; class Graduate: public Student char Fname[30]; protected: unsigned int age; Graduate( ); void GENROL( ); void GSHOW( ); }; class Pgraduate: private Graduate char Mname[25]; signed int year; Pgraduate( ); void PGENROL( );

}; void PGSHOW( ); 1. Mention the member names that are accessible by an object of Pgraduate class. 2. Name the data members which can be accessed by the objects of Graduate class. 3. Name the data members that can be accessed by the functions of Pgraduate class. 4. How many bytes will be occupied by an object of class Pgraduate? Q10 An array PP[40]32] is stored in the memory along the row with each of the elements occupying 10 bytes. Find out the memory location for the element PP[18][22], if the element PP[7][10] is stored at memory location 5000. Q11 Write functions to perform PUSH & POP operations in a dynamically allocated stack containing the objects of the following structure: struct NODE char name[30]; float fees; NODE *next; }; Q12 Consider the class class QUEUE private: int data[20],front,rear; QUEUE( ) front=rear=-1; } void INSQ(int d); //to insert an element into queue void DELQ( ); //to delete an element from the queue void PRINTQ( ); //to print the current status of queue }; Complete the definition of function DELQ( ) of above class. Q13. Evaluate the following postfix notation of expression 30, 6, 4, +, /, 14, +, 4, * Q14. Write a function to delete a record on the given model number for a TV from the binary file TV.DAT containing the objects of TV (as defined below) :

class TV long model; float size; char brand[30],comp[30]; long retmodel( ) return model; } void Input( ) cin>>model>>size; gets(brand); gets(comp); } void Output( ) cout<<model<<size<<brand<<comp<<endl; } }; Q15 What do you understand by Primary Key and Alternate Key. Explain with example Q16. Consider the following table GAMES and PLAYER. Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii). Table : GAMES GAMENAME NUMBER PRZMONEY SCHDATE GCODE 101 Chess 5 25000 23 Jan 2010 102 Badminton 3 38000 12 Nov 2008 103 Carrom 6 18000 18 Mar 2010 105 Table Tennis 3 30000 09 Jan 2009 108 Basketball 5 40000 29 Apr 2009 Table : PLAYER NAME GCODE PCODE 1 Rakesh Srivastava 101 2 Nilesh Mishra 102 3 Vandana 108 4 Ravi Jindal 105 1. to display the details of those games which are having prize money less than 30000 and organized before 2009. 2. to display the name of PLAYERS in reverse alphabetical order. 3. to increase the prize money by 1000 for those games which name starts with B. 4. Insert an additional attribute namely DOB for entering date of birth in table PLAYER. 5. SELECT GAMENAME,NAME FROM GAMES G,PLAYER P WHERE G.GCODE=P.GCODE

6. SELECT MIN(SCHDATE), MAX(PRZMONEY) FROM GAMES ; 7. SELECT AVG(PRZMONEY) FROM GAMES WHERE SCHDATE< 01-JAN- 2009 ; 8. SELECT COUNT(DISTINCT NUMBER) FROM GAMES; Q17 If F(P,Q,R,S) = π (0,2,4,5,6,7,8,10,11,12,14), obtain the simplified form using K-Map. Q18 (a). What do you understand by Primary Key (b). Consider the following tables Employee and salary. Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii) Table : Employee Eid Name Deptid Qualification Sex 1 Deepali Gupta 101 MCA F 2 Rajat Tyagi 101 BCA M 3 Hari Mohan 102 B.A M 4 Harry 102 M.A M 5 Sumit Mittal 103 B.Tech M 6 Jyoti 101 M.Tech F Table : Salary Eid Basic DA HRA Bonus 1 6000 2000 2300 200 2 2000 300 300 30 3 1000 300 300 40 4 1500 390 490 30 5 8000 900 900 80 6 10000 300 490 89 a. To display the frequency of employees department wise. b. To list the names of those employees only whose name starts with H c. To add a new column in salary table. the column name is total_sal.

d. To store the corresponding values in the total_sal column. e. Select name from employee where eid=(select eid from salary where basic= (select max(basic) from salary)); f. select max(basic) from salary where bonus >40; g. Select count(*) from employee group by sex; h. select Distinct deptid from Employee; Q. 19. (a) State and prove the Distributive law algebraically. (b). Write the equivalent POS expression of following SOP form F (x,y,z)= (0,2,4,6) (c). Draw the Logical circuit of the following expression with the help of NAND gate only x+yz (d). Obtain the simplified form of a Boolean expression using K-Map. F(a,b,c,d)= (0,1,2,3,4,7,11,12,14) Q. 20(a). What do your understand by Hackers? (b). Differentiate between Internet & Intranet (c). Expand the following terminology : 1. SMS 3.GPRS 5.CDMA 2. FTP 4 GSM 6.FSF (d). Define Repeater. (e). A company in Reliance has 4 wings of buildings as shown in the diagram:

Center to center distances between various Buildings: W3 to W1 50m W1 to W2 60m W2 to W4 25m W4 to W3 170m W3 to W2 125m W1 to w4 90m Number of computers in each of the wing: W1 150 W2 15 W3 15 W4 25 Computers in each wing are networked but wings are notnetworked. The company has now decided to connect the wings also. i. Suggest a most suitable cable layout & topology of the connection between the wings. ii. The company wants internet accessibility in all the wings. Suggest an economic technology. iii. Suggest the placement of the following devices with justification if the company wants minimized network traffic a)repeater b)hub c)switch d)bridge iv. The company is planning to link its head office situated in India with the offices at Reliance. Suggest a way to connect it; the company does not want to compromise with the speed of connectivity. Justify your answer.