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

Size: px
Start display at page:

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

Transcription

1 KUWAIT SAHODAYA EXAMINATION FIRST TERM SUBJECT : COMPUTER SCIENCE (08) : CLASS - XII SET - Time : Hours MM=70 Instructions- (Based on the model of CBSE Exams). a) Find and write the output of the following C++ program code: struct Ticket char Level ; int price ; ; void compute ( Ticket & T ) if ( T.Level == A ) T.price + = 50 ; if ( T.Level == B ) T.price+ = 0 ; if ( T.Level == C ) T.price+ = 0 ; cout<< T.Level << : << T. price <<endl ; void main ( ) Ticket show [ ] = C, 00, A, 50, B, 50 ; for ( int c = ; c > = 0 ; ) compute ( show [ c - - ] ) ; b) Consider the following C++ code and find the possible output(s) from the options(i) to (iv) following it. Also, write the highest and lowest character that can be assigned in the array A when the value of j =. randomize(); char C[ ] = abcdefghij, A[ ] ; for( int j=0; j<; j ++) A[j]=C [ random(j+) ] ; for(int k=; k >= 0; k -- ) cout<<a [ k ]<<"#"; Options :- i) a # b # b # A # ii) c # c # b # a # iii) d # b # c # a # iv) d # c # b # a # c) Find and write the output of the following C++ program code: #define Change ( x ) x* - 5 int array [ ]=5,,9,; int *P=array, C; for(c=; C>=0; C--) array[c]=change (array [ c ]);

2 for (C=0; C<=; C++) cout<<*p<<":"; P++; d) Write the names of the correct header files to compile the code successfully: ifstream FIN("EXAM.TXT"); char ST[ ]="new"; char ST[]="Delhi"; int n = strlen(st); FIN<<ST<<n <<endl; e) Find and write the output of the following C++ program code: void Convert(int&Number, int& n, int m = ) inti ; for(i=n; i<= m ; i ++) Number += i; n = i ; intresult = 0, A=,B= 9; Convert(Result, A); cout<<result << & <<A<<"&"<<B<<endl; Convert(Result, A,B); cout<<result << & << A<<"&"<<B<<endl; Convert (Result, B, A ); cout<<result << & << A<<"&"<<B<<endl; f) What are the difference between call by value and call by reference? Give example. g) Rewrite the following C++ code after removing all syntactical errors with each correction underlined. Typedef double dob; amt dob; cout<<"enter the Amount :"; cin>>amt; for ( j = ; j<=0 ; j++) cout<<amt<< "*"<<j<<end; h) Write the type of C++ tokens from the following : (i) do (ii) defaut (iii) (iv) struct

3 ) a) Write the definition of a class SHOP in C++ with following description : Private Members - ID // data member of integer type - QTY // data member of float type - RATE // data member of float type - Amount // data member of float type - CalAmount( ) // Member function to calculate and return QTY * RATE Public Members - GetDetail( ) // A function to allow user to enter values of ID, QTY, RATE. This Function should also call CalAmount( ) function to assign value for Amount. - DispDetail( ) // A function to display the values of all data members. b) Answer the questions (i) to (iv) based on the following: class Passenger int PCode; protected: char PName[0]; Passenger( ); void Enter( ); void Show( ); ; class Train int TID; protected: char TName[0]; Train( ); void Input( ); void Display( ); ; class Ticket : public Train, private Passenger int Day, Mon, Year; Ticket( ); void Accept ( ); void Show ( ); ; void main( ) Ticket T ; i) Which type of Inheritance out of the following is illustrated in the above example? ii) Write the names of all the members, which are directly accessible by the member Function Accept( ) of class Ticket. iii) Write the names of all the members, which are directly accessible by the object T of class Ticket declared in the main( ) function. iv) What will be the order of execution of the constructors, when the object T of class Ticket declared in the main( ) function?

4 c) Answer the questions (i) to (iv) based on the following: class First int A; protected: float A; First( ); void Get( ); void Show( ) ; ; class Second : private First int B; protected: float B; Second( ); void Get( ); void Show( ); ; class Third : public Second int C; Third( ); void Get( ); void Show( ); ; void main( ) Third T; //Statement ; //Statement i) What will be the size of Object T declared based on class Third? ii) Write the names of all the member functions, which are directly accessible by the object T of class Third as declared in main( ) function. iii) Write Statement to call function Show( ) of class Second from the object T of class Third. iv) What will be the order of execution of the constructors, when the object T of class Third is declared inside main( )? d) What are the differences between Constructor and destructor? Give points with example. e) Observe the following C++ code and answer the questions (i) and (ii). ; class TOP int n ; void Display( ) //Member Function cout<<num<<endl;

