STRUCTURING OF PROGRAM

Similar documents
Object Oriented Programming. Solved MCQs - Part 2

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

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

OOPS Viva Questions. Object is termed as an instance of a class, and it has its own state, behavior and identity.

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

Index COPYRIGHTED MATERIAL

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

Introduction to Programming Using Java (98-388)

Absolute C++ Walter Savitch

Interview Questions of C++

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

1 Shyam sir JAVA Notes

Kapil Sehgal PGT Computer. Science Ankleshwar Gujarat Chapter 6 Inheritance Extending a Class

What are the characteristics of Object Oriented programming language?

VALLIAMMAI ENGINEERING COLLEGE

Get Unique study materials from

Object-Oriented Programming (OOP) Fundamental Principles of OOP

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING CS6456 OBJECT ORIENTED PROGRAMMING

C++_ MARKS 40 MIN

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

Sri Vidya College of Engineering & Technology

C++ Important Questions with Answers

CS201 Latest Solved MCQs

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

CLASSES AND OBJECTS IN JAVA

The Java language has a wide variety of modifiers, including the following:

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

Short Notes of CS201

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

Zhifu Pei CSCI5448 Spring 2011 Prof. Kenneth M. Anderson

CS201 - Introduction to Programming Glossary By

15CS45 : OBJECT ORIENTED CONCEPTS

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

Java Primer 1: Types, Classes and Operators

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING OBJECT ORIENTED PROGRAMMING CLASS : THIRD SEMESTER CSE

Java is a high-level programming language originally developed by Sun Microsystems and released in Java runs on a variety of

AN OVERVIEW OF C++ 1

Object Oriented Programming with c++ Question Bank

C++ (Non for C Programmer) (BT307) 40 Hours

CS260 Intro to Java & Android 03.Java Language Basics

Object-Oriented Programming

Java How to Program, 10/e. Copyright by Pearson Education, Inc. All Rights Reserved.

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

1 Epic Test Review 2 Epic Test Review 3 Epic Test Review 4. Epic Test Review 5 Epic Test Review 6 Epic Test Review 7 Epic Test Review 8

Fast Introduction to Object Oriented Programming and C++

PROGRAMMING IN C++ COURSE CONTENT

Chapter 6 Introduction to Defining Classes

CS 231 Data Structures and Algorithms, Fall 2016

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)

END TERM EXAMINATION

An overview of Java, Data types and variables

3. Java - Language Constructs I

Object Oriented Programming is a programming method that combines: Advantage of Object Oriented Programming

CS304 Object Oriented Programming Final Term

Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub


Problem Solving with C++

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

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.

6.096 Introduction to C++ January (IAP) 2009

CSC 1214: Object-Oriented Programming

Operators and Expressions

Core JAVA Training Syllabus FEE: RS. 8000/-

CGS 2405 Advanced Programming with C++ Course Justification

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

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

Compaq Interview Questions And Answers

Atelier Java - J1. Marwan Burelle. EPITA Première Année Cycle Ingénieur.

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

Intro to OOP Visibility/protection levels and constructors Friend, convert constructor, destructor Operator overloading a<=b a.

Data Structures using OOP C++ Lecture 3

Index. Course Outline. Grading Policy. Lab Time Distribution. Important Instructions

CS201 Some Important Definitions

An Introduction to C++

Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal

Outline. Overview. Control statements. Classes and methods. history and advantage how to: program, compile and execute 8 data types 3 types of errors

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

WA1278 Introduction to Java Using Eclipse

.Net Technologies. Components of.net Framework

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal

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

DM550 / DM857 Introduction to Programming. Peter Schneider-Kamp

Object Oriented Pragramming (22316)

Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups:

Distributed Real-Time Control Systems. Lecture 17 C++ Programming Intro to C++ Objects and Classes

CS

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY JAVA

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

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

CS201- Introduction to Programming Current Quizzes

OOPs Concepts. 1. Data Hiding 2. Encapsulation 3. Abstraction 4. Is-A Relationship 5. Method Signature 6. Polymorphism 7. Constructors 8.

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

Class, Variable, Constructor, Object, Method Questions

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

Page. No. 1/15 CS201 Introduction to Programmming Solved Subjective Questions From spring 2010 Final Term Papers By vuzs Team

KOM3191 Object Oriented Programming Dr Muharrem Mercimek OPERATOR OVERLOADING. KOM3191 Object-Oriented Programming

