quiz pic

Geek IT - 3 Quiz

Simple 'C' language Quiz questions ; must for a programmer. 11 Questions.

 
Created by:
JeevanRao
Played: 38 times
Comments: 1 comment
Favs: 1 user
like this quiz
Rating:
3 stars
3.0 out of 5, based on 6 votes
Login or Register to view the answers and save your score!

1

What is the only function all C programs must contain?

  • start()
  • main()
  • program()
  • system()

2

What is the correct value to return to the operating system upon the successful completion of a program?

  • 0
  • 1
  • -1
  • Programs do not return a value

3

What punctuation ends most lines of C code?

  • .
  • :
  • ;
  • '

4

Which of the following is a correct comment?

  • ** comment **
  • */ comment */
  • /* comment */
  • { comment }

5

Which of the following is not a correct data type in C programming?

  • float
  • real
  • int
  • double

6

Which of the following is the correct operator to compare two variables?

  • :=
  • =
  • equal
  • ==

7

Which is the modulus operator used in C ?

  • |
  • %
  • mod()
  • None of these

8

Which indicates a new line in C?

  • '\n'
  • \new\
  • end(0)
  • '/n'

9

Which C header contains String manipulation functions like strlen, strcat, strcpy ?

  • stdio.h
  • string.h
  • math.h
  • char.h

10

Which is the file extension of a C program file?

  • .c
  • .cp
  • .cpp
  • .exe

11

Who is the developer of C language?

  • Charlse Babbage
  • Dennis Ritchie
  • Ken Thompson
  • ANSI

 

Header

Message

Close