5 class BOTTOM: public TOP int m ; void Display( ) //Member Function cout<<num<<endl; ; void main( ) BOTTOM B ; //Statement //Statement i) Which Object Oriented Programming feature is illustrated by the member function () and function () in class TOP and BOTTOM? ii) Write Statement and Statement to execute Member Function and Member Function respectively using the object B. f) Observe the following C++ code and answer the questions (i) and (ii). class EXAM long Code; char EName[0]; float Marks; EXAM( ) //Member Function Code=00;strcpy(EName,"Noname");Marks=0; EXAM(EXAM &E) //Member Function Code=E.Code+; strcpy(ename,e.ename); Marks=E.Marks; ; void main( ) //Statement //Statement i) In OOP what is function? Also write the use of it. ii) Write Statement and Statement to execute Member Function and Member Function respectively.. a) Write definition for a function SUMROW ( int MAT[ ][0],intR,int C ) in C++, which finds sum of the first row and last row elements of the matrix MAT (Assuming C represents number of Columns and R represents number of rows integer ). The result should be:- Sum of First Row = Sum of Last Row = b) Consider the following structure declaration. struct Library 5

6 int BCode ; char BName [ 0 ]; ; Write a function to Push a book into the static stack where each book is based on structure Library. All the necessary variables are passed through parameters of the function. c) Write the definition of a function Reverse(int Ar[ ], int N) in C++, which should reverse the entire content of the array Ar having N elements, without using any other array. Example: if the array Ar contains Then the array should become d) T[0][0] is a two dimensional array, which is stored in the memory along the row with each of its element occupying bytes, find the address of the element T[5][0], if the element T[0][5] is stored at the memory location e) Write the definition of a function ReArange(int A[ ], int N) in C++, which should shift all the elements of the array A to left side and transfer the first element to the last location. Example: if the array A contains Then the array should become f) Write the definition of a member function ADDREC() for a class QUEUE inc++, to add a student in a dynamically allocated Queue of Students considering the following code is already written as a part of the program. struct STUDENT int RNO; char NAME[0]; STUDENT *Next; ; class QUEUE STUDENT *Rear,*Front; QUEUE( ) Rear=NULL; Front=NULL; void ADDEREC(); void DELETEREC(); ; g) Convert the following Infix expression into postfix expression by showing the content of stack for each step. ( A + B ) * C D / E h) Evaluate the following Postfix expression showing the stack contents for each step of calculation. 50, 0, /,5,-,,5,*,+. a) Consider the following function and give the out. The file consists of 00 records. Each record of the file is based class EMPLOYEE (in Q (b) ) void Display ( ) EMPLOYEE E ; ifstream file ( employee.dat, ios :: binary ) ; file.seekg ( * sizeof ( E ) ) ; file.seekg ( * sizeof ( E ) ) ; file. read ( ( char * ) & E, sizeof ( E ) ) ; 6

7 cout<< First = << file. tellg ( ) / sizeof ( E ) + ; file.seekg ( 0, is :: end ) ; cout<< Second = << file. tellg ( ) / sizeof ( E ) + ; file. close ( ) ; b) Consider the following class :- class EMPLOYEE int EID; char Name[0];float Salary; void INPUT( ) cin>>eid;gets(name);cin>>salary; void OUTPUT( ) cout<<eid<<":"<<name<< : <<Salary<<endl; float RetSal( )return Salary; int retno ( ) return EID ; void UPDATE ( ) cout<< Enter Salary ; cin>> Salary ; ; Write definition of a function SUMSAL( ) in C++ to find the total salary paid to all the employees in a company. The employee s detail of this company is stored in a binary file EMPLOYEE.DAT. Display the result in the function. c) Write a function definition SEARCH( ) in C++ to count all the articles the, a and an present in a text file TEXT.TXT. Note : Ensure that the, a and an are counted as independent words and not asa part of any other word. d) The following function is used to modify a record in a binary file EMPLOYEE.DAT where each record is based on class EMPLOYEE(in Q (b) ). Fill in the blanks to execute the code successfully. void Modify ( ) fstream file ; EMPLOYEE E ; file. open ( EMPLOYEE.DAT, ios :: binary ios :: in ios :: out ) ; while ( file. read ( (char * ) &E, sizeof ( E ) ) ) if ( E. RetSal ( ) < 000 ) E. UPDATE ( ); int pos = file. tellg ( ) ; // to set the position of file pointer in order to rewrite. // to write the updated record into the file. file. close ( ) ; e) Consider the Class EMPLOYEE and write a function to display the details of a particular employee from a binary file EMPLOYEE.DAT where each record is based on class EMPLOYEE( in Q (b) ). Accept the employee number in the function. f) Write a function to count number lower case vowels (only ) in a text file INFO.TXT. 7

8 KUWAIT SAHODAYA EXAMINATION FIRST TERM SUBJECT : COMPUTER SCIENCE (08) : CLASS - XII Time : Hours MM=70 Instructions- (Based on the model of CBSE Exams) ANSWER KEY SET,, Q SET SET SET. a) c) h) (i) operator (ii) punctuator (iii) punctuator (iv) none (Full Marks for ALL correct answers - (i), (ii) and (iv)) (½ Mark for any TWO correct answers out of (i), (ii) and (iv)) ( Mark for any ONE correct answer out of (i), (ii) and (iv)) b) d) f) ½ marks for each difference, two points mark mark for example. c) a) d) (i) fstream (ii) string (½ Mark for writing each correct answer) NOTE: Any other header file to be ignored d) b) g) typedefdoubledob; dobamt ; cout<<"enter the Amount :"; cin>>amt; for (int j = ; j<=0 ; j++) cout<<amt<< "*"<<j<<endl; (½ Mark for correcting each correct Error) or ( Mark for only identifying all the errors correctly) e) h) a) B : 80 A : 50 C : 0 mark for each correct line Deduct ½ mark partial answer f) g) e) 9 & 5 & 9 5 & 0 & 9 7 & 0 & ( Mark for writing each correct line) Note:Deduct only ½ Mark for not considering any or all correct placements of & Deduct only ½ Mark for not considering any or all line break g) e) c) 5:9::7:(½ Mark for writing each correct value) Note:Deduct ½ Marks if the values are written in reverse order

