Padasalai.Net s Model Question Paper

Similar documents
+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1

SRI SARASWATHI MATRIC HR SEC SCHOOL PANAPAKKAM +2 IMPORTANT 2 MARK AND 5 MARK QUESTIONS COMPUTER SCIENCE VOLUME I 2 MARKS

XII- COMPUTER SCIENCE VOL-II MODEL TEST I

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. TWO MARKS

R.PRAKASH COMPUTER TEACHER

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL

C++ 8. Constructors and Destructors

PART I. Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++.

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

HIGHER SECONDARY COMPUTER SCIENCE

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

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

CS201 Latest Solved MCQs

Introduction to Programming Using Java (98-388)

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

Object Oriented Programming. Solved MCQs - Part 2

Short Notes of CS201

Interview Questions of C++

COIMBATORE EDUCATIONAL DISTRICT

CS201 - Introduction to Programming Glossary By

PART - I 75 x 1 = The building blocks of C++ program are (a) functions (b) classes (c) statements (d) operations

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER)

CS201- Introduction to Programming Current Quizzes

cout<< \n Enter values for a and b... ; cin>>a>>b;

PROGRAMMING FUNDAMENTALS

CS304 Object Oriented Programming Final Term

SURA's Guides for 3rd to 12th Std for all Subjects in TM & EM Available MARCH [1]

Cpt S 122 Data Structures. Introduction to C++ Part II

C++_ MARKS 40 MIN

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

6.096 Introduction to C++ January (IAP) 2009

Object Oriented Pragramming (22316)

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

M1-R4: Programing and Problem Solving using C (JAN 2019)

VOLUME-2 OBJECT TECHNOLOGY Chap-1 Object Oriented Concepts Using C++

Computer Science (330)

Ch02. True/False Indicate whether the statement is true or false.

COMPUTER APPLICATION

1. Describe History of C++? 2. What is Dev. C++? 3. Why Use Dev. C++ instead of C++ DOS IDE?

Object Oriented Design

CS201 Some Important Definitions

Tokens, Expressions and Control Structures

UNIT- 3 Introduction to C++

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year

- HALF YEARLY EXAM ANSWER KEY DEC-2016 COMPUTER SCIENCE ENGLISH MEDIUM

ADARSH. FAQ for +2 Computer Science. Supplementary Edition. VOL-II. P.Simon Navis

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL

C Programming Multiple. Choice

CSc Introduction to Computing

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

Objectives. Chapter 2: Basic Elements of C++ Introduction. Objectives (cont d.) A C++ Program (cont d.) A C++ Program

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 12: Classes and Data Abstraction

Chapter 2: Basic Elements of C++

C Language, Token, Keywords, Constant, variable

Chapter 2: Basic Elements of C++ Objectives. Objectives (cont d.) A C++ Program. Introduction

Review of the C Programming Language

Fundamental Concepts and Definitions

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

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

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

MaanavaN.Com CS1203 OBJECT ORIENTED PROGRAMMING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

MAN4A OBJECT ORIENTED PROGRAMMING WITH C++ Unit I - V

Programming in C++ 4. The lexical basis of C++

1 Lexical Considerations

Higher Secondary Second Year COMPUTER SCIENCE Model question Paper - 3


Model Viva Questions for Programming in C lab

Lexical Considerations

Paytm Programming Sample paper: 1) A copy constructor is called. a. when an object is returned by value

Data Structures using OOP C++ Lecture 3

The Decaf Language. 1 Lexical considerations


CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 9 C++

INTRODUCTION 1 AND REVIEW

Classes. Logical method to organise data and functions in a same structure. Also known as abstract data type (ADT).

STRUCTURING OF PROGRAM


CSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York

Venkateshwar International School Sector-18, Dwarka, New Delhi-78 SAT- PRELIMINARY ROUND Class XII

Review of the C Programming Language for Principles of Operating Systems

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

Basic Elements of C. Staff Incharge: S.Sasirekha

An Object Oriented Programming with C

Creating a C++ Program

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

COMPUTER SCIENCE HIGHER SECONDARY FIRST YEAR. VOLUME II - CHAPTER 10 PROBLEM SOLVING TECHNIQUES AND C PROGRAMMING 1,2,3 & 5 MARKS

OBJ. ORI.& MULT. PROG., M.C.Q. BANK, FOR UNIT -2, SECOND YEAR COMP. ENGG. SEM-4, 2012 PATTERN, U.O.P. UNIT-2

PROGRAMMING IN C++ COURSE CONTENT

Chapter 2: Introduction to C++

Object Oriented Programming(OOP).

Downloaded from

Chapter 2: Special Characters. Parts of a C++ Program. Introduction to C++ Displays output on the computer screen

Data type of a pointer must be same as the data type of the variable to which the pointer variable is pointing. Here are a few examples:

Cpt S 122 Data Structures. Course Review Midterm Exam # 2

Objectives. In this chapter, you will:

Computers Programming Course 5. Iulian Năstac


Darshan Institute of Engineering & Technology for Diploma Studies

Transcription:

