Some Questions Answers:-
What is the difference between a
NULL pointer and a void pointer?
|
|
A NULL pointer is a pointer of any
type whose value is zero. A void pointer is a pointer to an object of an
unknown type, and is guaranteed to have enough bits to hold a pointer to any
object. A void pointer is not guaranteed to have enough bits to point to a
function (though in general practice it does)
|
|
What is encapsulation technique?
|
|
Hiding data within the class and
making it available only through the methods. This technique is used to
protect your class against accidental changes to fields, which might leave
the class in an inconsistent state.
|
|
Definition of Object Oriented
Programming in single line?
|
|
Object oriented programming is a
programming paradigm which uses objects and its interactions to design
applications and computer programs.
|
|
What is virtual function?
|
|
The virtual keyword means that
method, property or function can be overridden
|
|
What’s a Windows process?
|
|
It’s an application that’s running
and had been allocated memory.
|
|
What is programming?
|
|
Computer programming is writing or
editing a computer program. A computer program is a set of instructions which
determine how the computer will react to input when that program is running.
|
|
What is a debugger?
|
|
debugger is a program in which you
run another program that you are trying to debug. Inside a debugger, you can
step through your program one line or instruction at a time, set break points
and have your program run until it hits one, examine the contents of
variables and memory, and such other useful things as that.
|
|
what is a Programming language?
|
|
A programming language is a
stylized communication technique intended to be used for controlling the
behavior of a machine (often a computer). Like human languages programming
languages have syntactic and semantic rules used to define meaning.
|
|
What's the difference between a
programming language, a scripting language?
|
|
The main difference between a
"programming language" (C, C++ etc.) and a "scripting
language" (ASP, JSP, JavaScript, VBScript) is that code written in a
programming language needs to be compiled before it is run. Once it is
compiled, it can be run any number of times.
Scripting languages, on the other hand, are interpreted at run-time. This means that every time you want to run the program, a separate program needs to read the code, interpret it, and then follow the instructions in the code. Compiled code has already been interpreted into machine language, so it is will typically execute faster because the conversion into machine language has already been done. |
|
What is difference between
overloading and overriding?
|
|
Same methods (Names are same) with
different signature (parameters) is called overloading, while having same
name and parameter functions in base and drive class called overriding.
|
|
What are the advantages of OOPS?
|
|
Advantages of OOPS are
Re-usability, Maintainability, Extensibility, Modifiability, Modularity,
Simplicity
|
|
What are the features of OOPS?
|
|
These are the main features of
OOPS, a) Abstraction b) Encapsulation c) Inheritance d) Polymorphism
|
|
What is Class and Object
|
|
A Class is blueprint or a template
to create an Object. Whereas an Object is a an actual instance of a Class.
|
|
Explain modeling and its
advantages?
|
|
Modeling is a proven and
well-accepted engineering technique which helps build a model. Model is a
simplification of reality; it is a blueprint of the actual system that needs
to be built.
|
|
What are the various types of
Software Testing?
|
|
There are 7 different types of
testing are done for a project, they are a) Unit Testing, b) Integration
Testing, c) System Testing, d) Acceptance Testing, e) Alpha and Beta Testing,
f) Black Box Testing and g) White Box Testing
|
|
What is ER Diagram
|
|
ER model is a conceptual data
model that views the real world as entities and relationships. A basic
component of the model is the Entity-Relationship diagram which is used to
visually represents data objects.
|
|
Write a program to add two numbers
without using arithmetic operator?
|
|
public static void main(String
args[])
{ int a=3,b=5; While(b--) a++; System.out.println("sum is"+a); } |
|
Write a program to swap two
numbers without using a temporary variable.
|
|
public static void main()
{ int a=4,b=5; a=a+b; //a=9 b=a-b; //b=4 a=a-b; //a=5 System.out.println("After swapping"+a,+b); } |
|
Write a program to find largest of
2 numbers without using if-else
|
|
void main()
{ cin>>a>>b;; //let a=3and b=2 float c=|(a+b)|/2+|(a-b)|/2; //c=2.5+0.5=3.0 cout<<"largest number is"<<c; } |
Friday, October 31, 2014
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment