C language/Interview question in c Sample Test,Sample questions

Question:
Ascii value of A is -

1.97

2.65

3.66

4.1

Posted Date:-2019-03-31 19:17:05


Question:
c language is-

1.modular programming

2.object oriented programming

3.threading programming

4.All of the above

Posted Date:-2019-03-31 19:16:26


Question:
Canvas programming in c are those which deal with the

1.header file

2.recursion

3.memory management

4.Geometrical graphics

Posted Date:-2019-03-31 19:13:34


Question:
Entry control loop are -

1.Every loop is entry control loop

2.those where condition are check at entry level

3.those where condition are check at exit level

4.All of the above

Posted Date:-2019-03-31 18:10:33


Question:
Entry control loops are-

1.for loop

2.while loop

3.do while loop

4.1 and 2

Posted Date:-2019-03-31 18:12:57


Question:
Execution of every c program starts with-

1.first line

2.main function

3.anywhere

4.None of the above

Posted Date:-2019-03-31 18:07:36


Question:
Exit control loop are -

1.for loop

2.while loop

3.do while loop

4.All of the above

Posted Date:-2019-03-31 18:13:26


Question:
Exit control loops are those

1.in which condition are check at entry level

2.in which condition are check at exit level

3.Both of the above

4.None of the above

Posted Date:-2019-03-31 18:11:36


Question:
exit() function are used to-

1.break the loop

2.exit the function call

3.exit the whole program

4.None of the above

Posted Date:-2019-03-31 18:50:01


Question:
exit() function were define in -

1.process header file

2.stdlib header file

3.Both of the above

4.None of the above

Posted Date:-2019-03-31 18:50:50


Question:
fabs() in c programming are in-

1.math header file

2.stdlib header file

3.stdio file

4.iostream file

Posted Date:-2019-03-31 18:34:53


Question:
for any type of looping we require-

1.initialization

2.condition

3.increment and decrement

4.All of the above

Posted Date:-2019-03-31 19:01:46


Question:
for creating random number, we use

1.rand() function

2.random() function

3.randno() function

4.All of the above

Posted Date:-2019-03-31 18:54:05


Question:
For recursion we require 

1.stack area

2.heap area

3.queue area

4.None of the above

Posted Date:-2019-03-31 18:48:34


Question:
for storing number 32768 as a integer, which one is valid ?

1.int

2.long int

3.Integer

4.None of the above

Posted Date:-2019-03-31 18:58:07


Question:
How many keywords are there in c ?

1.34

2.33

3.32

4.None of the above

Posted Date:-2019-03-31 18:27:28


Question:
How will you print “Hello World” without semicolon?

1.pass printf statement in conditional statements

2.pass printf statement in while and break the loop

3.Both of the above

4.None of the above

Posted Date:-2019-03-31 17:44:36


Question:
if the declaration of variable is outside the function then it is treated as

1.global variable

2.static variable

3. long variable

4.register variable

Posted Date:-2019-03-31 19:08:49


Question:
If we allocate memory by malloc in c then it goes to

1.Heap area

2.stack area

3.virtual memory

4.None of the above

Posted Date:-2019-03-31 18:26:17


Question:
int a 
this type of declaration is treated as:-

1.static

2.extern

3.auto

4.global

Posted Date:-2019-03-31 19:07:07


Question:
int a=1;
memory allocation is a type of

1.Heap

2.stack

3.both

4.none

Posted Date:-2019-03-31 18:26:50


Question:
is graphical programming possible by c language ?

1.No

2.Yes

3.Depend on compiler

4.None of the above

Posted Date:-2019-03-31 19:11:54


Question:
is it possible to create customized header file ?

1.YES

2.NO

3.Can not say

4.None of the above

Posted Date:-2019-03-31 19:10:24


Question:
Is nested loop exist in c programming-

1.Yes

2.No

3.Depend on compiler

4.updated version of c language support nested loop

Posted Date:-2019-03-31 18:38:34


Question:
Is that possible to store 32768 in an int data type variable ?

1.Yes

2.No

3.Depend on compiler

4.updated version of c language support nested loop

Posted Date:-2019-03-31 18:56:30


Question:
Nested loop is 

1.two loop , one by one run

2.one loop is always a nested loop

3.exit control is always a nested loop

4.loop inside loop

Posted Date:-2019-03-31 18:40:18


Question:
Null pointers are possible to use in -

1.As an error value

2.As a sentinel value

3.To terminate indirection in the recursive data structure

4.All of the above