Padasalai.Net s Model Question Paper STD: XII VOLUME - 2 MARKS: 150 SUB: COMPUTER SCIENCE TIME: 3 HRS PART I Choose the correct answer: 75 X 1 = 75 1. Which of the following is an object oriented programming language? a) Basic b) Pascal c) C++ d) C 2. Which is a group of related functions and data that serves those functions? a) constant b) Object c) class d) program 3. Which is a kind of a self-sufficient sub program with a specific functional area? a) variable b) constant c) object d) program 4. The mechanism by which the data and functions are bound together within an object definition is called as a) object b) inheritance c) encapsulation d) group of data 5. Which have special meaning to the language compiler? a) keywords b) variables c) constants d) operators 6. Which constant must not contain any fractional part? a) floating point b) integer c) string d) character 7. A constant that contains a single character enclosed within single quotes is a) floating point constant b) character constant c) string constant d) integer constant 8. The escape sequences for New line/ line feed is a) \n b) \o c) \b d) \a 9. The escape sequences for bell sound is a) \n b) \o c) \b d) \a 10. Each string literal is by default added with a special character a) \n b) \o c) \b d) \a 11. Which operator are used only by the preprocessors? a) &&and!! b) == and ++ c) # and ## d)!= and > = 12. How many types the operators are classified based on operand requirements? a) 3 b) 5 c) 13 d) 10 13. Which is the simple assignment operator? a)?: b) >= c) = d) >>= 14. Which are used to group a set of C++ statements? a) // b) c) [ ] d) 15. C++ data types can be broadly classified into categories. a) 4 b) 5 c) 2 d) 3 16. How many storage specifiers are there in C++? a) 3 b) 2 c) 4 d) 5 17. Which variable are automatically initialized to 0(zero) when they are declared? a) Static, register b) Auto, Static c) Extern, register d) extern, auto 18. Which modifies allows the variable to exist in the memory of the computer, even of its function or block within which it is declared loses its scope? a) auto b) Extern c) Static d) Register 19. By default the local variables are a) Static b) Auto c) Extern d) Register 20. Which modifies instructs the compiler to store the variable in the CPU register to optimize access? a) Register b) Static c) Extern d) Auto 21. There are fundamental data types.

a) 2 b) 4 c) 3 d) 5 22. Which data type is used to indicate that a function does not return a value? a) float b) integer c) character d) void 23. What is the range of int data type? a) -32767 to 32768 b) -32768 to 32767 c) -128 to 127 d) -127 to 128 24. 24. Which statement accomplishes jump from the current loop or exit the current loop? a) break b) continue c) stop d) exit 25. A program written in high level language is called as a) object code b) compiler c) executable file d) source code 26. The machine readable form of a program is called as a) source code b) object file c) executable file d) application file 27. creates object file from source code. a) compiler b) executable file c) object file d) application file 28. The statement int A; b; is invalid because a) Only one variable should be given b) Capital A is not allowed c) Variables should be separated by comma d) All of these 29. How many times the following loop will be executed? for(i=1;i<6;i++) a) 1 b) 5 c) 6 d) 7 30. The break statement would exit only a) current loop b) current function c) current program d) none of these Read the following C++ program carefully and answer the Question from 31 to 35 # include<iostream.h> void main() intnum=2; do cout<<num*num<< \t ; num =+ 1; while(num<6); 31. Name the control variable used in the program. a) num b) +=1 c) \t d) None of these 32. What is test expression (condition) used? a) num b) num * num c) (num<6) d) none of these 33. How many times will the loop be executed? a) 6 b) 4 c) 5 d) 3 34. What is the output of the following program? a) 2 4 9 16 25 b) 6 5 6 8 c) 4 9 16 25 d) 0 4 9 25 35. What type of loop statement is used in the program? a) Entry check loop b) Exit check loop c) Entry controlled loop d) Selection loop 36. The return type of the function prototype float power(float, int) is a) char b) double c) int d) float 37. Which one of the following scope variable s lifetime is the lifetime of a program? a) class b) function c) file d) local 38. Which of the following is called scope of resolution operator? a) & b) * c) :: d)?: 39. Which is used to help the compiler to check the data requirements of the function? a) Header files b) function prototype c) function definition d) function calling 40. In C++, What can be assigned to the formal parameters of a function prototype?

