Start Discovering Solved Questions and Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
To accumulate or recover data in binary form, the member functions write () or read () can be utilized. Unlike put () and get (), the write () and read () functions access data in binary a
The function get () is a member function of the file stream class f stream, and is used to read a single character from the file. The function put () is a member function of the output str
The scope resolution operator (: : ) in C++ is used to define the declared member functions (in the header file with cpp extension) of the in the cpp file one can define the normal funct
New operator: It allows dynamic storage allocation. It throws an exception if memory allocation fails. The general format of new operator is return type, pointer to data type. The C++ state
Reference variable behave similar to both, a value variable and a pointer variable. Value variable are used to hold some numeric values, pointer variable are used to hold the address of so
Q. Describe file handling modes and corresponding flags with examples in C++. Ans. File handling modes specifiers the purpose for which the file is opened. The file mode parameters can
C++ allows us to call a function without specifying all its arguments. In such type of cases, the function allots a default value to the parameter which does not have a corresponding argumen
"this" pointer: In C++ uses a unique keyword called "this" to represent a object that invokes a member function. This is a pointer that directs to the object for which the function was called. F
In C++ an arguments to a function can be declared as constant as shown below: Int strlen (constant char * p); Int length (constant string & s); The qualifier const tells the compiler that
Input output formatting in C++: C++ supports a number of features that could be used for formatting the output. These features involve: 1. Ios class func
Macro in C: Macros are defined as single identifiers that are equivalent to expressions, complete statement or groups of statements. Macros signify functions in this sense. They are defined in
Ans. Applet: An applet is an application designed to travel over the internet and to be executed on the client machine by a java compatible web browser like internet explorer or net scope. Applets
The kind of value that a variable can own is known as data type. When we state a variable we require specifying the type of value it will own with the name of the variable. This tells the compil
APPLET: an applet is an application designed to travel over the internet and to be executed on the client machine by a java compatible web browser like internet Explorer or Netscape.
Q. Write a java program to sort ten numbers using bubble sort method. Ans. class Bubble sort { &nb
Q. Explain type conversion rules for basic data types in java. Ans. Type promotion rule: Java automatically each bits or short operant to int when evaluating an expression. As usual as the automatic
The internet aided java to the forefront of programming. And java consequently has had a deep effect on the internet. The reason for this is highly simple: java uses the universe of objects that can t
Q. Explain the concept of public classes in java. How they are useful? Ans. Public class methods and areas can be accessed from anywhere. But a file with java source code can only
Q. Explain method over ridding in java. Give example. Ans. Method over ridding: In a class hierarchy, when a method in a subclass has the s
Q. What is the use of making a method private inside a class? What is the application of inheritance in OOP? (b) What are the difference forms of inheritance give an example of e
Q. Explain the use of private, public, protected access specifies. &n
Q. Define class and object with example and explain diverse specifies.
Q. Explain the concept of object oriented analysis with explanation of all steps of analysis. Ans. Object oriented analysis: Object oriented analysis provide a simple, yet powerful
Q. What are the distinct features of Object oriented programming language? OR  
Q. What are the advantages of Object Oriented Programming languages? Explain them. Ans. : Object oriented programming language has following advantages- Code reusability in terms of inheritance. Obj