9 h) f) b) Correct options (ii) and (iv) Lowest value of array A is a and Highest is c. a) c) d) mark for differences and mark for example. b) f) e) mark for correct answer ( function overloading / polymorphism ) mark for correct answer for statements. c) a) f) ½ mark for each correct answer. ½ mark for each correct statement. d) b) a) (½ Mark for declaring class header correctly) (½ Mark for declaring data members correctly) ( Mark for defining CalAmount() correctly) (½ Mark for taking inputs in GetDetails()) (½ Mark for invoking CalAmount() inside GetDetails()) (½ Mark for defining DispDetails() correctly) (½ Mark for correctly closing class declaration with a semicolon ; ) e) d) c) i) Multiple Inheritance ( Mark for writing correct option) ii) Data Members : PName, TName, Day, Month, Year Member function : Enter, passenger::show, Input ( ),Display ( ), Ticket :: show ( Mark for writing all correct member names ) iii) Input ( ),Display ( ), Accept ( ), Ticket :: show ( Mark for writing all correct member names ) iv) ( Mark for writing correct order) NOTE: No Marks to be awarded for any other combination/order. f) e) b) i) bytes ii) Get( ), ( Show() OR Three::Show( ) ) Get( ),Two::Show() iii) T.Two::Show() iv) First, Second, Third. a) c) d) ( Mark for writing correct formula (for Row major) OR substituting formula with correct values) (Mark for correct calculation) ( Mark for final correct address) b) e) c) ( ½ Mark for correctly writing the loop) ( ½ Mark for correctly writing the logic for reversing the content) c) g) a) (½ Mark for correctly writing the loop) ( Mark for adding first row elements and last row elements) (½ Mark for displaying the results) d) f) e) ( ½ Mark for correctly writing the loop) ( ½ Mark for correctly writing the logic for reversing the content) e) d) h) marks for correct steps using stack. Note reduce marks according to the position of the error.

10 f) b) g) marks for correct steps using stack. Note reduce marks according to the position of the error. g) h) b) (½ Mark for correctly writing the function heading) ( Mark for checking overflow error) (½ Mark for rest of the statements) h) a) f) ( Mark for creating a new Node) ( Mark for accepting values of RNO and NAME) (½ Mark for checking EMPTY condition) (½ Mark for assigning NULL to Rear and Front as T) (½ Mark for connecting Rear with T) (½ Mark for assigning Rear as T). a) c) b) (½ Mark for opening the file correctly) (Mark for reading records from the file) (Mark for comparing the records) (½ Mark for displaying the calculated sum.) b) e) c) ( Mark for opening the text file correctly) ( Mark for reading each character (using any method) from the file) c) a) e) (½ Mark for opening the file correctly) (Mark for reading records from the file) ( ½ Mark for comparing the records along with the input of value for search) d) b) f) ( Mark for opening the text file correctly) ( Mark for reading each characterfrom the file and search for vowels) e) f) d) ½ for each correct answer, mark for correct answer. file. Seekg ( pos sizeof ( E ) ) ; file. wirte ( ( char * ) & E, sizeof ( E ) ) ; f) d) a) ½ for each correct answer, mark for correct answer. First = 7 Second = 0

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

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 I Mid Semester May 01 : Class XII : Computer Science Max Mark 50 : Time Hrs 1. a) What is macro in C++? Give example b) Give the Header file for the following functions:- i) gets ( ) ii) tolower( ) 1 c)

More information

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

(a) Differentiate between a call by value and call by reference method. ATOMIC ENERGY CENTRAL SCHOOL NO- RAWATBHATA Half Yearly Examination 05 Model Paper Class XII Subject Computer Science Time Allowed: hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii)

More information

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

SAMPLE PAPER. Class: XII SUBJECT COMPUTER SCIENCE. Time: 3 Hours MM: 70 SAMPLE PAPER Class - XII SUBJECT COMPUTER SCIENCE Subject: Computer Sc. Class: XII Time: 3 Hours MM: 70 1. (a) Differentiate between a global variable and a local variable. (b) Name the Header file(s)

More information

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

CBSE GUESS PAPER. Roll No. Computer Sc. XII(083)/ Roll No. CBSE GUESS PAPER Computer Sc. XII(083)/2011-12 Time Allowed 3 Hours Maximum Marks- 70 General Instructions: (i) All questions are compulsory. (ii) The paper contains 7 questions. (iii) Programming