a) Default values b) Default arguments c) values d) program 41. The return type of the function prototype fact(float, char, double); is a) char b) float c) int d) double 42. Which of the following is a 2-dimentsional character array? a) Array of strings b) Matrix c) Literals d) Strings 43. Which of the following is an invalid array declaration? a) int array[100]; b) int array[ ]; c) int array[i]; d) constint I = 10; int array [i]; 44. Strings are otherwise called a) Characters b) Names c) Literals d) Constants 45. Write( ) is a member function of a) istream.h b) ostream.h c) string.h d) all of these 46. Memory allotted for intnum[2][4]; is a) 10 bytes b) 16 bytes c) 60 bytes d) 120 bytes 47. Determine the number of elements in the following declaration: inta[10][12]; a) 22 b) 10 c) 120 d) 240 48. class example Intx,y,z; Float m,n; p[5]; In the above snippet, how many objects are created? a) 3 b) 4 c) 5 d) 1 49. class product Inta,b; Float p; Public: Void assign_data( ); Void display( ); ; Void main( ) Product p1,p2; The number of memory bytes allocated for the variable p1 is a) 12 bytes b) 10 bytes c) 8 bytes d) 4 bytes 50. Data members are also called as a) member functions b) pointers c) attributes d) methods 51. In C++ the class variables are known as a) methods b) objects c) tags d) functions 52. The members of a class are accessed using the operator. a) comma b) semicolon c) dot d) colon 53. How many copies of the static member variable is created? a) 2 b) 3 c) 5 d) 1 54. The variable that is initialized only when the first object of the class is created is a) static b) auto c) public d) private 55. In operator overloading the operator functions must be defined as a) member function b) friend function c) either (a) or ( b) d) neither (a) nor (b) 56. The overloaded operator must have at least one operand of a) Built-in type b) User defined type c) array d) derived

57. Which of the following terms means a name having two or more distinct meaning? a) Data Abstraction b) Encapsulation c) Inheritance d) Overloading 58. The overloaded function definitions are permitted for which of the following data types a) Built-in b) User defined c) Derived d) All of these 59. Which of the following is not true related to function overloading? a) Each overloaded function must differ by the number of its formal parameters b) The return type of overloaded functions may be the same data type. c) The default arguments are considered by the C++ compiler as part of parameter list. d) Do not use the same function name for two unrelated functions. 60. By integral promotions, int data type can be converted into which of the following type? a) char b) double c) float d) all of these Read the following C++ snippet carefully and answer questions nos. 61 & 62 Class simple Private: Int x; Public: Simple(int y) X = y; ~simple( ) ; 61. What is the name of the constructor? a) simple b) ~simple c) private d) public 62. What type of constructor is used in this snippet? a) Non-parameterized b) copy c) parameterized d) default Read the following program carefully and answer questions from 63 & 64. Class simple Private: Int x; Public: Simple (int y) X = y; ; Void main( ) Simple S(6); 63. How many objects are created? a) 0 b) 7 c) 1 d) 6 64. What type of constructor is used in the snippet? a) parameterized b) copy c) default d) non-parameterized 65. Which constructors are referred to compiler generated constructors? a) user defined b) default c) operator d) destructor

66. Which are executed in the reverse order of in heritance? a) destructors b) operators c) constructors d) access specifiers 67. Derived class inherits what form from its base class? a) properties b) name c) size d) scope 68. Which of the following is not a type of inheritance? a) single b) multiple c) multiplex d) multilevel 69. New class created from the base class is called a) new class b) secondary class c) derived class d) third class 70. Which is useful in computer based education?[jun 08] a)e-shopping b) CBT c) e-banking d) e-accounting 71. Which became a key component in the national economy?[jun -13] a)computer b) Bank c) Education d) Healthcare 72. Which amongst the following is critical for the success of ITES? a) Cracking b) Digitization c) Data Security d) Computer Ethics 73. How many steps are there in data digitization? a) 5 b) 6 c) 4 d) 7 74. India has laws to prevent computer crimes. a) computer b) legal c) space d) cyber 75. Cracking comes under a) data security b) computer crime c) website service d) transcription PART II Answer any twenty questions in one or two sentence each: 20 x 2 = 40 76. What is the significance of an object? 77. Write notes on impact of modifiers. 78. What are tokens? What are its types? 79. What is the use of break statement? 80. What are the three primary sections of C++? 81. What is meant by return statement? 82. What is an Array? What are its types? 83. What is the use of strcmp( ) function? 84. What are the specification of a class? 85. Write the general form of class declaration. 86. How are functions invoked in function overloading? 87. What are the functions of a constructor? 88. What are the advantages of inheritance? 89. What is call center? 90. What is computer crime? 91. What is encapsulation? 92. What are pointer variables? 93. Based on operand requirements, how many operators are classified? List out. 94. Write the syntax of switch case statement. 95. Differentiate between call by value and call by reference. 96. Find output of the following: #include<iostream.h> #include<conio.h> void main ( ) int i = 20; cout<<i<<i++<<++i; getch( );

97. What will be the output of the following program? # include<iostream.h> void main( ) char ch [ ] = NULL\0 ; cout<<ch; 98. Define operator overloading. 99. Write a note on virus. 100. What are data members and members functions of class? PART III Answer any seven questions only: 7 x 5 = 35 101. Explain for loop structure in C++. 102. Write syntax and explain switch statement with example. 103. Explain call by value method with suitable example. 104. Define: scope. Explain the various types of scopes in C++ language. 105. Define function overloading. Give an example. List its rules. 106. Define: constructor. Write the rules for constructor definition and usage. 107. Define: inheritance. Explain the types of inheritance. 108. Define: base class and derived class. What are the points should be observed while defining a derived class? 109. Find the output of the following program:

110. Debug the following C++ program: