Tuesday, November 10, 2009

Online and Offline examination questions on C introduction paper-1

1. Is C Language High Level Language or Low level Language
a)High Level
b)Low Level
c)Middle Level
d)None of the above

2. Who invented the C Language
a)Dennis Ritchie
b)Brian Kernighan and Dennis Ritchie
c)Ken Thompson
d)Martin Richards

3.Each C statement gets terminated with the notation
a)None of the Above
b) ;
c) %
d) $

4.Which of the following denote primary data types in C program?
a)int
b) char
c) float
d) All the Above

5. The operation between float and int would give the result as
a)float
b)int
c)unsigned int
d)None of the Above

6. What is the output of the following C program?
main()
{
int a=10;
int b;
b=a++ + 20;
printf("a=%d b=%d",a,b);
}
a) None of the Above
b) a=11 b=30
c) a=10 b=30
d) a=11 b=31

7. Which of the following denote library functions in C?
a) scanf
b) printf
c) Both A and B
d)None of the Above

8. The left shift operator in C program is denoted by
a) << b) >>
c) < d). None of the Above 9. The conditional operator in C program is denoted by a) >:
b) ?:
c) ?
d) None of the Above

10. What is the output of the following program?
main()
{
int exf=25;
int test;
test=++exf++;
printf("exf=%d test=%d", exf, test);
}
a) exf=26 test=25
b) exf=27 test=26
c) Gives Error
d) exf=26 test=26

11. Which of the following reads a single character but does not display the character on screen?
a)getche
b)getch
c)Both A and B
d)None of the Above

12. Which of the following is not a BITWISE operator in C program?
a) None of the Above
b) ^
c) &
d) &&

13. What is the output of the following program?
main()
{
printf("%d",-5/-4);
}

a) 1
b) -1
c) -1.25
d) 1.25

14. The notation for preprocessor directive is
a) $
b) !
c) @
d) #

15. Which of the following denote preprocessor directives?
a) if else
b) malloc
c) static
d) #define

16. Which of the following denote invalid variable names in C?
a) exforsys
b) float
c) abcd
d) None of the Above

17. Which of the following denotes a new line character in C program?
a) n
b) /n
c) t
d) /t

18. Which of the following data type occupied 1 byte?
a) long double
b) char
c) float
d) double

19. Which of the following operating system was developed from ‘C’ ?
a)Windows
b)DOS
c)UNIX
d)None of the Above

20. Which of the following areas is C language used?
a)Operating Systems
b)Text Editors
c)Utilities
d)All the Above


6 comments:

  1. Thank you. Your work is appreciated by all that people who use your program.

    ReplyDelete
  2. Thank u ..... i want to more questions nd programs also plz.... send more question like that it's very helpful me to generate concepts.... Thank you sir...

    ReplyDelete
  3. Awesome... Please generate it like a quiz so we know how much percent we got
    Make more c online exams like these... Thanks!

    ReplyDelete
  4. In Q2, isn't it both Ken Thompson and Dennis Ritchie? Or at least that's what's written in my NIIT textbook

    ReplyDelete
  5. For Best C Programs with Full Explanatons..
    Visit Here ►► Lightning Code

    ReplyDelete