More information

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

PRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION ( ) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS PRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION (2018-19) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS MAXIMUM MARKS: 70 General Instructions 1. This question paper contains 7 questions. 2. SECTION

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science HOLIDAYS HOMEWORK 2017-18 CLASS : XII Subject : Computer Science Note : Attempt the following questions in a separate register and make yourself prepared to conquer the world. Chapter- 1 : C++ Revision

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

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

void main() { int global=7 ; func( ::global,global) ; cout<<global<<, <<::global<< \n ; func(global,::global) ; cout<<global<<, <<::global<< \n ; } K.V.NO.3 AFS CHAKERI AUTUMN BREAK HOME WORK 2017-18 CLASS-XII 1. a) Differentiate between an identifier and keywords. b) Name the header files, to which following inbuilt function belong to: a) abs( )

More information

CS201 Latest Solved MCQs

CS201 Latest Solved MCQs Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE CLASS- XII MAX MARKS-70 KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION 01-15 SUBJECT COMPUTER SCIENCE TIME- HOURS Q1 a) What is the Difference between Global Variable and Local Variable?

More information

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE COMMON PRE-BOARD EXAMINATION 2017-2018 Subject Code: 083 CLASS: XII COMPUTER SCIENCE Time Allowed: 3 hours Maximum Marks: 70 Instructions- (i) Please check that this question paper contains 11 printed

More information

Computer Science 2006 (Outside Delhi)

Computer Science 2006 (Outside Delhi) Computer Science 6 (Outside Delhi) General Instructions: Q... All questions are compulsory.. Programming Language: C++ a. Name the header file to which the following belong: () i. pow( ) ii. random( )

More information

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII TIME: 3 HOURS MAX.MARK: 70 General Instructions- (i) All questions are compulsory (ii) Programming Language: C++ 1 (a) When a function is overloaded,

More information

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

SAMPLE PAPER 2015 SUB - COMPUTER SCIENCE - (Theory) CLASS XII Time allowed: 3 hours Maximum marks: 70 SAMPLE PAPER 215 SUB - COMPUTER SCIENCE - (Theory) CLASS XII Time allowed: 3 hours Maximum marks: 7 Instructions : i) All the questions are compulsory. ii) Programming Language (for Q. 1-4): C++ iii) Write

More information

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION 2017 2018 Class: XII Subject : Computer Science Assignment No. 3 1. a) What is this pointer? Explain with example. b) Name the header file

More information

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

(d) Rewrite the following program after removing all the syntax error(s), if any. [2] include <iostream.h> void main ( ) Sample Paper 2012 Class XII Subject Computer Science Time: 3 Hrs. M.M. 70 General instructions: 1) All questions are compulsory. 2) Read all the questions carefully. 3) Programming language C++. Q.1(a)

More information

Question Bank Class XII Subject : Computer Science

Question Bank Class XII Subject : Computer Science 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

More information

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

Sample Paper COMPUTER SCIENCE (Theory) Class-XII Time Allowed: 3hours Maximum Marks: 70 Sample Paper- 2015 COMPUTER SCIENCE (Theory) Class-XII Time Allowed: 3hours Maximum Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C+ + Ques. 1 a) What is the use of inline

More information

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

Quiz Start Time: 09:34 PM Time Left 82 sec(s) Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

Computer Science XII Important Concepts for CBSE Examination Questions

Computer Science XII Important Concepts for CBSE Examination Questions Computer Science XII Important Concepts for CBSE Examination Questions LEARN FOLLOWIING GIVEN CONCEPS 1. Encapsulation: Wraps up data and functions under single unit through class. Create a class as example.

More information

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

JB Academy, Faizabad Half Yearly Examination Subject: Computer Science (083) Class XII JB Academy, Faizabad Half Yearly Examination - 2017-18 Subject: Computer Science (083) Class XII Time: 3 Hours Max. Marks: 70 Instructions: i) All questions are compulsory and so attempt all. ii) Programming

More information

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

KENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70 KENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70 GENERAL INSTRUCTIONS : 1. ALL QUESTIONS ARE COMPULSORY. 2. PROGRAMMING LANGUAGE : C++ Q1. (a) Out of

More information

Come and join us at WebLyceum

Come and join us at WebLyceum Come and join us at WebLyceum For Past Papers, Quiz, Assignments, GDBs, Video Lectures etc Go to http://www.weblyceum.com and click Register In Case of any Problem Contact Administrators Rana Muhammad

More information

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

Autumn Break 2017 Exam Oriented Assignment Class-XII B, Computer Science Autumn Break 2017 Exam Oriented Assignment Class-XII B, Computer Science S.No. 1 Name of Chapter/Topic CLASSES AND OBJECTS HOT Questions 1. What do you understand by member function? 2. Differentiate between

More information

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

CLASS XII GUESS PAPER COMPUTER SCENCE (083) 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

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc CST Semester / Year : EVEN / II Subject Name

More information

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

Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70 Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70 INSTRUCTIONS: All the questions are compulsory. i. Presentation of answers should be neat and to the point. iii. Write down the serial

More information

COMPUTER SCIENCE

COMPUTER SCIENCE Final 2012-13 COMPUTER SCIENCE - 083 (Theory) CLASS XII Time allowed : 3 hours Maximum marks: 70 Instructions : i) All the questions are compulsory. ii) Programming Language : C++. 1. a) What is the difference

More information

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE SET Subject Code: 08 COMMON PRE-BOARD EXAMINATION 07-08 COMPUTER SCIENCE CLASS XII Time Allowed: hours Maximum Marks: 70 General Instructions: Please check that this question paper contains 9 printed pages.

More information

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

Mock Test Paper-3. Computer Science. Duration : 3hrs Max Marks : 70 Mock Test Paper-3 Computer Science Mock Test Paper-3 11 Duration : 3hrs Max Marks : 70 1. (a) How does a class inforce data hiding? 2 (b) Name the header files to which the following belong- 1 (c) Rewrite

More information

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions. Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Reaccredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated 'A'

More information

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE Sample Paper - 2013 Class XII SUBJECT : COMPUTER SCIENCE FIRST SEMESTER EXAMINATION Instructions: (i) All questions are compulsory. (ii) (ii) Programming Language : C++ 1. (a) Name the header files that

More information

A506 / C201 Computer Programming II Placement Exam Sample Questions. For each of the following, choose the most appropriate answer (2pts each).

A506 / C201 Computer Programming II Placement Exam Sample Questions. For each of the following, choose the most appropriate answer (2pts each). A506 / C201 Computer Programming II Placement Exam Sample Questions For each of the following, choose the most appropriate answer (2pts each). 1. Which of the following functions is causing a temporary

More information

Sample Paper Class XI Subject Computer Sience UNIT TEST II

Sample Paper Class XI Subject Computer Sience UNIT TEST II Sample Paper Class XI Subject Computer Sience UNIT TEST II (General OOP concept, Getting Started With C++, Data Handling and Programming Paradigm) TIME: 1.30 Hrs Max Marks: 40 ALL QUESTIONS ARE COMPULSURY.

More information

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

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION FOR CLASS XII SUBJECT: COMPUTER SCIENCE KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION 2014-15 FOR CLASS XII SUBJECT: COMPUTER SCIENCE SET-I F.M. 70 General Instructions: Programming Language C++ All Questions are

More information

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

KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW MARKS QUESTIONS : DATA STRUCTURE KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW 8 MARKS QUESTIONS : DATA STRUCTURE. Write a function in C++ which accepts an integer array and its size as arguments and change all the even number

More information

KendriyaVidyalayaSangathan Kolkata Region

KendriyaVidyalayaSangathan Kolkata Region KendriyaVidyalayaSangathan Kolkata Region Third Pre-Board Examination : 204-5 Please check that this question paper contains 7 questions. Please write down the Serial Number of the question before attempting

More information

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

CLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70 1 CLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70 General Instructions- (i) All questions are compulsory (ii) Programming Language: C++ 1. (a) Differentiate between call-by-value and

More information

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++ No. of Printed Pages : 3 I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination 05723. June, 2015 BCS-031 : PROGRAMMING IN C ++ Time : 3 hours Maximum Marks : 100 (Weightage 75%)

More information

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

void Add() { cin >> trainnumber; gets(trainname); } void display() { cout<<trainnumber <<:<<TrainName<<end; . T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE QUESTION BANK FOR BOARD EXAMINATION 016-17 SUBJECT COMPUTER SCIENCE (Code: 083) Q1. Answer the following questions: a) Name the header file(s) that shall be

More information

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

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO 2008-09 COMPUTER SCIE CE CLASS: XII Time : 3 Hrs. Max. Marks : 70 Instructions : (i) All questions are compulsory. (ii) Programming Language

More information

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

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 KE DRIYA VIDYALAYA SA GATHA,CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO 2008-09. COMPUTER SCIE CE CLASS- XII Time allowed : 3 hours Maximum Marks : 70 1. (a) Explain the difference between an actual parameter

More information

THE INDIAN COMMUNITY SCHOOL, KUWAIT

THE INDIAN COMMUNITY SCHOOL, KUWAIT THE INDIAN COMMUNITY SCHOOL, KUWAIT SERIES : I SE / 2016-2017 CODE : N 083 MAX. MARKS : 70 TIME ALLOWED : 3 HOURS NO. OF PAGES : 9 COMPUTER SCIENCE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

More information

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor. 3.Constructors and Destructors Develop cpp program to implement constructor and destructor. Constructors A constructor is a special member function whose task is to initialize the objects of its class.

More information

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

Mock Test Paper-2. CBSE XII : Computer Science. Duration : 3hrs Max Marks : 70 Mock Test Paper-2 CBSE XII : Computer Science Mock Test Paper-2 1 Duration : 3hrs Max Marks : 70 1. (a) What is the difference between Object Oriented Programming and Procedural programming? 2 (b) Write

More information

CS Introduction to Programming Midterm Exam #2 - Prof. Reed Fall 2015

