I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.
|
|
- Ilene Henry
- 5 years ago
- Views:
Transcription
1 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' (TN) for MBA and MIB Programmes I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions. 1. OOP language supports object based features, inheritance and. A. Encapsulation. B. Polymorphism. C. Object identity. D. Functions. 2. is an example for Monolithic programming. A. Java. B. BASIC. C. FORTRAN. D. PASCAL. 3. is the fundamental building block of object oriented programming language. A. Module. B. Code. C. Object. D. Function. 4. is one of the ways to achieve polymorphism. A. Inheritance. B. Data overloading. C. Operator overloading. D. Message binding. 5. Inline is a. A. variable. B. object. C. keyword. D. class.
2 6. A is an instance of class. A. code. B. object. C. variable. D. pointer. 7. Public, private, protected are. A. identifiers. B. data members. C. access specifies. D. type of class 8. The access specifies allows functions or data to be accessible to other parts of the program. A. private. B. protected. C. public. D. inherited. 9. The variable mynum has the value 5. How to print a variable to the screen? A. cout<< "My number is", mynum << endl;. B. cout<< "My number is 5" << endl;. C. cout<< My number is << mynum << endl;. D. cout<< "My number is" << mynum << endl;. 10. Operator links a class to a member. A. ::. B... C. ->. D. *. 11. One of the methods to stop the execution of the function is by calling the standard function. A. goto. B. jump. C. stop. D. exit. 12. What is a Constructor? A. A function called when an instance of a class is initialized. B. A function that is called when an instance of a class is deleted. C. A special function to change the value of dynamically allocated memory. D. A function that is called in order to change the value
3 13. is a relationship between classes. A. Polymorphism. B. Inheritance. C. Overloading. D. Overriding. 14. A function is a function that has no body inside its base class. A. inline. B. friend. C. constructor. D. pure virtual. 15. A continue statement causes execution to skip to. A. the first statement after the loop. B. the statement following the continue statement. C. the return 0; statement. D. the next iteration of the loop. 16. In a group of nested loops, which loop is executed the most number of times? A. The outermost loop. B. The innermost loop. C. All loops are executed the same number of times. D. Cannot be determined without knowing the size of the loops bottom of form. 17. A converts from an object of the type of the constructor's parameter to an object of the class. A. conversion function. B. member function. C. class conversion. D. conversion constructors. 18. In C++, 14 % 4 =. A. 1. B. 2 C. 3 D Variables that are declared, but not initialized, contain. A. blank spaces. B. zeros. C. "garbage" values.
4 D. nothing - they are empty. 20. Array indexing always starts with the number. A. 0 B. 1 C. 2 D. \0 21. When a data type must contain decimal numbers, assign the type. A. int. B. char. C. double. D. long int. 22. Set precision requires the header file. A. stdlib.h. B. iomanip.h. C. console.h. D. conio.h. 23. A structure defines a type. A. class. B. pointers. C. arrays. D. variables. 24. are the variables that contain the address of other variables. A. Function. B. String. C. Pointer. D. Identifier. 25. operator returns the address of the identifier. A. &. B. *. C. &&. D.!. 26. The operator is used to return the value of the variable to which the pointer points. A. reference. B. dereference.
5 C. dot. D. arrow. 27. C++ begins its execution with. A. header file. B. main. C. class. D. declaration. 28. main() is a function. A. built in. B. user defined. C. constant. D. derived. 29. is a unary operator that returns the memory address of its operand. A. &. B. ++. C.. D is a stream connected to standard output. A. cin. B. gets. C. out. D. cout. 31. Which of the following is not a correct data type? A. Float. B. Real. C. Int. D. Double. 32. Which of the following is not an arithmetic operator? A. + B. * C. - D. & 33. For a binary member operator function, the left operand is passed through. A. pointer.
6 B. reference. C. this. D. parameter. 34. Which of the following is a logical operator? A. ++ B.?: C. == D. && 35. What punctuation ends most lines of C++ code? A.. (dot). B. ; (semi-colon). C. : (colon). D. ' (single quote). 36. Which of the following is a correct comment? A. */ Comments */. B. ** Comment **. C. /* Comment */. D. { Comment }. 37. A class that is inherited is called as class. A. derived. B. child. C. base. D. abstract. 38. is the newline character. A. \t B. \b C. \a D. \n 39. When following piece of code is executed, what happens? b = 3; a = b++; A. a contains 3 and b contains 4. B. a contains 4 and b contains 4. C. a contains 4 and b contains 3. D. a contains 3 and b contains Which of the following is not a valid relational operator?
7 A. ==. B. =>. C. >=. D. >=. 41. is the symbol that precedes the destructor. A. * B. ~ C. & 42. The parameters specified in the function call are known as parameters A. formal B. actual C. value D. original 43. Which of the following will not return a value? A. null B. void C. empty D. free 44. have the return type void? A. all functions B. constructors C. destructors D. none of the mentioned 45. Function overloading is also similar to which of the following? A. operator overloading B. constructor overloading C. destructor overloading D. none of the mentioned 46. The file iostream includes. A. The declarations of the basic standard input-output library. B. The streams of includes and outputs of program. C. Comment lines. D. only strings.
8 47. function has access to all private and protected members of the class for which it is a friend. A. Friend. B. Member. C. Nonmember. D. Void. 48. function allows to create very efficient code. A. Friend. B. Member. C. Inline. D. Void. 49. Which is not a loop structure? A. for. B. do while. C. while. D. repeat until. 50. A is a variable that receives the value. A. argument. B. parameter. C. variable. D. array. 51. Which one of the following is a built in function? A. stringlen(). B. strlength(). C. strlen(). D. strleng(). 52. function is a function that calls itself repeatedly. A. Friend. B. Inline. C. Recursive. D. Member. 53. is the process of using the same name for two or more functions. A. Function overloading. B. Operator overloading. C. Default function. D. Default function. Constructors.
9 54. A file is closed explicitly using. A. fclose(). B. file_close(). C. fin.close(). D. filestream_object.close(). 55. Which one of the following reads a single character from file? A. cin(). B. put(). C. get(). D. getw(). 56. is used to write a single character to output file. A. cin(). B. put(). C. get(). D. getw(). 57. The library function isalpha() requires the header file. A. <ctype.h>. B. <math.h>. C. <time.h>. D. <stdlib.h>. 58. The technique of building new classes from existing classes is called. A. inheritance B. overloading C. constructor D. polymorphism 59. The class from which another class inherits the property is called class. A. derived B. sub C. subordinate D. base 60. Base class is also called as. A. derived B. sub C. super D. subordinate
10 61. The class which derives the property from other is called as. A. super B. derived C. subordinarte D. base 62. The other name for derived class is. A. subclass B. super class C. subordinate class D. base class 63. The built-in library function is alnum() is testing to determine if the the argument is. A. one of "all" numbers available from the keyboard.. B. an alphabet character. C. an ASCII character. D. an alphanumeric. 64. What does your class can hold? A. data B. functions C. both a & b D. none of the mentioned 65. Which is used to define the member of a class externally? A. : B. :: C. # D. none of the mentioned 66. is not an arithmetic operator. A. + B. - C. * D. == 67. is an entry controlled looping statement. A. for B. repeat C. until
11 D. do..while 68. Which of the following is an exit controlled looping statement? A. for B. while C. do..while D. repeat 69. Which of the following correctly declares an array? A. int array[10]; B. int array; C. array{10}; D. array array[10]; 70. What is the index number of the last element of an array with 9 elements? A. 9 B. 8 C. 0 D. Programmer-defined 71. In a two dimensional array called list with dimensions 4X9 the element 2,3 can be accessed by using the expression. A. list[3][2]. B. list[2,3]. C. list[2][3]. D. list[3,2]. 72. Which of the following accesses the seventh element stored in array? A. array[6]; B. array[7]; C. array(7); D. array; 73. Which of the following gives the value stored at the address pointed to by the pointer a? A. a. B. val(a). C. *a. D. &a. 74. The value can represented using which data type? A. double
12 B. void C. int D. bool 75. Which key word is used to check exception in the block of code? A. catch B. throw C. try D. none of the above 76. Which of the following is the proper keyword to deallocate memory? A. free. B. delete. C. clear. D. remove. 77. Pick out the compound assignment statement. A. a = a - 5 B. a = a / b C. a -= 5 D. a=a When a class A inhereits its properties from class B and class C, then the inheritance is said to be inheritance A. multiple B. multilevel C. single D. hybrid 79. Polymorphism is not implemented through. A. function overloading B. operator overloading C. virtual functions D. contructors and destructors 80. Definition of the function is not necessary in. A. virtual functions. B. function overloading C. pure virtual functions. D. operator overloading
13 81. function specifies the required number of fields to be used while displaying the output value. A. with() B. width() C. fill() D. setf() 82. function specifies the number of digits to be displayed after decimal point. A. width() B. precision() C. fill() D. setf() 83. function clears the flags. A. width() B. precision() C. unsetf() D. setf() 84. setf() function A. clears the flags. B. specifies the number of digits to be displayed after decimal point. C. specifies the required number of fields to be used while displaying the output value. D. sets format flags that control the format of output display 85. The primary difference between float and double is in the of the value they hold. A. address. B. magnitude. C. sign. D. decimal point. 86. precision() is used to. A. sets format flags that control the format of output display B. specifies the number of digits to be displayed after decimal point. C. clears the flags. D. specifies the required number of fields to be used while displaying the output value. 87. ios::right produces the output as. A. left justified B. right justified C. padding between number and the sign. D. decimal conversion
14 88. Which of the following is not a valid file mode? A. ios::in B. ios::out C. ios::truncate D. ios::noreplace 89. is the file mode for opening a file in input mode. A. ios::in B. ios::out C. ios::trunc D. ios::noreplace 90. is the file mode for opening a file in output mode. A. ios::in B. ios::out C. ios::trunc D. ios::noreplace 91. allows access to the specific data without need for accessing its preceding its data items. A. sequential file B. random file C. get file D. put file 92. Which of the following gives the memory address of a variable pointed to pointer a? A. a. B. *a. C. &a. D. address (a). 93. Which one of the following is invalid variable name? A. 1count. B. count. C. count1. D. count_ integer can hold both positive and negative values. A. Unsigned. B. Positive. C. Negative.
15 D. Signed. 95. The elements of an array can be accessed by providing integer expression called. A. superscripts. B. elements. C. values. D. subscripts. 96. The second element of the array in : int zones [5]= { 43,54,56,76,78} can be accessed by. A. zones[2]. B. zones[1]. C. zones[3]. D. zones[4]. 97. The declaration of a two dimensional array called list with dimensions 4 X 9 is represented as. A. int list [4] [9]. B. int list [9][4]. C. int list [4,9]. D. int list[9,4]. 98. The is the function that detects the end of file. A. eof( ). B. getline( ). C. putline( ). D. clear( ). 99. is not a type of scope in c++. A. Global. B. Local. C. File. D. Function Which of the following is the correct operator to compare two variables? A. :=. B. =. C. equal. D. == Variables that are declared inside a function are called as. A. local. B. global.
16 C. scope. D. external Most of the statement in C++ program should end with. A. a full stop (.). B. `a comma (,). C. a semicolon (;). D. a colon (:) is a newline character in c++. A. end B. endl C. \t D. ; 104. If and the switch statements are called as statements. A. iteration. B. jump. C. selection. D. conditional The switch expression must be of type or. A. char, float. B. float, int. C. int, char. D. char, float Find out the error in following block of code. if (x=100) cout<<"x is 100"; A. 100 should be enclosed in quotations. B. There is no semicolon at the end of first line. C. Equals to operator mistake. D. Variable x should not be inside quotation Looping in a program means. A. jumping to the specified branch of program. B. repeat the specified lines of code. C. execute only once. D. jump to random location of the program The last index of strings contains the null-terminated character. A. \1.
17 B. \t C. \0 D. \n 109. If the type specifier of parameters of a function is followed by an ampersand (&), that function call is. A. pass by value. B. pass by reference. C. array of structures. D. array of structures. pointers getline() and write() are oriented functions. A. line. B. character. C. data. D. integer The general form, of assignment operator is. A. variable_name=expression. B. datatype=expression. C. variable=expression. D. datatype=expression In case of pass by reference. A. the values of those variables are passed to the function so that it can manipulate them. B. the location of variable in memory is passed to the function so that it can use the same memory area for its processing. C. the function declaration should contain ampersand (&) in its type declaration. D. the function declaration should contain asterisk (*) in its type declaration Overloaded functions are. A. very long functions that can hardly run. B. two or more functions with the same name but different number of parameters or type. C. short functions that can easily modified. D. one function containing another one or more functions inside it function is a function in which expansion of the function takes place rather than execution. A. Friend. B. Inline. C. Recursive. D. Member.
18 115. The name of a function variable or class is called. A. libraries. B. stream. C. identifiers. D. keywords >> is called as operator. A. insertion. B. extraction. C. greater than. D. lesser than << is called as operator A. insertion. B. extraction. C. greater than. D. lesser than. 118.?: is a. A. ternary operator B. not an operator C. bitwise operator D. shift operator 119. Arguments of functions are separated with. A. comma (,). B. semicolon (;). C. colon (:). D. dot(.) is a variable preserves its value between function calls. A. extern. B. auto. C. register. D. static supports simultaneous input and output operations on file. A. ifstream. B. fopen. C. ostream. D. fstream.
19 122. is a default access specifier for members of class in C++. A. protected B. public C. private D. default 123. A Class can have how many destructor? A. 1 B. 2 C. 3 D The parameter list in function overloading must differ by? A. Number of functions B. Function Size C. Function Name D. Number of argument 125. Data members is also called? A. Attribute B. Method C. Class D. Object 126. In how many ways is polymorphism achived in C++? A. 2 B. 1 C. 3 D A is a special method used to initialize the instance variable of a class. A. Member function B. Destructor C. Constructor D. Structure 128. The keyword brings the members of a namespace into view. A. view. B. using. C. additive.
20 D. show If class A inherits from class B, then B is called of A. A is called of B. A. Super class, Sub class B. Subclass, Super class C. Abstract class, Base Class D. Child class, Sub Class 130. is the mechanism which allows a class A to inherit properties of a class B. A. Data abstraction B. Encapsulation C. Inheritance D. Polymorphism 131. The mechanism that binds code and data together and keeps them secure from outside world is known as A. Abstraction B. Encapsulation C. Inheritance D. Polymorphism 132. Function overloading, operator overloading and virtual functions are the means for implementing. A. Abstraction B. Encapsulation C. Inheritance D. Polymorphism 133. To overload an operator keyword must be used along with the operator to be overloaded. A. Over B. Overload C. void D. Operator 134. The first index number in an array starts with and the index number of an array of size n will be. A. 0, n-1 B. 1, n-1 C. 0, n D. 1, n
21 135. What is the output of the program #include<iostream.h> void main() { int n=1; cout<<endl<<"the numbers are;"<<endl; do { cout <<n<<"\t"; n++; } while (n<=100); cout <<endl; } A. Printsnumbers 0 to 99 B. Prints numbers 1 to 99 C. Prints numbers 0 to 100 D. Print numbers 1 to Which of the following is not a keyword? A. inherit B. auto C. extern D. void 137. The expression 5/2 in c++ is evaluated to. A. 2 B. 3 C. 2.5 D The result of the expression 15%3 in c++ is. A. 5 B. 3 C. 0 D. error 139. Which of the following is not a bitwise operator? A. ` B. >> C. & D. * 140. is a scope resolution operator. A. : B. :: C. := D. =: 141. operator has the highest priority among the following. A. = B. + C. ::
22 D. () 142. An is a collection of elements of same data type. A. structure B. union C. class D. array 143. A function that does not return a value will have return type. A. int B. void C. float D. char 144. operator has the lowest priority. A., B. ++ C. * D is an increment operator A. + B. > C. ++ D.?: 146. variables can be initialized only once. A. void B. static C. const D. int 147. Static variables can be. A. cannot be created B. initialized only once. C. a constant D. a class 148. Which of the following is true? A. presents the standard output stream in c++. B. cout declare in the conio standard file.
23 C. cout is declared as constants. D. cout does nothing in C++ program is not a keyword. A. void B. static C. friend D. stack 150. is a keyword. A. queue B. friend C. stick D. stack Staff Name Suresh R.
II BSC CS [ Batch] Semester III Core: Object Oriented Programming with C Plus Plus - 307B Multiple Choice Questions.
Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Re-accredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated
More informationI BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.
1 of 22 8/4/2018, 4:03 PM 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
More informationShort 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 informationCS201 - 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 informationAbsolute C++ Walter Savitch
Absolute C++ sixth edition Walter Savitch Global edition This page intentionally left blank Absolute C++, Global Edition Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents
More informationUNIT- 3 Introduction to C++
UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage
More informationInterview Questions of C++
Interview Questions of C++ Q-1 What is the full form of OOPS? Ans: Object Oriented Programming System. Q-2 What is a class? Ans: Class is a blue print which reflects the entities attributes and actions.
More informationOBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe
OBJECT ORIENTED PROGRAMMING USING C++ CSCI 5448- Object Oriented Analysis and Design By Manali Torpe Fundamentals of OOP Class Object Encapsulation Abstraction Inheritance Polymorphism Reusability C++
More informationC++_ 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 informationProblem Solving with C++
GLOBAL EDITION Problem Solving with C++ NINTH EDITION Walter Savitch Kendrick Mock Ninth Edition PROBLEM SOLVING with C++ Problem Solving with C++, Global Edition Cover Title Copyright Contents Chapter
More informationCHAPTER 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 informationJAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)
Estd: 1994 JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli - 621014 (An approved by AICTE and Affiliated to Anna University) ISO 9001:2000 Certified Subject Code & Name : CS 1202
More informationCS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010
CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011 Lectures 1-22 Moaaz Siddiq Asad Ali Latest Mcqs MIDTERM EXAMINATION Spring 2010 Question No: 1 ( Marks: 1 ) - Please
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationSTRUCTURING OF PROGRAM
Unit III MULTIPLE CHOICE QUESTIONS 1. Which of the following is the functionality of Data Abstraction? (a) Reduce Complexity (c) Parallelism Unit III 3.1 (b) Binds together code and data (d) None of the
More informationAn 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 informationDHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING CS6456 OBJECT ORIENTED PROGRAMMING
DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING CS6456 OBJECT ORIENTED PROGRAMMING Unit I : OVERVIEW PART A (2 Marks) 1. Give some characteristics of procedure-oriented
More informationSRM 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 informationObject 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 informationIntroduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.
Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. 9 Self-Test Exercises p. 11 History Note p. 12 Programming and
More informationCS304 Object Oriented Programming Final Term
1. Which of the following is the way to extract common behaviour and attributes from the given classes and make a separate class of those common behaviours and attributes? Generalization (pg 29) Sub-typing
More informationWriting 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 informationIntroduction to C++ Systems Programming
Introduction to C++ Systems Programming Introduction to C++ Syntax differences between C and C++ A Simple C++ Example C++ Input/Output C++ Libraries C++ Header Files Another Simple C++ Example Inline Functions
More informationChapter 15 - C++ As A "Better C"
Chapter 15 - C++ As A "Better C" Outline 15.1 Introduction 15.2 C++ 15.3 A Simple Program: Adding Two Integers 15.4 C++ Standard Library 15.5 Header Files 15.6 Inline Functions 15.7 References and Reference
More informationPART I. Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++.
Unit - III CHAPTER - 9 INTRODUCTION TO C++ Choose the correct answer. PART I 1. Who developed C++? (a) Charles Babbage (b) Bjarne Stroustrup (c) Bill Gates (d) Sundar Pichai 2. What was the original name
More informationAN OVERVIEW OF C++ 1
AN OVERVIEW OF C++ 1 OBJECTIVES Introduction What is object-oriented programming? Two versions of C++ C++ console I/O C++ comments Classes: A first look Some differences between C and C++ Introducing function
More informationBorland 105, 278, 361, 1135 Bounded array Branch instruction 7 break statement 170 BTree 873 Building a project 117 Built in data types 126
INDEX = (assignment operator) 130, 816 = 0 (as function definition) 827 == (equality test operator) 146! (logical NOT operator) 159!= (inequality test operator) 146 #define 140, 158 #include 100, 112,
More informationPreface... (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 informationObject Oriented Programming
Object Oriented Programming Course Title: Object Oriented Programming Full Marks: 60 20 20 Course No: CSC161 Pass Marks: 24 8 8 Nature of Course: Theory Lab Credit Hrs: 3 Semester: II Course Description:
More informationJayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT
CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT Two Mark Questions UNIT - I 1. DEFINE ENCAPSULATION. Encapsulation is the process of combining data and functions
More informationPreface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.
Preface to the Second Edition p. iii Preface to the First Edition p. vi Brief Contents p. ix Introduction to C++ p. 1 A Review of Structures p. 1 The Need for Structures p. 1 Creating a New Data Type Using
More information+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1
Chapter -1 1. Object Oriented programming is a way of problem solving by combining data and operation 2.The group of data and operation are termed as object. 3.An object is a group of related function
More informationOBJECT 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 informationKOM3191 Object Oriented Programming Dr Muharrem Mercimek OPERATOR OVERLOADING. KOM3191 Object-Oriented Programming
KOM3191 Object Oriented Programming Dr Muharrem Mercimek 1 OPERATOR OVERLOADING KOM3191 Object-Oriented Programming KOM3191 Object Oriented Programming Dr Muharrem Mercimek 2 Dynamic Memory Management
More informationTime : 3 hours. Full Marks : 75. Own words as far as practicable. The questions are of equal value. Answer any five questions.
XEV (H-3) BCA (6) 2 0 1 0 Time : 3 hours Full Marks : 75 Candidates are required to give their answers in their Own words as far as practicable. The questions are of equal value. Answer any five questions.
More informationObjectives. Chapter 2: Basic Elements of C++ Introduction. Objectives (cont d.) A C++ Program (cont d.) A C++ Program
Objectives Chapter 2: Basic Elements of C++ In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates
More informationSAURASHTRA 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 informationChapter 2: Basic Elements of C++
Chapter 2: Basic Elements of C++ Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates
More informationChapter 2: Basic Elements of C++ Objectives. Objectives (cont d.) A C++ Program. Introduction
Chapter 2: Basic Elements of C++ C++ Programming: From Problem Analysis to Program Design, Fifth Edition 1 Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers
More informationQuiz 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 informationCS201 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 informationVALLIAMMAI 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 informationProgramming. C++ Basics
Programming C++ Basics Introduction to C++ C is a programming language developed in the 1970s with the UNIX operating system C programs are efficient and portable across different hardware platforms C++
More informationFinal exam. Final exam will be 12 problems, drop any 2. Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers)
Review Final exam Final exam will be 12 problems, drop any 2 Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers) 2 hours exam time, so 12 min per problem (midterm 2 had
More informationGet Unique study materials from
Downloaded from www.rejinpaul.com VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : IV Section : EEE - 1 & 2 Subject Code
More informationUNIT-2 Introduction to C++
UNIT-2 Introduction to C++ C++ CHARACTER SET Character set is asset of valid characters that a language can recognize. A character can represents any letter, digit, or any other sign. Following are some
More informationKLiC C++ Programming. (KLiC Certificate in C++ Programming)
KLiC C++ Programming (KLiC Certificate in C++ Programming) Turbo C Skills: Pre-requisite Knowledge and Skills, Inspire with C Programming, Checklist for Installation, The Programming Languages, The main
More informationOBJ. ORI.& MULT. PROG., M.C.Q. BANK, FOR UNIT -2, SECOND YEAR COMP. ENGG. SEM-4, 2012 PATTERN, U.O.P. UNIT-2
UNIT-2 Syllabus for Unit-2 Introduction, Need of operator overloading, overloading the assignment, binary and unary operators, overloading using friends, rules for operator overloading, type conversions
More informationCS3157: Advanced Programming. Outline
CS3157: Advanced Programming Lecture #12 Apr 3 Shlomo Hershkop shlomo@cs.columbia.edu 1 Outline Intro CPP Boring stuff: Language basics: identifiers, data types, operators, type conversions, branching
More informationPIC10B/1 Winter 2014 Exam I Study Guide
PIC10B/1 Winter 2014 Exam I Study Guide Suggested Study Order: 1. Lecture Notes (Lectures 1-8 inclusive) 2. Examples/Homework 3. Textbook The midterm will test 1. Your ability to read a program and understand
More informationObject 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 informationcs3157: c++ lecture #2 (mon-11-apr-2005) chronology of some programming languages... C++ vs Java identifiers.
cs3157: c++ lecture #2 (mon-11-apr-2005) chronology of some programming languages... today: language basics: identifiers, data types, operators, type conversions, branching and looping, program structure
More informationB.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University
Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are
More informationc++ keywords: ( all lowercase ) Note: cin and cout are NOT keywords.
Chapter 1 File Extensions: Source code (cpp), Object code (obj), and Executable code (exe). Preprocessor processes directives and produces modified source Compiler takes modified source and produces object
More informationCS201 Some Important Definitions
CS201 Some Important Definitions For Viva Preparation 1. What is a program? A program is a precise sequence of steps to solve a particular problem. 2. What is a class? We write a C++ program using data
More information1. Describe History of C++? 2. What is Dev. C++? 3. Why Use Dev. C++ instead of C++ DOS IDE?
1. Describe History of C++? The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. One of the languages Stroustrup had the opportunity
More informationC Programming Multiple. Choice
C Programming Multiple Choice Questions 1.) Developer of C language is. a.) Dennis Richie c.) Bill Gates b.) Ken Thompson d.) Peter Norton 2.) C language developed in. a.) 1970 c.) 1976 b.) 1972 d.) 1980
More informationChapter 2 Basic Elements of C++
C++ Programming: From Problem Analysis to Program Design, Fifth Edition 2-1 Chapter 2 Basic Elements of C++ At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion
More informationCHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 9 C++
CHAPTER 9 C++ 1. WRITE ABOUT THE BINARY OPERATORS USED IN C++? ARITHMETIC OPERATORS: Arithmetic operators perform simple arithmetic operations like addition, subtraction, multiplication, division etc.,
More informationIntroduction to Programming
Introduction to Programming session 6 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Spring 2011 These slides are created using Deitel s slides Sharif University of Technology Outlines
More informationOOPS Viva Questions. Object is termed as an instance of a class, and it has its own state, behavior and identity.
OOPS Viva Questions 1. What is OOPS? OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class.
More informationSTUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING 1. Object Oriented Programming Paradigms 2. Comparison of Programming Paradigms 3. Basic Object Oriented Programming
More informationPaytm Programming Sample paper: 1) A copy constructor is called. a. when an object is returned by value
Paytm Programming Sample paper: 1) A copy constructor is called a. when an object is returned by value b. when an object is passed by value as an argument c. when compiler generates a temporary object
More informationCome 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 informationWeiss Chapter 1 terminology (parenthesized numbers are page numbers)
Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement
More informationObjectives. In this chapter, you will:
Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates arithmetic expressions Learn about
More informationCh. 12: Operator Overloading
Ch. 12: Operator Overloading Operator overloading is just syntactic sugar, i.e. another way to make a function call: shift_left(42, 3); 42
More informationADARSH VIDYA KENDRA NAGERCOIL COMPUTER SCIENCE. Grade: IX C++ PROGRAMMING. Department of Computer Science 1
NAGERCOIL COMPUTER SCIENCE Grade: IX C++ PROGRAMMING 1 C++ 1. Object Oriented Programming OOP is Object Oriented Programming. It was developed to overcome the flaws of the procedural approach to programming.
More informationCS201- 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 informationC++ Programming: From Problem Analysis to Program Design, Third Edition
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives (continued) Become familiar with the use of increment and decrement operators Examine
More informationReview: Exam 1. Your First C++ Program. Declaration Statements. Tells the compiler. Examples of declaration statements
Review: Exam 1 9/20/06 CS150 Introduction to Computer Science 1 1 Your First C++ Program 1 //*********************************************************** 2 // File name: hello.cpp 3 // Author: Shereen Khoja
More informationCERTIFICATE IN WEB PROGRAMMING
COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING
More informationObject Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year
Object Oriented Programming Assistant Lecture Omar Al Khayat 2 nd Year Syllabus Overview of C++ Program Principles of object oriented programming including classes Introduction to Object-Oriented Paradigm:Structures
More informationChapter 2. Outline. Simple C++ Programs
Chapter 2 Simple C++ Programs Outline Objectives 1. Building C++ Solutions with IDEs: Dev-cpp, Xcode 2. C++ Program Structure 3. Constant and Variables 4. C++ Operators 5. Standard Input and Output 6.
More informationChapter 1: Object-Oriented Programming Using C++
Chapter 1: Object-Oriented Programming Using C++ Objectives Looking ahead in this chapter, we ll consider: Abstract Data Types Encapsulation Inheritance Pointers Polymorphism Data Structures and Algorithms
More informationComputers Programming Course 5. Iulian Năstac
Computers Programming Course 5 Iulian Năstac Recap from previous course Classification of the programming languages High level (Ada, Pascal, Fortran, etc.) programming languages with strong abstraction
More informationBy the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program
1 By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program variables. Apply C++ syntax rules to declare variables, initialize
More informationEngineering Problem Solving with C++, Etter/Ingber
Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs C++, Second Edition, J. Ingber 1 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input
More informationI 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 informationLearning Objectives. C++ For Artists 2003 Rick Miller All Rights Reserved xli
Identify and overcome the difficulties encountered by students when learning how to program List and explain the software development roles played by students List and explain the phases of the tight spiral
More informationHomework #3 CS2255 Fall 2012
Homework #3 CS2255 Fall 2012 MULTIPLE CHOICE 1. The, also known as the address operator, returns the memory address of a variable. a. asterisk ( * ) b. ampersand ( & ) c. percent sign (%) d. exclamation
More informationIntroduction to Programming using C++
Introduction to Programming using C++ Lecture One: Getting Started Carl Gwilliam gwilliam@hep.ph.liv.ac.uk http://hep.ph.liv.ac.uk/~gwilliam/cppcourse Course Prerequisites What you should already know
More informationPadasalai.Net s Model Question Paper
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
More informationContents. 1 Introduction to Computers, the Internet and the World Wide Web 1. 2 Introduction to C Programming 26
Preface xix 1 Introduction to Computers, the Internet and the World Wide Web 1 1.1 Introduction 2 1.2 What Is a Computer? 4 1.3 Computer Organization 4 1.4 Evolution of Operating Systems 5 1.5 Personal,
More informationC++ (Non for C Programmer) (BT307) 40 Hours
C++ (Non for C Programmer) (BT307) 40 Hours Overview C++ is undoubtedly one of the most widely used programming language for implementing object-oriented systems. The C++ language is based on the popular
More informationCpt S 122 Data Structures. Introduction to C++ Part II
Cpt S 122 Data Structures Introduction to C++ Part II Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Topics Objectives Defining class with a member function
More informationChapter 7. Additional Control Structures
Chapter 7 Additional Control Structures 1 Chapter 7 Topics Switch Statement for Multi-Way Branching Do-While Statement for Looping For Statement for Looping Using break and continue Statements 2 Chapter
More informationLexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 6 Decaf Language Wednesday, September 7 The project for the course is to write a
More informationThe C++ Language. Arizona State University 1
The C++ Language CSE100 Principles of Programming with C++ (based off Chapter 2 slides by Pearson) Ryan Dougherty Arizona State University http://www.public.asu.edu/~redoughe/ Arizona State University
More informationC Language Part 1 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee
C Language Part 1 (Minor modifications by the instructor) References C for Python Programmers, by Carl Burch, 2011. http://www.toves.org/books/cpy/ The C Programming Language. 2nd ed., Kernighan, Brian,
More informationSyllabus of C++ Software for Hands-on Learning: This course offers the following modules: Module 1: Getting Started with C++ Programming
Syllabus of C++ Software for Hands-on Learning: Borland C++ 4.5 Turbo C ++ V 3.0 This course offers the following modules: Module 1: Getting Started with C++ Programming Audience for this Course Job Roles
More informationObject-Oriented Programming (OOP) Fundamental Principles of OOP
Object-Oriented Programming (OOP) O b j e c t O r i e n t e d P r o g r a m m i n g 1 Object-oriented programming is the successor of procedural programming. The problem with procedural programming is
More informationInstantiation of Template class
Class Templates Templates are like advanced macros. They are useful for building new classes that depend on already existing user defined classes or built-in types. Example: stack of int or stack of double
More informationCourse 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 informationcalling a function - function-name(argument list); y = square ( z ); include parentheses even if parameter list is empty!
Chapter 6 - Functions return type void or a valid data type ( int, double, char, etc) name parameter list void or a list of parameters separated by commas body return keyword required if function returns
More informationThis chapter introduces the notion of namespace. We also describe how to manage input and output with C++ commands via the terminal or files.
C++ PROGRAMMING LANGUAGE: NAMESPACE AND MANGEMENT OF INPUT/OUTPUT WITH C++. CAAM 519, CHAPTER 15 This chapter introduces the notion of namespace. We also describe how to manage input and output with C++
More informationCS242 COMPUTER PROGRAMMING
CS242 COMPUTER PROGRAMMING I.Safa a Alawneh Variables Outline 2 Data Type C++ Built-in Data Types o o o o bool Data Type char Data Type int Data Type Floating-Point Data Types Variable Declaration Initializing
More informationCollected By Anonymous
CS201- Introduction to Programming Mega Collection for Final Term Only Solved Paper Year Session Paper # 01 2012 Unknown Paper # 02 2011 (session_02) Paper # 03 2011 (session_03) Paper # 04 2010 Unknown
More informationInheritance, and Polymorphism.
Inheritance and Polymorphism by Yukong Zhang Object-oriented programming languages are the most widely used modern programming languages. They model programming based on objects which are very close to
More informationCS2141 Software Development using C/C++ Stream I/O
CS2141 Software Development using C/C++ Stream I/O iostream Two libraries can be used for input and output: stdio and iostream The iostream library is newer and better: It is object oriented It can make
More information