C Objective Questions

  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View C Objective Questions as PDF for free.

More details

  • Words: 336
  • Pages: 2
C Objective Questions 1. Which of the following language is predecessor to C Programming Language? A

B

BCPL

C++

2. C programming language was developed by Dennis Ritchie

Ken Thompson

Bill Gates

Peter Norton

1972

1976

1980

Low Level

Middle Level

Machine Level

3. C was developed in the year ___ 1970

4. C is a ___ language High Level

5. C language is available for which of the following Operating Systems? DOS

Windows

Unix

All of these

6. Which of the following symbol is used to denote a pre-processor statement? !

#

~

;

Array

Pointer

Constants

All of the above

7. Which of the following is a Scalar Data type Float

Union

8. Which of the following are tokens in C? Keywords

Variables

9. What is the valid range of numbers for int type of data? 0 to 256

-32768 to +32767

-65536 to +65536

No specific range

10. Which symbol is used as a statement terminator in C? !

#

~

;

11. Which escape character can be used to begin a new line in C? \a

\b

\m

\n

12. Which escape character can be used to beep from speaker in C? \a

\b

\m

\n

13. Character constants should be enclosed between ___ Single quotes

Double quotes

Both a and b

None of these

14. String constants should be enclosed between ___ Single quotes

Double quotes

Both a and b

None of these

‘a’

‘abc’

15. Which of the following is invalid? ‘’

““

16. The maximum length of a variable in C is ___ 8

16

32

64

17. What will be the maximum size of a float variable? 1 byte

2 bytes

4 bytes

8 bytes

18. What will be the maximum size of a double variable? 1 byte

4 bytes

8 bytes

16 bytes

19. A declaration float a,b; occupies ___ of memory 1 byte

4 bytes

8 bytes

16 bytes

16 bytes

None of these

20. The size of a String variable is 1 byte

8 bytes

Related Documents

C Objective Questions
July 2020 6
Objective Questions
May 2020 7
Objective-c
October 2019 15
C++ To Objective-c
December 2019 18
The Objective C Programming
November 2019 4