CS Introduction to Programming Midterm Exam #2 - Prof. Reed Fall 2015 CS 141 - Introduction to Programming Midterm Exam #2 - Prof. Reed Fall 2015 You may take this test with you after the test, but you must turn in your answer sheet. This test has the following sections:

More information

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

SPLIT-UP SYLLABUS ----CHENNAI REGION COMPUTER SCIENCE (Code: 083) Class-XII Academic Session SPLIT-UP SYLLABUS ----CHENNAI REGION COMPUTER SCIENCE (Code: 083) Class-XII Academic Session 2008-09 Sr.No. Duration Number of Working Days From To Topic to be Covered Nos. of Periods required CAL/TAL

More information

COMS W3101 Programming Language: C++ (Fall 2016) Ramana Isukapalli

COMS W3101 Programming Language: C++ (Fall 2016) Ramana Isukapalli COMS W3101 Programming Language: C++ (Fall 2016) ramana@cs.columbia.edu Lecture-2 Overview of C C++ Functions Structures Pointers Design, difference with C Concepts of Object oriented Programming Concept

More information

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

(i) case (ii) _delete (iii) WHILE (iv) 21stName KENDRIYA VIDAYALAYA SANGATHAN ERNAKULAM REGION PREBOARD EXAMINATION 208-9 CLASS :XII MAX. MARKS : 70 SUBJECT : COMPUTER SCIENCE Instructions: TIME :3 HRS (i) Please check that this question paper contains

More information

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

DELHI PUBLIC SCHOOL BOKARO STEEL CITY DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION 2015-2016 Class: XII Subject : Computer Science Assignment No. 3 Question 1: (a) What is the difference between Call by Value and Call by

More information

Object Oriented Pragramming (22316)

Object Oriented Pragramming (22316) Chapter 1 Principles of Object Oriented Programming (14 Marks) Q1. Give Characteristics of object oriented programming? Or Give features of object oriented programming? Ans: 1. Emphasis (focus) is on data

More information

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

Guru Gobind Singh Public School Sector : V/B, Bokaro Steel City Guru Gobind Singh Public School Sector : V/B, Bokaro Steel City 1. a) Write the types of tokens(keywords and user identifiers) from the following : i) case ii) _delete iii) WHILE iv) 21stName b) Which

More information

INTERNATIONAL INDIAN SCHOOL, RIYADH. Ch 1 C++ Revision tour

INTERNATIONAL INDIAN SCHOOL, RIYADH. Ch 1 C++ Revision tour Grade- XII Computer Science Worksheet Ch 1 C++ Revision tour 1) Explain in brief the purpose of function prototype with the help of a suitable example. 2) What is the benefit of using default parameter/argument

More information

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak OBJECT ORIENTED PROGRAMMING Ms. Ajeta Nandal C.R.Polytechnic,Rohtak OBJECT ORIENTED PARADIGM Object 2 Object 1 Data Data Function Function Object 3 Data Function 2 WHAT IS A MODEL? A model is an abstraction

More information

C++ Structures Programming Workshop 2 (CSCI 1061U)

C++ Structures Programming Workshop 2 (CSCI 1061U) C++ Structures Programming Workshop 2 (CSCI 1061U) Faisal Qureshi http://faculty.uoit.ca/qureshi University of Ontario Institute of Technology C++ struct struct keyword can be used to define new data types

More information

Downloaded from

Downloaded from Unit I Chapter -1 PROGRAMMING IN C++ Review: C++ covered in C++ Q1. What are the limitations of Procedural Programming? Ans. Limitation of Procedural Programming Paradigm 1. Emphasis on algorithm rather

More information

l Determine if a number is odd or even l Determine if a number/character is in a range - 1 to 10 (inclusive) - between a and z (inclusive)

l Determine if a number is odd or even l Determine if a number/character is in a range - 1 to 10 (inclusive) - between a and z (inclusive) Final Exam Exercises Chapters 1-7 + 11 Write C++ code to: l Determine if a number is odd or even CS 2308 Fall 2016 Jill Seaman l Determine if a number/character is in a range - 1 to 10 (inclusive) - between

More information

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli COMS W3101 Programming Language: C++ (Fall 2015) ramana@cs.columbia.edu Lecture-2 Overview of C continued C character arrays Functions Structures Pointers C++ string class C++ Design, difference with C

More information

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli COMS W3101 Programming Language: C++ (Fall 2015) ramana@cs.columbia.edu Lecture-2 Overview of C continued C character arrays Functions Structures Pointers C++ string class C++ Design, difference with C

More information

cout << "How many numbers would you like to type? "; cin >> memsize; p = new int[memsize];

cout << How many numbers would you like to type? ; cin >> memsize; p = new int[memsize]; 1 C++ Dynamic Allocation Memory needs were determined before program execution by defining the variables needed. Sometime memory needs of a program can only be determined during runtime, or the memory

More information

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive)

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive) Final Exam Exercises Chapters 1-7 + 11 Write C++ code to:! Determine if a number is odd or even CS 2308 Fall 2018 Jill Seaman! Determine if a number/character is in a range - 1 to 10 (inclusive) - between

