Top Most Basic Programming Interview Questions
What Is Multithreading?
Multithreading is the ability of a program or an operating system process to manage its use by more than one user at a time and to even manage multiple requests by the same user without having to have multiple copies of the programming running in the computer.
Central processing units have hardware support to efficiently execute multiple threads. These are distinguished from multiprocessing systems (such as multi-core systems) in that the threads have to share the resources of a single core: the computing units, the CPU caches and the translation lookaside buffer (TLB).
Tell Me Why Constructors Does Not Supports Visual Functions?
Constructor does not support virtual functions because we need an object to invoke a virtual method in the first place and more over constructors are used to initializing objects,which is a static type.Virtual functions are invoked on the dynamic type of the object,hence the object may not be properly initialized when a constructor call is made.
Since the derived part of the object would not be initialized during the execution of base class constructor,hence calling any virtual method from base class constructor does not work well.
Explain What Are Mutants And Explain Mutation Testing?
A mutated program is called Mutant and Mutation testing is based up on seeding the Implementation with a Fault by applying mutation Operator and determining whether Testing Identify this fault is called Mutation testing
What Is Race Around Condition?
A race around condition is a fault in the process or a system where the output or the result of the process is critically and unexpectedly dependent on the timing of other events. Race condition especially occurs in multithreaded or in distributed systems.
Do You Know Hows Do Electrons Travel Through A Lightning Bolt?
Generally, lightning is negatively charged. During thunderstorms. The Earths is recharged and its surface becomes good conductor of electricity. The Earth is charged negatively and the atmosphere is charged positively. Electrons flow upwards from the entire surface of the Earth. Thunderstorms help transfer the negative charges back to Earth.
Explain How To Calculate Response Time In Client-server Technology?
This can be done by measureing the time taken by the first byte to reach the client (TTFB) and the time taken by the last byte of the response to reach the client (TTLB) by using various network bandwidths between the client and the server.
How To Delete A Entire Linked List?
You delete a linked list by iterating through the list and deleting the nodes one by one.
Begin at the head
Get address of first node
Get address of next node
Delete first node
Do not to access next of the current node after deleting the current node.
Move next node to first node
Repeat
If the list is empty, the head pointer will be NULL.
Define Rom Image And Explain Each Section Of A Rom Image In An Exemplary System?
A ROM image captures the data from a read-only memory chip, such as hardware firmware, video and arcade game boards, etc. It is often used for emulation.
Explain What Is The Difference Between Process And Thread With Real Time Examples?
Threads share the address space of the process that created it; processes have their own address.
Threads have direct access to the data segment of its process; processes have their own copy of the data segment of the parent process.
Threads can directly communicate with other threads of its process; processes must use interprocess communication to communicate with sibling processes.
Threads have almost no overhead; processes have considerable overhead.
New threads are easily created; new processes require duplication of the parent process.
Threads can exercise considerable control over threads of the same process; processes can only exercise control over child processes.
Changes to the main thread (cancellation, priority change, etc.) may affect the behavior of the other threads of the process; changes to the parent process does not affect child processes.
How To Increase Transfer Rate Of An Hard Disk?
See if any among these helps to increase Hard disk transfer rate…
Try using RAID setup
In Device Manager under ATA/ATAPI Controllers verify if the hard disk is running in UDMA mode.
Update motherboard chipset drivers
Under Properties of the drive, Hardware Tab -> Properties of the hard disk:
Enable write caching
Enable advanced performance
What Are The Advantages & Disadvantages Of Vertical Cluster & Horizontal Cluster? Which Is The Best? Why?
In horizontally clustered environment, cluster-enabled application is deployed on multiple physical machines. Each machine is available for requests. Horizontal clusters offers protection over hardware failure, increases efficiency, provides load balancing and process failover.
However, since there are many number of physical machines involved the installation and maintenance cost increases proportionally.
In Vertical clustering, multiple application server instances are hosted on the same physical machine. This type of clustering provides increased efficiency, load balancing and process failover. However, if hardware fails then there may not be ready alternative.
Explain Cdrom Access Is Random Or Semi Random Or Sequential?
CDROM access is sequential.
Magnetic sequential access memory is typically used for secondary storage in general-purpose computers due to their higher density at lower cost compared to RAM, as well as resistance to wear and non-volatility. Examples of SAM devices still in use include hard disks, CD-ROMs and magnetic tapes. Historically, drum memory has also been used.
What Is Dirty Dimension?
If a Record occurs more than one time in a table by the difference of a non-key attribute then such a dimension is called Dirty Dimemsion.
What Is The Hierarchy Levels In Data Warehousing Concepts Level?
In-accurate data is often termed as dirty data and has been characterized as missing data, wrong data and compound data with different representations.
Ex. :-
customer dimension in which the same person can appear multiple times probably not with exactly the same spellings or other attributes.
Give One Real Time Application Where Static Variables Are Used?
Thinks of a situation where you need to do some work just once in a function irrespective of how many times that function is invoked then u can have a static variable which will keep a track of it. eg int main () { static int once = 0; if (!once) { once++; /*code need to be executed once*/ } /*reset of the code*/ }
What Is A Lowest Level Computer Language?
8085 Assembly language is widely known as the lowest level language
How To Implement “queue” Functionality By Using “2 Stacks”?
Take 2 empty stacks.
Fill the 1st stack with some items (eg: input 100, 101, 102, 103).
Now read the items from 1st stack in LIFO order and write to 2nd stack. (By this the 2nd stack will get the items in the order .. 103, 102, 101, 100)
Now read the items from 2nd stack in LIFO order i.e. the output will be 100, 101, 102, 103. (this is the queue order FIFO with respect to the actual items entered in 1st stack.)
What Is Multitasking?
Two or more process run concurrently called MultiTasking.
There are two types of multitasking.
Process-based.
Thread-based.
Process-based multitasking allows your computer to run two or more programs concurrently.
Thread-based multitasing means single program can perform two or more task simultaneously.
What Is How Chat Server Works?
throgh a socket programming bidirectional commumication.
Give The Complete Difference Between Database, Relational Database And Object Database?
A database is an organized collection of information. It is structured so you can jump to the information by using a key, and find related infromation by navigating a path. A sequential (flat) file is not considered a database.
A relational database contains one-to-many relationships.
A networked database contains one-to-many and many-to-many relationships.