Hello guys, you will get a clear understanding about the exam level through this post so go through it carefully.
Cognizant Technical Interview Questions
We have given 15 most important technical interview questions for cognizant which will help you in understanding the nature of this exam well.
Question 1. What is SATA?
Answer. SATA stands for Serial Advanced Technology Attachment. It is a high-speed computer bus interface designed to connect the host bus adapters to mass storage devices, such as hard disk drives and optical drives.
Question 2. What are statements in JAVA?
Answer. Statements are equivalent to sentences in natural languages. A statement forms a complete unit of execution. The following types of expressions can be made into a statement by terminating the expression with a semicolon
- Assignment expressions
- Any use of ++ or —
- Method calls
- Object creation expressions
These kinds of statements are called expression statements. In addition to these kinds of expression statements, there are two other kinds of statements. A declaration statement declares a variable. A control flow statement regulates the order in which statements get executed. The for loop and the if statement are both examples of control flow statements.
Question 3. What is Multiple Access?
Answer. If the physical links are shared by more than two nodes, it is said to be Multiple Access.
Question 4. What is a friend class?
Answer. Class members can gain accessibility over another class member by placing the class declaration prefixed with the keyword ‘friend’ in the destination class.
Question 5. What is the benefit of using an enum rather than a #define constant?
Answer. The use of an enumeration constant (enum) has many advantages over using the traditional symbolic constant style of #define. These advantages include a lower maintenance requirement, improved program readability, and better-debugging capability.
1) The first advantage is that enumerated constants are generated automatically by the compiler. Conversely, symbolic constants must be manually assigned values by the programmer.
2) Another advantage of using the enumeration constant method is that your programs are more readable and thus can be understood better by others who might have to update your program later.
3) A third advantage of using enumeration constant
Question 6. What might be the problem when you don’t see the display?
Answer. Power related issues
Heat sink related issues
CPU fan-related issues
Improper Jumper settings
Question 7. What is a point-point link?
Answer. If the physical links are limited to a pair of nodes it is said to be a point-point link.
Question 8. What is JAR file?
Answer. JavaARchive files are a big glob of Java classes, images, audio, etc., compressed to make one simple, smaller file to ease Applet downloading. Normally when a browser encounters an applet, it goes and downloads all the files, images, audio, used by the Applet separately. This can lead to slower downloads.
Question 9. What is the order of objects destroyed in the memory?
Answer. The objects are destroyed in the reverse order of their creation.
Question 10. What is the result of using Option Explicit?
Answer. When writing your C program, you can include files in two ways. The first way is to surround the file you want to include with the angled brackets < and >. This method of inclusion tells the preprocessor to look for the file in the predefined default location. This predefined default location is often an INCLUDE environment variable that denotes the path to your include files.
For instance, given the INCLUDE variable
INCLUDE=C:\COMPILER\INCLUDE;S:\SOURCE\HEADERS; using the #include version of file inclusion, the compiler first checks the C:\COMPILER\INCLUDE directory for the specified file. If the file is not found there, the compiler then checks the S:\SOURCE\HEADERS directory. If the file is still not found, the preprocessor checks the current directory.
The second way to include files is to surround the file you want to include with double quotation marks. This method of inclusion tells the preprocessor to look for the file in the current directory first, then look for it in the predefined locations you have set up. Using the #include file version of file inclusion and applying it to the preceding example, the preprocessor first checks the current directory for the specified file. If the file is not found in the current directory, the C:COMPILERINCLUDE directory is searched. If the file is still not found, the preprocessor checks the S:SOURCEHEADERS directory.
The #include method of file inclusion is often used to include standard headers such as stdio.h or stdlib.h.
The #include file includes nonstandard header files that you have created for use in your program. This is because these headers are often modified in the current directory, and you will want the preprocessor to use your newly modified version of the header rather than the older, unmodified version.
Question 11. What are the different types of DRAM?
Answer. The different types of DRAM are SRAM, VRAM, SGRAM, DDR-SDRAM
Question 12. What is a gateway or Router?
Answer. A node that is connected to two or more networks is commonly called a router or Gateway. It generally forwards a message from one network to another.
Question 13. What is a virtual destructor?
Answer. A virtual destructor ensures that the object’s resources are released in the reverse order of the object being constructed w.r.t inherited object.
Question 14. What is serialization?
Answer. Quite simply, object serialization provides a program the ability to read or write a whole object to and from a raw byte stream. It allows Java objects and primitives to be encoded into a byte stream suitable for streaming to some type of network or to a file-system, or more generally, to a transmission medium or storage facility. A serializable object must implement the Serializable interface. We use ObjectOutputStream to write this object to a stream and ObjectInputStream to read it from the stream.
Question 15. Difference between const char* p and char const* p
Answer. In const char* p, the character pointed by p is constant, so u cant change the value of character pointed by p but u can make prefer to some other location.
In char const* p, the ptr p is constant not the character referenced by it, so u cant make p to reference to any other location but u can change the value of the char pointed by p.
Cognizant HR Interview Questions
Below are the 10 most important HR interview questions for Cognizant. Go through them to get an idea about level.
- Tell me a little about yourself.
- Describe who you are. or Tell me about your background.
- Why should I hire you?
- Why are you applying for this job?
- How would you improve our product/ company?
- Do you consider yourself successful?
- You have changed jobs/jumped ship too many times already, why so?
- Can you work under pressure?
- What is more important to you: the money or the work?
- Can you tell us something about your previous boss?
We have given some very important questions of Technical and HR interview above. If you have still any queries then you can comment below. We here at Alpigni are always happy to help you.