More information

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR STUDENT IDENTIFICATION NO MULTIMEDIA COLLEGE JALAN GURNEY KIRI 54100 KUALA LUMPUR FIFTH SEMESTER FINAL EXAMINATION, 2014/2015 SESSION PSD2023 ALGORITHM & DATA STRUCTURE DSEW-E-F-2/13 25 MAY 2015 9.00 AM

More information

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

Guru Harkrishan Public School, Karol Bagh Pre Mock Class XII Sub: COMPUTER SCIENCE Allowed :3 hrs Guru Harkrishan Public School, Karol Bagh Pre Mock 2014-15 Class XII Sub: COMPUTER SCIENCE Time Allowed :3 hrs M.M. 70 Please check that this question paper contains 9 printed pages. Please check that

More information

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive)

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive) Final Exam Exercises CS 2308 Spring 2014 Jill Seaman Chapters 1-7 + 11 Write C++ code to: Determine if a number is odd or even Determine if a number/character is in a range - 1 to 10 (inclusive) - between

More information

Computer Science 2006 (Delhi)

Computer Science 2006 (Delhi) Computer Science 6 (Delhi) General Instructions: Q... All questions are compulsory.. Programming Language: C++ a. Name the header file to which the following belong () i. abs( ) ii. isupper( ) b. Illustrate

More information

Multiple Choice (Questions 1 14) 28 Points Select all correct answers (multiple correct answers are possible)

Multiple Choice (Questions 1 14) 28 Points Select all correct answers (multiple correct answers are possible) Name Closed notes, book and neighbor. If you have any questions ask them. Notes: Segment of code necessary C++ statements to perform the action described not a complete program Program a complete C++ program

More information

Operators in C. Staff Incharge: S.Sasirekha

Operators in C. Staff Incharge: S.Sasirekha Operators in C Staff Incharge: S.Sasirekha Operators An operator is a symbol which helps the user to command the computer to do a certain mathematical or logical manipulations. Operators are used in C

More information

Assignment 3 Class XII (Computer Science 083) Topic Array

Assignment 3 Class XII (Computer Science 083) Topic Array Assignment 3 Class XII (Computer Science 083) Topic Array 1. What is meant by base address of an array? 2. What are the preconditions for Binary Search to be performed on a single dimension array? 3. Calculate

More information

List of Practical for Class XII Computer Science

List of Practical for Class XII Computer Science List of Practical for Class XII Computer Science P.01. Write a complete C++ program to define class Garment with following description: Private members: Code - type string Type - type string Size - type

More information

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C Practical -1 Babaria Institute of Technology LEARN CONCEPTS OF OOP 1. Explain Object Oriented Paradigm with figure. 2. Explain basic Concepts of OOP with example a. Class b. Object c. Data Encapsulation

More information

8. Functions (II) Control Structures: Arguments passed by value and by reference int x=5, y=3, z; z = addition ( x, y );

8. Functions (II) Control Structures: Arguments passed by value and by reference int x=5, y=3, z; z = addition ( x, y ); - 50 - Control Structures: 8. Functions (II) Arguments passed by value and by reference. Until now, in all the functions we have seen, the arguments passed to the functions have been passed by value. This

More information

CS201- Introduction to Programming Current Quizzes

CS201- Introduction to Programming Current Quizzes CS201- Introduction to Programming Current Quizzes Q.1 char name [] = Hello World ; In the above statement, a memory of characters will be allocated 13 11 12 (Ans) Q.2 A function is a block of statements

More information

AC55/AT55 OBJECT ORIENTED PROGRAMMING WITH C++ DEC 2013

AC55/AT55 OBJECT ORIENTED PROGRAMMING WITH C++ DEC 2013 Q.2 a. Discuss the fundamental features of the object oriented programming. The fundamentals features of the OOPs are the following: (i) Encapsulation: It is a mechanism that associates the code and data

More information

SAURASHTRA UNIVERSITY

SAURASHTRA UNIVERSITY SAURASHTRA UNIVERSITY RAJKOT INDIA Accredited Grade A by NAAC (CGPA 3.05) CURRICULAM FOR B.Sc. (Computer Science) Bachelor of Science (Computer Science) (Semester - 1 Semester - 2) Effective From June

More information

Starting Savitch Chapter 10. A class is a data type whose variables are objects. Some pre-defined classes in C++ include int,

Starting Savitch Chapter 10. A class is a data type whose variables are objects. Some pre-defined classes in C++ include int, Classes Starting Savitch Chapter 10 l l A class is a data type whose variables are objects Some pre-defined classes in C++ include int, char, ifstream Of course, you can define your own classes too A class

More information

Object Oriented Programming. Solved MCQs - Part 2

Object Oriented Programming. Solved MCQs - Part 2 Object Oriented Programming Solved MCQs - Part 2 Object Oriented Programming Solved MCQs - Part 2 It is possible to declare as a friend A member function A global function A class All of the above What

More information

Multiple Choice (Questions 1 14) 28 Points Select all correct answers (multiple correct answers are possible)

Multiple Choice (Questions 1 14) 28 Points Select all correct answers (multiple correct answers are possible) Name Closed notes, book and neighbor. If you have any questions ask them. Notes: Segment of code necessary C++ statements to perform the action described not a complete program Program a complete C++ program