CS3157: Advanced Programming. Outline

Transcription:

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 mentioned Explanation : An essential element of Object Oriented Programming is Data Abstraction which means hiding things. Complexity is managed through abstraction. 2. Which of the following mechanisms is/are provided by Object Oriented Language to implement Object Oriented Model? (a) Encapsulation (c) Polymorphism Explanation : None. (b) Inheritance (d) All of the mentioned 3. Which of these is the functionality of Encapsulation? (a) Binds together code and data (b) Using single interface for general class of actions. (c) Reduce Complexity (d) All of the mentioned Explanation : Encapsulation acts as protective wrapper that prevents code and data from being accessed by other code defined outside the wrapper. 4. What is Basis of Encapsulation? (a) object (c) method (b) class (d) all of the mentioned Explanation : Encapsulation is the mechanism that binds together code and data it manipulates, and keeps both safe from outside interface and misuse. Class, which contains data members and methods is used to implement Encapsulation.

5. How will a class protect the code inside it? (a) Using Access specifiers (c) Use of Inheritance Unit III 3.2 (b) Abstraction (d) All of the mentioned Explanation : Each method or variable in a class may be marked public or private. They are called Access Specifiers. 6. What is the output of this program? class Test { int a; public int b; private int c; class AcessTest { public static void main(string args[]) { Test ob = new Test(); ob.a = 10; ob.b = 20; ob.c = 30; System.out.println(" Output :a, b, and c" + ob.a + " " + ob.b + " " + ob.c ); (a) Compilation error (c) Output : a, b and c 10 20 30 (b) Run time error (d) None of the mentioned Explanation : Private members of a class cannot be accessed directly. In the above program, the variable c is a private member of class Test and can only be accessed through its methods. 7. Which of the following is a mechanism by which object acquires the properties of another object? (a) Encapsulation (c) Inheritance (b) Abstraction (d) Polymorphism Explanation : Inheritance is the mechanism provided by Object Oriented Language, which helps an object to acquire the properties of another object usually child object from parent object.

8. Which of the following supports the concept of hierarchical classification? (a) Polymorphism (c) Abstraction Unit III 3.3 (b) Encapsulation (d) Inheritance Explanation : Use of Hierarchical classification avoids defining the properities of object explicitly at each level which have acquired their properties from higher levels. 9. Which Keyword from the following is used to inherit properties from one class into another? (a) extends (c) native Explanation : None. (b) subclasses (d) all of the mentioned 10. Which of the following concept is often expressed by the phrase, One interface, multiple methods? (a) Abstraction (c) Inheritance Explanation : None. (b) Polymorphism (d) Encapsulation 11. Who is known as father of Java Programming Language? (a) James Gosling (c) Charel Babbage (b) M. P Java (d) Blais Pascal 12. In java control statements break, continue, return, try-catch-finally and assert belongs to? (a) Selection statements (c) Transfer statements (b) Loop Statements (d) Pause Statement 13. Which provides runtime environment for java byte code to be executed? (a) JDK (b) JVM (c) JRE (d) JAVAC 14. What is byte code in Java? (a) Code generated by a Java compiler (b) Code generated by a Java Virtual Machine (c) Name of Java source code file (d) Block of code written inside a class

15. Which of the following are not Java keywords? (a) double (b) switch (c) then (d) instance of 16. Which of these have highest precedence? (a) () (b) ++ (c) * (d) > 17. Which of these is returned by operator '&'? (a) Integer (b) Character (c) Boolean (d) Float 18. Data type long literals are appended by (a) Uppercase L (c) Long Unit III 3.4 (b) Lowercase L (d) Both A and B 19. Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed? (a) Local variables (c) Class Variables 20. Java language was initially called as (b) Instance variables (d) Static variables (a) Sumatra (b) J++ (c) Oak (d) Pine 21. What is garbage collection in the context of Java? (a) Java deletes all unused java files on the system. (b) Memory used by the object with no reference is automatically reclaimed. (c) The JVM cleans output of Java program with error. (d) Any unused package in a program automatically gets deleted. 22. Which one is a template for creating different objects? (a) An Array (c) Interface (b) A class (d) Method 23. Which symbol is used to contain the values of automatically initialized arrays? (a) Brackets (b) Braces (c) Parentheses (d) Comma

24. Which one is true about a constructor? (a) A constructor must have the same name as the class it is declared within. (b) A constructor is used to create objects. (c) A constructor may be declared private (d) All of the above 25. Which of these operators is used to allocate memory to array variable in Java? (a) alloc (b) malloc (c) new malloc (d) new 26. Which of these is not a bitwise operator? (a) &' Operator (c) =' Operator Unit III 3.5 (b) &=' Operator (d) <=' Operator 27. Which of these is returned by Greater Than, Less Than and Equal To (i.e Relational) operator? (a) Float (b) Integer (c) Boolean (d) Double 28. Which statement transfer execution to different parts of your code based on the value of an expression? (a) If (b) Switch (c) Nested-if (d) if-else-if 29. Modulus operator (%) can be applied to which of these? (a) Integers (c) Both A and B (b) Floating - point numbers (d) None of These 30. What feature of OOP has a super-class sub-class concept? (a) Hierarchical inheritance (b) Single inheritance (c) Multiple inheritances (d) Multilevel inheritance 31. Which of the following are not the methods of the Thread class? (a) yield() (c) go() (b) sleep(long msec) (d) stop()

32. Division operator has precedence over multiplication operator. (a) Highest (b) Least (c) Equal (d) None of These 33. What is the full form of JVM? (a) Java Very Large Machine (c) Java Very Small Machine Unit III 3.6 (b) Java Verified Machine (d) Java Virtual Machine 34. In Java code, the line that begins with /* and ends with */ is known as? (a) Multiline comment (c) Both (a) and (b) 35. Which of the following are not Java modifiers? (b) Single line comment (d) None of these (a) public (b) private (c) friendly (d) transient 36. Which of the following factors supports the statement that the 'reusability' is a desirable feature of a language? (a) It decreases the testing time. (b) It lowers the maintenance cost. (c) It reduces the compilation time. (d) Both 1 and 2. 37. Which of these can be used to fully abstract a class from its implementation? (a) Objects (c) Interfaces Explanation : None. (b) Packages (d) None of the Mentioned. 38. Which of these access specifiers can be used for an interface? (a) Public (c) private (b) Protected (d) All of the mentioned 39. Which of these keywords is used by a class to use an interface defined previously? (a) import (b) Import (c) implements (d) Implements Explanation : interface is inherited by a class using implements.

40. Which of the following is correct way of implementing an interface salary by class manager? (a) class manager extends salary { (b) class manager implements salary { (c) class manager imports salary { (d) None of the mentioned. Explanation : None. 41. Which of the following is incorrect statement about packages? (a) Interfaces specifies what class must do but not how it does. (b) Interfaces are specified public if they are to be accessed by any code in the program. (c) All variables in interface are implicitly final and static. (d) All variables are static and methods are public if interface is defined pubic. Explanation : All methods and variables are implicitly public if interface is declared public. 42. Which of the following package stores all the standard java classes? (a) lang (b) java (c) util (d) java packages Explanation : None. 43. What is the output of this program? interface calculate { void cal(int item); class display implements calculate { int x; public void cal(int item) { x = item * item; class interfaces { public static void main(string args[]) { display arr = new display; arr.x = 0; Unit III 3.7

arr.cal(2); System.out.print(arr.x); (a) 0 (b) 2 (c) 4 (d) None of the mentioned Explanation : None. Output : $ javac interfaces.java $ java interfaces 4 44. What is the output of this program? interface calculate { void cal(int item); class displaya implements calculate { int x; public void cal(int item) { x = item * item; class displayb implements calculate { int x; public void cal(int item) { x = item / item; class interfaces { public static void main(string args[]) { displaya arr1 = new displaya; displayb arr2 = new displayb; arr1.x = 0; arr2.x = 0; Unit III 3.8

arr1.cal(2); arr2.cal(2); System.out.print(arr1.x + " " + arr2.x); (a) 0 0 (b) 2 2 (c) 4 1 (d) 1 4 Explanation : class displaya implements the interface calculate by doubling the value of item, where as class displayb implements the interface by dividing item by item, therefore variable x of class displaya stores 4 and variable x of class displayb stores 1. Output : $ javac interfaces.java $ java interfaces 4 1 45. What is the output of this program? interface calculate { int VAR = 0; void cal(int item); class display implements calculate { int x; public void cal(int item) { if (item<2) else x = VAR; class interfaces { x = item * item; public static void main(string args[]) { display[] arr=new display[3]; for(int i=0;i<3;i++) arr[i]=new display(); Unit III 3.9

arr[0].cal(0); arr[1].cal(1); arr[2].cal(2); System.out.print(arr[0].x+" " + arr[1].x + " " + arr[2].x); (a) 012 (b) 024 (c) 004 (d) 014 Explanation : None. Output : $ javac interfaces.java $ java interfaces 004 46. What will be the output of following program? #include<iostream.h> void main() { float x; x=(float)9/2; cout<<x; (a) 4.5 (b) 4.0 (c) 4 (d) 5 47. The term means the ability to take many forms. (a) Inheritance (b) Polymorphism (c) Member function (d) Encapsulation 48. Runtime polymorphism is achieved by (a) Friend function (b) Virtual function (c) Operator overloading (d) Function overloading 49. Access to private data (a) Restricted to methods of the same class (b) Restricted to methods of other classes (c) Available to methods of the same class and other classes (d) Not an issue because the program will not compile Unit III 3.10

50. Additional information sent when an exception is thrown may be placed in (a) The throw keyword (c) The catch block 51. A static data member is given a value (a) Within the class definition (c) When the program is executed (d) Never 52. What will be the result of the expression 13 and 25? Unit III 3.11 (b) The function that caused the error (d) An object of the exception class (b) Outside the class definition (a) 38 (b) 25 (c) 9 (d) 12 53. In a class specifier,data or function designated private are accessible (a) To any function in the program (b) Only if you the password (c) To member functions of that class (d) Only to public members of the class 54. Which of the statements are true? I. Function overloading is done at compile time. II. Protected members are accessible to the member of derived class. III. A derived class inherits constructors and destructors. IV. A friend function can be called like a normal function. V. Nested class is a derived class. (a) I, II, III (b) II, III, V (c) III, IV, V (d) I, II, IV 55. At which point of time a variable comes into existence in memory is determined by its (a) Scope (b) Storage class (c) Data type (d) All of the above 56. When the compiler cannot differentiate between two overloaded constructors, they are called (a) Overloaded (b) Destructed (c) Ambiguous (d) Dubious

57. The actual source code for implementing a template function is created when (a) The declaration of function appears. (b) The function is invoked. (c) The definition of the function appears. (d) None of the above. 58. Usually a pure virtual function (a) Has complete function body (b) Will never be called (c) Will be called only to delete an object (d) Is defined only in derived class 59. Which of the following is the valid class declaration header for the derived class d with base classes b1 and b2? (a) class d : public b1, public b2 (c) class d : public b1, b2 Unit III 3.12 (b) class d : class b1, class b2 (d) class d : b1, b2 60. The process of extracting the relevant attributes of an object is known as (a) Polymorphism (c) Abstraction 61. What features make C++ so powerful? (a) Easy implementation (c) Reusing old code (b) Inheritence (d) Data hiding (b) Reusing old code (d) All of the above 62. Which of the following operator can be overloaded through friend function? (a) -> (b) = (c) ( ) (d) * 63. The keyword friend does not appear in (a) The class allowing access to another class (b) The class desiring access to another class (c) The private section of a class (d) The public section of a class

64. Exception handling is targeted at (a) Run-time error (c) Logical error 65. Function templates can accept (a) Any type of parameters (b) Only one parameter (c) Only parameters of the basic type (d) Only parameters of the derived type (b) Compile time error (d) All of the above 66. If the variable count exceeds 100, a single statement that prints Too many is (a) if (count<100) cout << Too many ; (b) if (count>100) cout >> Too many ; (c) if (count>100) cout << Too many ; (d) None of these. 67. The mechanism that binds code and data together and keeps them secure from outside world is known as (a) Abstraction (b) Inheritance (c) Encapsulation (d) Polymorphism 68. The operator << when overloaded in a class (a) must be a member function (c) can be both (a) and (b) above (b) must be a non member function (d) cannot be overloaded 69. To access the public function fbase() in the base class, a statement in a derived class function fder() uses the statement.fbase(); (a) fbase(); (c) base::fbase(); (b) fder(); (d) der::fder(); 70. In which case is it mandatory to provide a destructor in a class? (a) Almost in every class (b) Class for which two or more than two objects will be created (c) Class for which copy constructor is defined (d) Class whose objects will be created dynamically Unit III 3.13

71. members of a base class are never accessible to a derived class. (a) Public (b) Private (c) Protected (d) (a), (b) and (c) 72. What is the error in the following code? class t { virtual void print(); (a) No error (b) Function print() should be declared as static. (c) Function print() should be defined. (d) Class t should contain data members. 73. It is possible to declare as a friend (a) A member function (b) A global function (c) A class (d) All of the above 74. A struct is the same as a class except that (a) There are no member functions (b) All members are public (c) Cannot be used in inheritance hierarchy (d) It does have a this pointer 75. C++ was originally developed by (a) Clocksin and Melish (b) Donald E.Knuth (c) Sir Richard Hadlee (d) Bjarne Stroustrup 76. What is the output of the following code char symbol[3]={ a, b, c ; for (int index=0; index<3; index++) cout << symbol [index]; (a) a b c (b) abc (c) abc (d) abc Unit III 3.14

77. If we create a file by ifstream, then the default mode of the file is (a) ios :: out (b) ios :: in (c) ios :: app (d) ios :: binary 78. The following can be declared as friend in a class (a) An object (b) A class (c) A public data member (d) A private data member 79. The polymorphism can be characterized by the phrase (a) One interface,multiple methods (b) Multiple interfaces,one method (c) One interface,one method (d) None of the above 80. A virtual class is the same as (a) An abstract class (c) A base class Unit III 3.15 (b) A class with a virtual function (d) None of the above 81. Member functions, when defined within the class specification (a) Are always inline (b) Are not inline (c) Are inline by default, unless they are too big or too complicated (d) Are not inline by default. 82. Assume that we have constructor functions for both base class and derived class. Now consider the declaration in main( ). Base * P = New Derived; in what sequence will the constructor be called? (a) Derived class constructor followed by Base class constructor. (b) Base class constructor followed by derived class constructor. (c) Base class constructor will not be called. (d) Base class constructor will not be called. 83. The operator that cannot be overloaded is (a) ++ (b) : : (c) ~ (d) ( )

84. Which of the following declarations are illegal? (a) void *ptr; (b) char *str = hello ; (c) char str = hello ; (d) const *int p1; 85. Identify the operator that is NOT used with pointers (a) -> (b) & (c) * (d) >> 86. Which of the following statements is NOT valid about operator overloading? (a) Only existing operators can be overloaded (b) Overloaded operator must have at least one operand of its class type (c) The overloaded operators follow the syntax rules of the original operator (d) None of the above 87. Overloading a postfix increment operator by means of a member function takes (a) No argument (b) One argument (c) Two arguments (d) Three arguments 88. Which of the following will produce a value 10 if x = 9.7? (a) floor(x) (b) abs(x) (c) log(x) (d) ceil(x) 89. Which of the following is not the characteristic of constructor? (a) They should be declared in the public section. (b) They do not have return type. (c) They can not be inherited. (d) They can be virtual. 90. You may override the class access specifiers (a) Public members (b) Public and protected members (c) Any specific class members you choose (d) No class members 91. You separated a derived class name from its access specifier with (a) A colon (b) Two colons (c) Atleast one space (d) A semi colon Unit III 3.16

92. Consider the following statements : int x = 22,y=15; x = (x>y)? (x+y) : (x-y); What will be the value of x after executing these statements? (a) 22 (b) 37 (c) 7 (d) 5 93. A friend function to a class, C cannot access (a) Private data members and member functions (b) Public data members and member functions (c) Protected data members and member functions (d) The data members of the derived class of C 94. The members of a class by default are (a) Public (c) Private (b) Protected 95. Which operator is used to signify the namespace? (a) conditional operator (c) scope operator Explanation : scope operator 96. Identify the correct statement (d) Mandatory to specify (b) ternary operator (d) none of the mentioned (a) Namespace is used to group class, objects and functions. (b) Namespace is used to mark the beginning of the program. (c) Namespace is used to seperate the class, objects. (d) None of the above Explanation : Namespace allow you to group class, objects and functions. It is used to divide the global scope into the sub-scopes. 97. What is the use of Namespace? (a) To encapsulate the data (c) Both a and b (b) To structure a program into logical units. (d) none of the mentioned Explanation : The main aim of the namespace is to understand the logical units of the program and to make the program so robust. Unit III 3.17

98. What is the general syntax for accessing the namespace variable? (a) namespaceid::operator (b) namespace,operator (c) namespace#operator (d) none of the mentioned Explanation : namespaceid::operator 99. Which keyword is used to access the variable in namespace? (a) using (b) dynamic (c) const (d) static 100. Which of these keywords is used to define interfaces in Java? (a) interface (b) Interface (c) intf (d) Intf Explanation : None. Unit III 3.18