C programming Quiz

Practice Makes Perfect.


Q: find output: float salary=100; salary=salary++;printf("%f", salary);
  1. 200.0

  2. 100.0

  3. 101



Q2: tackle output: double gravity=9.8; gravity=++gravity;printf ("%lf", gravity);
  1. 10.00

  2. 10.9

  3. 10.80


consider array int fruits [ 3]={ 'mango', 'apple', 'Banana'} ; what is the index of Apple ?
  1. [ 1 ]

  2. [ 0 ]

  3. [ 2 ]



Q4: What is the 'void' in c ?
  1. data type

  2. function

  3. variable



Q5: what is 'return' in c?
  1. function

  2. data type

  3. statement



Q6:what indicates curly brackets ?
  1. files

  2. block

  3. none



Q7:What is the identifires in c ?
  1. predefined words

  2. keywords

  3. userdefined words



Q8: When you run code a=1;a=a*2a , a=?
  1. a=2

  2. a=0

  3. a=1



Q9:How to write functions in c ?
  1. +data(){}

  2. data int(){}

  3. int data(){}



Q10: What is the algorithem ?
  1. code set

  2. instruction set

  3. none



Q11:which of the following is not a codeing language ?
  1. tictoe

  2. rust

  3. ruby



Q12:Which language is superset of C ?
  1. C#

  2. python

  3. c++



Q13:which of the following is exit level loop in c ?
  1. do while

  2. while

  3. for



Q14:Find error in this loop for(i=1,i < 10;++i); ?
  1. token

  2. terminatio

  3. segmentation



Q15: C is which type of language ?
  1. low level

  2. High level

  3. mid level



come tomarrow for more Question
  1. practice Daily 15 Questions

  2. Get onclick answer

  3. easy & free


Comments