More information

Sample Paper, 2015 Subject: Computer Science Class 12 th

Sample Paper, 2015 Subject: Computer Science Class 12 th Sample Paper, 2015 Subject: Computer Science Class 12 th Time: 3 Hours Max. Marks: 70 Instructions: i) All questions are compulsory and so attempt all. ii) Programming language: C++. iii) Please check

More information

An Object Oriented Programming with C

An Object Oriented Programming with C An Object Oriented Programming with C By Tanmay Kasbe Dr. Ravi Singh Pippal IDEA PUBLISHING WWW.ideapublishing.in i Publishing-in-support-of, IDEA PUBLISHING Block- 9b, Transit Flats, Hudco Place Extension

More information

For Teacher's Use Only Q No Total Q No Q No

For Teacher's Use Only Q No Total Q No Q No Student Info Student ID: Center: Exam Date: FINALTERM EXAMINATION Spring 2010 CS201- Introduction to Programming Time: 90 min Marks: 58 For Teacher's Use Only Q No. 1 2 3 4 5 6 7 8 Total Marks Q No. 9

More information

Dynamic Data Structures

Dynamic Data Structures Dynamic Data Structures We have seen that the STL containers vector, deque, list, set and map can grow and shrink dynamically. We now examine how some of these containers can be implemented in C++. To

More information

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083) KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION CLASS XII COMMON PREBOARD EXAMINATION 05-06 COMPUTER SCIENCE (08) Time: hours Max. Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming

More information

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object CHAPTER 1 Introduction to Computers and Programming 1 1.1 Why Program? 1 1.2 Computer Systems: Hardware and Software 2 1.3 Programs and Programming Languages 8 1.4 What is a Program Made of? 14 1.5 Input,

More information

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

COMPUTER SCIENCE Time allowed : 3hours] [Maximum Marks :70 COMPUTER SCIENCE-2010 Time allowed : 3hours] [Maximum Marks :70 Instructions (i) (ii) All questions are compulsory Programming Language : C++ 1. (a) What is the difference between automatic type conversion

More information

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++ Introduction to Programming in C++ Course Text Programming in C++, Zyante, Fall 2013 edition. Course book provided along with the course. Course Description This course introduces programming in C++ and

More information

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL Sub : Computer Science Full Portion Exam Max. Mark : 150 Class : XII - EM Time : 3.00 Hrs PART - I I. Choose the correct answer. 75 x 1 = 75 1. In Save As dialog

More information

FORM 2 (Please put your name and form # on the scantron!!!!)

FORM 2 (Please put your name and form # on the scantron!!!!) CS 161 Exam 2: FORM 2 (Please put your name and form # on the scantron!!!!) True (A)/False(B) (2 pts each): 1. Recursive algorithms tend to be less efficient than iterative algorithms. 2. A recursive function

More information

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE ASSIGNMENT CLASS : XII (2015-16) COMPUTER SCIENCE Short answer typequestions: 1.(a)What is the difference between logical error and runtime error? Give suitable example for the same. (b) What is the difference

More information

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

Code No. 083 Time allowed: 3 hours Maximum Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming language: C++ Sample Paper Class XII Subject Computer Science Please check that this question paper contains 7 printed pages. Code number given on the right hand side of the question paper should be written on the title

More information

CSE143 Exam with answers Problem numbering may differ from the test as given. Midterm #2 February 16, 2001

CSE143 Exam with answers Problem numbering may differ from the test as given. Midterm #2 February 16, 2001 CSE143 Exam with answers Problem numbering may differ from the test as given. All multiple choice questions are equally weighted. You can generally assume that code shown in the questions is intended to

More information

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and #include The Use of printf() and scanf() The Use of printf()

More information

If the function modify( ) is supposed to change the mark of a student having student_no y in the file student.dat, write the missing statements to modify the student record. 10. Observe the program segment

More information

Computer Science (330)

Computer Science (330) Lesson 1 Anatomy of a Digital Computer Sr. Secondary Course (Syllabus) Computer Science (330) 1.3 Functions and Components of a Computer 1.3.1 How the CPU and Memory work 1.4 Input devices 1.4.1 Keyboard

More information

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION 2018-19 CLASS XII Sub: COMPUTER SCIENCE (083) Time allowed: 3 Hours Max. Marks: 70 General Instructions: (a) All questions are

More information

vinodsrivastava.com Constructor and Destructor

vinodsrivastava.com Constructor and Destructor vinodsrivastava.com Constructor and Destructor Constructor : it is a special member function of class with the following unique features 1. It has the same name as the name of the class they belongs to

More information

C++_ MARKS 40 MIN

C++_ MARKS 40 MIN C++_16.9.2018 40 MARKS 40 MIN https://tinyurl.com/ya62ayzs 1) Declaration of a pointer more than once may cause A. Error B. Abort C. Trap D. Null 2Whice is not a correct variable type in C++? A. float

More information

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

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

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each. I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK 70. a) What is the difference between Hardware and Software? Give one example for each. b) Give two differences between primary and secondary memory.

More information