Basic Knowledge
Basic Knowledge
• CPU (Central Processing Unit) including control unit and arithmetic logical
unit
• Memory like primary and secondary
• Input and output devices like keyboard mouse, printer scanner, etc.
3) What is a microprocessor?
Computer processors are: 1) Intel Core i9, 2) Intel Core i5, 3) Intel Core i7, 4) AMD
Ryzen 7, and 5) AMD Ryzen 5.
Some popular operating systems are Microsoft Windows, OSX, and Linux.
6) What Is A Super-class?
A super class is the basis of all the classes. The object of the rest of the class has all
the characteristics related to the superclass.
Variables represent a memory of class, which it shares with each and every
instance.
8) What is SDLC?
SDLC stands for Software Development Life Cycle is a process that produces
quality software products in less time. The stages involve by SDLC are: 1) planning,
2) design, 4) construction, 5) testing, and 6) deployment.
The framework is a platform for making software applications. It provides the basis
on which developers can build programs for a specific platform. For example, a
framework may include predetermined classes as well as functions. It can be used
to process inputs, manage hardware, and interact with system software.
A class is a blueprint for creating objects. A class contains methods and variables
which are a class instance.
15) Distinguish between constructor and method abstract class and interface
An abstract class is declared using the The interface is declared using the
"Abstract" keyword. "interface" keyword.
It can be used with all access modifiers. It can be used with only public access
modifier.
Cin and Cout are objects used for input and output files, respectively.
20) What is the difference between C and C++?
C C++
In the C programming language, a big program In the C++ programming language, a big
code is divided into small pieces, which is program code is divided into Objects and
called functions. Classes.
Structure in C does not provide the feature of Structure in C++ provides the feature of
function declaration. declaring a function as a member function of
the structure.
There are two types of the constructor: 1) parameterized constructor and 2) default
constructor.
Machine Learning is a system that can learn from an excellent example through
self-improvement and without being explicitly coded by a programmer.
Deep learning is computer software that mimics the network of neurons in a brain.
It is a subset of machine learning and is called deep learning because it makes use
of deep neural networks.
Compiler Interpreter
Generates output program (in the form of exe), Do not generate an output program. So the
which can be run independently from the programmer evaluates the source program at
original program. every time during execution.
The target program executes independently The interpreter exists in the memory during
and does not require the compiler in the interpretation.
memory.
Difficult to implement as compilers cannot It is best suited for the program and
predict what happens at turn time. development environment.
Display all errors after compilation, all at the Displays all errors of each line one by one.
same time.
30) Distinguish between constructor and method
Constructor Method
Constructor is used for initializing the instance Method is used to perform some operation or
of any class. function.
The constructor name must be the same as a The name of the method can be the same or
class name. different as per need.
It calls automatically when you create a class You need to call the method explicitly.
object.
Byte stream is most usually used to perform input and output for Unicode having 8
bits.
Primary memory, RAM is the main memory of a computer which can be directly
accessed by the Central Processing Unit (CPU). It stores temporary information
until the process finishes its execution.
An Operating system (OS) is a software that acts as an interface between the end-
user and computer hardware. Every computer must have at least one OS to run
other programs.
Cryptography is the study of techniques that hide the real meaning of information.
It transforms this information into a format that cannot be read by humans and
vice versa.