C Programming MCQs Set-8

Hello students welcome to CSE Study247

This page provide you (C Programming MCQs Set-8) – 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview , Railway & another Government Sector)

C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.

C-Programming-MCQ-Multiple-Choice-Questions

C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.

 

Q.141 Find out the output for the following program

  void main()
  {
  int 2x=65;
  printf(“%c”,2x);
  }






ANSWER= (C) Error

 

Q.142 Find out the output for the following program

  void main()
  {
  char Int x=65;
  printf(“%c”,int);
  }






ANSWER= (C) Error

 

Q.143 Find out the output for the following program

  void main()
  {
  char true =65;
  printf(“%d”,true);
  }






ANSWER= (A) 65

 

Q.144 The c compiler is written in





ANSWER= (A) C

 

Q.145 The address of a variable can be obtained using _____ operator.





ANSWER= (D) &

 

Q.146 The statements of a function are enclosed in ?





ANSWER= (A) Braces {}

 

Q.147 The C notation for the new line characters is ?





ANSWER= (A) /n

 

Q.148 Which of the following is example of call by value ?





ANSWER= (B) Num(a,b)

 

Q.149 A C variable cannot start with





ANSWER= (D) Both (b) and (c)

 

Q.150 In c comments are placed between the characters





ANSWER= (C) /* and */

 

Q.151 Which of the following spwcial symbol allowed in a variable name ?





ANSWER= (C) _(Underscore)

 

Q.152 which of the below function is NOT declared in math.h ?





ANSWER= (D) or()

 

Q.153 Where are the local variable stored ?





ANSWER= (B) stack Memory

 

Q.154 what does the default header file contain?





ANSWER= (A) Declarations

 

Q.155 The range of the int data type in c





ANSWER= (B) -32768 to +32767

 

Q.156 atoi() function is used for:





ANSWER= (B) convert a character string to its equivalent integer value

 

Q.157 Find out the output for the following program

  void main()
  {
  int avg no =65;
  printf(“%d”,avg no);
  }






ANSWER= (C) Error
                                            Explain = avg_no

 

Q.158 Find out the output for the following program

  void main()
  {
  float a =65.2;
  printf(“Hi”,a);
  }






ANSWER= (A) Hi

 

Q.159 Find out the output for the following program

  void main()
  {
  char c = a;
  printf(“%c”,c);
  }






ANSWER= (B) Compile time error

 

Q.160 What is dangling pointer?





ANSWER= (A) points to garbage value

Related MCQ

SETSMCQs VISIT
11 To 20 CLICK
221 To 40CLICK
341 To 60 CLICK
461 To 80 CLICK
581 To100CLICK
6101 To 120CLICK
7121 To 140CLICK
8141 To 160CLICK
9161 To 180 CLICK
10181 To 200CLICK

1. Official Telegram Click Here
2. Telegram For CSE MCQs Click Here
3. You TubeClick Here