hr@izetam.com
BAN USER- 0of 0 votes
AnswersWhat is Data abstraction?
- hr@izetam.com in United States
Abstraction is an OOPS concept to construct the structure of the real world objects. During this construction only the general states and behaviors are taken and more specific states and behaviors are left aside for the implementers.| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersWhat is Polymorphism?
- hr@izetam.com in United States
Polymorphism is the occurrence of something in various forms. Java supports various forms of polymorphism like polymorphic reference variables, polymorphic method, polymorphic return types and polymorphic argument types.| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersWhat is Inheritance?
- hr@izetam.com in United States
A subclass can inherit the states and behaviors of it’s super class is known as inheritance.| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersWhat is Encapsulation ?
- hr@izetam.com in United States
Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. In encapsulation, the variables of a class will be hidden from other classes, and can be accessed only through the methods of their current class| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersWhat are the 4 OOPs principles in java?
- hr@izetam.com in United States
a. Abstraction
b. Encapsulation
c. Polymorphism
d. Inheritance| Report Duplicate | Flag | PURGE
- 0of 0 votes
Answerswhat is class and objects;
- hr@izetam.com in United States
Class: A class is a blueprint or template of an object.
Objects: An object is a real-world entity that has attributes, behavior, and properties. It is referred to as an instance of the class.| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersThe purpose of using OOPs concepts?
- hr@izetam.com in United States
The aim of OOP is to implement real-world entities like inheritance, hiding, polymorphism in programming. The main purpose of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersWhat do you understand by OOP?
- hr@izetam.com in United States
OOP stands for object-oriented programming. It is a programming paradigm that revolves around the object rather than function and procedure. In other words, it is an approach for developing applications that emphasize on objects. An object is a real word entity that contains data and code. It allows binding data and code together| Report Duplicate | Flag | PURGE
- 0of 0 votes
Answersdifferences between object-oriented programming and structural programming?
- hr@izetam.com in United States
Object-oriented Programming
Follows a bottom-up approach.It provides data hiding.
It is used to solve complex problems.
It allows reusability of code that reduces redundancy of code.
It is based on objects rather than functions and procedures .
It provides more security as it has a data hiding feature.
It focuses on data .
More abstraction more flexibility.
Structural Programming
Follows a top-down approach.
. Data hiding is not allowed.
It is used to solve moderate problems.
Reusability of code is not allowed.
. It provides a logical structure to a program in which the program is divided into functions.
It provides less security as it does not support the data hiding feature.
More abstraction more flexibility.
Less abstraction less flexibility.
It focuses on the process or logical structure.| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersJava used for?
- hr@izetam.com in United States
• It is used for developing Android Apps
• Helps you to create Enterprise Software
• Wide range of Mobile java Applications
• Scientific Computing Applications
• Use for Big Data Analytics
• Java Programming of Hardware devices
• Used for Server-Side Technologies like Apache,
JBoss, GlassFish, etc.| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersWhat is java;
- hr@izetam.com in United States
Java is a general-purpose, class-based, object-oriented programming language designed for having lesser implementation dependencies. It is a computing platform for application development. Java is fast, secure, and reliable, therefore. It is widely used for developing Java applications in laptops, data centers, game consoles, scientific supercomputers, cell phones, etc.| Report Duplicate | Flag | PURGE
Java - 1of 1 vote
Answers. What is scope resolution operator in C++?
- hr@izetam.com in United States
Scope resolution operator in c++ is denoted by double colon (::). It can be used:
– when there is a local variable with same name as of global variable
– When a function has to be defined outside a class
– When class’s static variables needs to be accessed
– When a class inside another class has to be referred
– In case of multiple Inheritance| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is an expression in C++?
- hr@izetam.com in United States
An expression is a combination of operators, constants and variables. There seven types of expressions for examples:
– Constant expressions: 89 +10/4.0
– Integral expressions: x * y
– Floating expressions: 17.89
– Relational expressions: a<=b
– Logical expressions: a > b && a == 7
– Pointer expressions: *ptr
– Bitwise expressions: p << 5| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is a reference variable in C++?
- hr@izetam.com in United States
When a variable is declared as a reference, it becomes an alternative name for an existing variable. A variable can be declared as a reference by putting ‘&’ in the declaration.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersHow to set decimal places in C++ ?
- hr@izetam.com in United States
For limiting the decimal places in C++ there are five functions : floor(), ceil(), trunc(), round() and setprecision(). Out of these five, only setprecision() function is used for setting the decimal places to put as output| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersHow to paste in turbo C++?
- hr@izetam.com in United States
Paste in turbo C++ can be done by two techniques:
1. Shift+Insert
2. Open the file in notepad with .cpp extension. Make the changes and save it. After saving the file, you can open it from the Turbo C++ application file menu from where you stored the cpp file.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is a class template?
- hr@izetam.com in United States
A class template is used to create a family of classes and functions. For example, we can create a template of an array class which will enable us to create an array of various types such as int, float, char, etc. Similarly, we can create a template for a function, suppose we have a function add(), then we can create multiple versions of add().| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is function overriding?
- hr@izetam.com in United States
If you inherit a class into a derived class and provide a definition for one of the base class's function again inside the derived class, then this function is called overridden function, and this mechanism is known as function overriding.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat s Polymorphism?
- hr@izetam.com in United States
Polymorphism means multiple forms. Polymorphism means having more than one function with the same name but with different functionalities. Polymorphism is of two types:
1. Static polymorphism is also known as early binding.
2. Dynamic polymorphism is also known as late binding.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is Abstraction?
- hr@izetam.com in United States
Abstraction is a technique of showing only essential details without representing the implementation details. If the members are defined with a public keyword, then the members are accessible outside also. If the members are defined with a private keyword, then the members are not accessible by the outside methods| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersEncapsulation:
- hr@izetam.com in United States
Encapsulation is a technique of wrapping the data members and member functions in a single unit. It binds the data within a class, and no outside method can access the data. If the data member is private, then the member function can only access the data.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersAdvantages of C++?
- hr@izetam.com in United States
C++ is a highly portable language means that the software developed using C++ language can run on any platform.
C++ is an object-oriented programming language which includes the concepts such as classes, objects, inheritance, polymorphism, abstraction.
C++ has the concept of inheritance. Through inheritance, one can eliminate the redundant code and can reuse the existing classes.
Data hiding helps the programmer to build secure programs so that the program cannot be attacked by the invaders.
Message passing is a technique used for communication between the objects.
C++ contains a rich function library.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
Answers9. What is C++?
- hr@izetam.com in United States
C++ is an object-oriented programming language created by Bjarne Stroustrup. It was released in 1985.
C++ is a superset of C with the major addition of classes in C language.
Initially, Stroustrup called the new language "C with classes". However, after sometime the name was changed to C++. The idea of C++ comes from the C increment operator ++.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is the difference between shallow copy and deep copy?
- hr@izetam.com in United States
The difference between shallow copy and a deep copy is given below:
Shallow copy stores the references of objects to the original memory address,Deep copy makes a new and separate copy of an entire object with its unique memory address.
Shallow copy is faster,Deep copy is comparatively slower.
Shallow copy reflects changes made to the new/copied object in the original object,Deep copy doesn’t reflect changes made to the new/copied object in the original object| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is a copy constructor?
- hr@izetam.com in United States
A copy constructor is a member function that initializes an object using another object of the same class.
Example-
class A{
int x,y;
A(int x, int y){
this->x=x;
this->y=y;
}
};
int main(){
A a1(2,3);
A a2=a1; //default copy constructor is called
return 0;
}
We can define our copy constructor. If we don’t define a copy constructor then the default copy constructor is called.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersDefine inline function
- hr@izetam.com in United States
If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time. One of the important advantages of using an inline function is that it eliminates the function calling overhead of a traditional function.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat are the C++ access specifiers?
- hr@izetam.com in United States
In C++ there are the following access specifiers:
Public: All data members and member functions are accessible outside the class.
Protected: All data members and member functions are accessible inside the class and to the derived class.
Private: All data members and member functions are not accessible outside the class.| Report Duplicate | Flag | PURGE
C C++ - 0of 0 votes
AnswersDifference between struct and class?
- hr@izetam.com in United States
In C++ a structure is the same as a class except for a few differences like security. The difference between struct and class are given below:
Structure Class
Members of the structure are public by default. Members of the class are private by default.
When deriving a struct from a class/struct, default access specifiers for base class/struct are public. When deriving a class, default access specifiers are private.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat are class and object in C++?
- hr@izetam.com in United States
A class is a user-defined data type that has data members and member functions. Data members are the data variables and member functions are the functions that are used to perform operations on these variables.
An object is an instance of a class. Since a class is a user-defined data type so an object can also be called a variable of that data type.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat is the difference between C and C++?
- hr@izetam.com in United States
The main difference between C and C++ are provided
C is a procedure-oriented programming language. C++ is an object-oriented programming language.
C does not support data hiding. Data is hidden by encapsulation to ensure that data structures and operators are used as intended.
C is a subset of C++ ,C++ is a superset of C.
Function and operator overloading are not supported in C. Function and operator overloading is supported in C++
Namespace features are not present in C Namespace is used by C++, which avoids name collisions.
Functions can not be defined inside structures. Functions can be defined inside structures.
calloc() and malloc() functions are used for memory allocation and free() function is used for memory deallocation. new operator is used for memory allocation and deletes operator is used for memory deallocation.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswersWhat are the different data types present in C++?
- hr@izetam.com in United States
The 4 data types in C++ are given below:
• Primitive Datatype(basic datatype). Example- char, short, int, float, long, double, bool, etc.
• Derived datatype. Example- array, pointer, etc.
• Enumeration. Example- enum
• User-defined data types. Example- structure, class, etc.| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
Answers25. What is an infinite loop?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers24. What is lvalue and rvalue?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers23. What is indirection?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers21. Explain the purpose of the ‘delete’ operator?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers20. What information is given to the compiler while declaring a prototype function?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers19. What is the output of the following code snippet?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers18. What do you understand by calloc()?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers17. What is FIFO?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers16. What are preprocessor directives?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers15. How do you generate random numbers in C?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers14. Write a loop statement that will show the following output:
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers13. Can I use “int” data type to store the value 32768? Why?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers12. What is syntax error?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers11. Can the curly brackets { } be used to enclose a single line of code?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers10. What is the difference between the = symbol and == symbol?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers9. WHAT IS GLOBAL VARIABLE IN C?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
- 0of 0 votes
Answers. WHAT IS LOCAL VARIABLE IN C?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers7. WHAT IS VARIABLE IN C?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers6. WHAT IS VARIABLE IN C?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
c QUESTIONS - 0of 0 votes
Answers5. WHAT IS HEADER FILE IN C LANGUAGE?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers4. LIST OUT SOME OF C COMPILERS.
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers2. DIFFERENCE BETWEEN C AND C++?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
Answers1.WHAT IS C LANGUAGE?
- hr@izetam.com in India| Report Duplicate | Flag | PURGE
C