C Programming Interview Preparation Online Tests FAQ PDF Download

Learn c programming interview preparation online tests FAQ, c language FAQ, competency based interview questions with MCQs based online test prep. These frequently asked questions has multiple choice questions (MCQs), c language quiz questions and answers: by executing following code, c compiler gives error of <code>int x[8],j; <br> for( j=0; j<=8; ++j ) <br> x[j] = j; </code>, answer key with options declaration error, initialization error, referencing error and out of bound error for competitive exam preparation. Free FAQ, situational interview questions are to learn c programming interview preparation online tests quiz online with MCQs to practice test questions with answers.

FAQ: C Programming Interview Preparation Online Tests PDF Download

MCQ: By executing following code, C compiler gives error of <code>int x[8],j; <br> for( j=0; j<=8; ++j ) <br> x[j] = j; </code>

  1. Declaration error
  2. Initialization error
  3. Referencing error
  4. Out of bound error

D

MCQ: In C language, when collection of data is stored in a list where last stored or top element is accessible only then this type of data structure is called

  1. Linked-list
  2. Array
  3. Stack
  4. Heap

C

MCQ: In C language, adding two strings is called

  1. Conversion
  2. Concatenation
  3. Comparison
  4. Distinction

B

MCQ: Purpose of strlen() function of string library is

  1. Return total number of string excluding null character
  2. Return total number of string including null character
  3. Increase length of string excluding space for null character
  4. Increase length of string including space for null character

A

MCQ: Purpose of strncpy() function of string library is

  1. Makes copy of source file to destination file
  2. Makes copy of destination file to source file up to n characters
  3. Makes copy of source file to destination file up to n characters
  4. Makes copy of source file to destination file

C