Posted Date:-2019-03-31 18:59:42


Question:
rand() function are used to generate random number during execution of program, In which header file it is define ?

1.math

2.stdio

3.stdlib

4.process

Posted Date:-2019-03-31 18:55:35


Question:
smallest executable code in c is -

1.{}

2.void main(){}

3.main

4.All of the above

Posted Date:-2019-03-31 18:08:31


Question:
Swapping of two variable require minimum

1.two variable

2.three variable

3.one variable

4.None of the above

Posted Date:-2019-03-31 17:45:35


Question:
Types of loops in c -

1.for

2.while

3.do while

4.All of the above

Posted Date:-2019-03-31 18:09:06


Question:
void in c language is -

1.keyword

2.function

3.special data type without any value

4.void can be used in place of double

Posted Date:-2019-03-31 18:32:12


Question:
we can create loop by

1.for loop

2.goto statement

3.recursion

4.All of the above

Posted Date:-2019-03-31 18:49:05


Question:
What are different storage class specifiers in C?

1.auto

2.static

3.register

4.All of the above

Posted Date:-2019-03-31 17:41:37


Question:
What are local static variables ?

1.A local static variable is a variable whose lifetime does not end with a fu

2.It extends for the lifetime of complete program

3.All calls to the function share the same copy of local static variables

4.All of the above

Posted Date:-2019-03-31 17:56:22


Question:
What is Dangling pointer ?

1.pointer point the deallocated memory

2.pointer point to the NULL memory

3.pointer point to the valid memory area

4.All of the above

Posted Date:-2019-03-31 17:52:42


Question:
What is difference between i++ and ++i?

1.i++ is prefix while ++i is postfix

2.i++ is postfix while ++i is prefix

3.Both of the above

4.None of the above

Posted Date:-2019-03-31 18:00:05


Question:
What is difference between i++ and ++i?

1.i++ return value first then increment the i

2.++i return value first then increment the i

3.++i increment first then return value

4.1 and 3 are true

Posted Date:-2019-03-31 18:03:12


Question:
what is HEAP area ?

1.it is used for the objects allocated dynamically

2.it is used for the objects deallocated dynamically

3.HEAP is a memory allocation by int

4.None of the above

Posted Date:-2019-03-31 18:23:31


Question:
What is memory leak? 

1.Memory is free by the programmers after use of Heap memory

2.Memory leak occurs when programmers create a memory in heap and forget to d

3.Both of the above

4.None of the above

Posted Date:-2019-03-31 17:54:55


Question:
What is NULL pointer? 

1.NULL is used to indicate that the pointer doesnt point to a valid location.

2.NULL is used to indicate the end of link list

3.NULL pointer cannot point anything

4.None of the above

Posted Date:-2019-03-31 17:50:59


Question:
What is scope of a variable?

1.Scope of variable is declaration of variable

2.Scope of variable is calling of variable

3.Scope of a variable is the part of the program where the variable may direc

4.None of the above

Posted Date:-2019-03-31 17:42:53


Question:
What is stack area ?

1.It is used to store local variables and arguments of a method

2.It is used to allocate dynamic memory

3.Both of the above

4.None of the above

Posted Date:-2019-03-31 18:25:24


Question:
what is the cyclic nature of data type in c ?

1.they goes infinite when exceed range

2.they give error when exceed range

3.they goes back in cyclic form when exceed range

4.None of the above

Posted Date:-2019-03-31 18:37:23


Question:
What is the difference between declaration and definition of function in c ?

1.both are same

2.we always require declaration before definition

3.definition time we allocate memory

4.None of the above

Posted Date:-2019-03-31 18:45:48


Question:
When should we use pointers in a C program?

1.To get address of a variable

2.For achieving pass by reference in C

3.To implement link list data structure

4.All of the above

Posted Date:-2019-03-31 17:47:16


Question:
Which are the basic data type in c ?

1.int

2.float

3.char

4.All of the above

Posted Date:-2019-03-31 18:31:05


Question:
which of the following are modifier in c ?

1.short

2.long

3.signed

4.All of the above

Posted Date:-2019-03-31 18:52:55


Question:
which of the following are the modifier in c ?

1.int

2.float

3.char

4.None of the above

Posted Date:-2019-03-31 18:51:55


Question:
without the curly braces, the body of while loop is upto

1.two line

2.one line

3.no body of while

4.None of the above

Posted Date:-2019-03-31 19:03:33


More MCQS

  1. The ABC of C
  2. Interview question in c
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!