About Me

Hello there! Before talking about qualifications and professional abilities, I would like to introduce myself. I am a Yuvraj Basnet and professional software developer and have been working in this field for 3 long years. I have finished my graduation from The University of Delhi on Computer Science Engineering I considered myself a reasonably experienced programmer with a particular interest in the human side of software development, computers are fascinating machine, but they're mostly reflection of the people using them. In the art of software development, studying code isn't enough; you have to study the people behind the software, too.

Common Interview Questions & Answers

Hey friends! today we will discuss top 
Interview Questions And Answers 

Q 1- Describe Wild Pointers in C?
Uninitialized pointers in the C code are known as Wild Pointers. They point to some arbitrary memory location and can cause bad program behavior or program crash.
Q 2- What is the general form of function in C?
Answer: The function definition in C contains four main sections.
return_type function_name( parameter list )
      body of the function
  • Return Type: Data type of the return value of the function.
  • Function Name: The name of the function and it is important to have a meaningful name that describes the activity of the function.
  • Parameters: The input values for the function that are used to perform the required action.
  • Function Body: Collection of statements that performs the required action.
Q 3- What is a sequential access file?
General programs store data into files and retrieve existing data from files. With the sequential access file, such data are saved in a sequential pattern. When retrieving data from such files each data is read one by one until the required information is found.
Q 4-Explain the use of function toupper()?
Answer: Toupper() function is used to convert the value to uppercase when it used with characters.

Q 5- Is it possible to use curly brackets ({}) to enclose a single line code in C program?
Yes, it works without any error. Some programmers like to use this to organize the code. But the main purpose of curly brackets is to group several lines of codes.

Q 6- Describe the modifier in C?
Modifier is a prefix to the basic data type which is used to indicate the modification for storage space allocation to a variable.
Example– In a 32-bit processor, storage space for the int data type is 4.When we use it with modifier the storage space change as follows:

  • Long int: Storage space is 8 bit
  • Short int: Storage space is 2 bit

Q 7- What is the process to generate random numbers in C programming language?

The command rand() is available to use for this purpose. The function returns an integer number beginning from zero(0). 

Q 8- Describe the newline escape sequence with a sample program?
The Newline escape sequence is represented by \n. This indicates the point that the new line starts to the compiler and the output is created accordingly. The following sample program demonstrates the use of the newline escape sequence.
Q 9- Is there any possibility to create a customized header file with C programming language?
Yes, it is possible and easy to create a new header file. Create a file with function prototypes that are used inside the program. Include the file in the ‘#include' section from its name.
Q 10- What is indirection?
Answer: If you have defined a pointer to a variable or any memory object, there is no direct reference to the value of the variable. This is called the indirect reference. But when we declare a variable, it has a direct reference to the value.

Post a Comment