0% found this document useful (0 votes)
160 views2 pages

Solved MCQ of C Set 1

The document contains 10 multiple choice questions about the C programming language. It tests knowledge about who developed C, array indexing and size, data types supported by C, the role of compilers, and what pointers hold. The answers provided are: Dennis Ritchie developed C, the value at index 3 of the given array is 8, C can be used on all operating systems listed, the size of a float array of 15 elements is 15, compilers convert C to machine language, arrays contain homogenous data types, parentheses are allowed in C arithmetic instructions, a loop is required to accept 100 values into an array, 7/3 in an integer variable results in 2, and pointers hold the address of a variable.

Uploaded by

Srini Vasulu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
160 views2 pages

Solved MCQ of C Set 1

The document contains 10 multiple choice questions about the C programming language. It tests knowledge about who developed C, array indexing and size, data types supported by C, the role of compilers, and what pointers hold. The answers provided are: Dennis Ritchie developed C, the value at index 3 of the given array is 8, C can be used on all operating systems listed, the size of a float array of 15 elements is 15, compilers convert C to machine language, arrays contain homogenous data types, parentheses are allowed in C arithmetic instructions, a loop is required to accept 100 values into an array, 7/3 in an integer variable results in 2, and pointers hold the address of a variable.

Uploaded by

Srini Vasulu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Solved MCQ of C set 1

1. C language has been developed by


A) Martin Richards
B) Bijarne Stroustrup
C) Dennis Ritche
D) Ken Thompson

2. int[ ] ={5,6,7,8,9} What is the value of a[3]?


A) 9
B) 8
C) 7
D) 6

3. C can be used on
A) Only MS-Dos operating System
B) Only Linux operating system
C) Only Windows operating system
D) All of the above

4. Float a[15], what is the size of array?


A) 17
B) 14
C) 15
D) 16

5. C programs are converted into machine language with the


help of
A) An Editor
B) A complier
C) An operating system
D) None of the above

6. Array is
A) Primary data type
B) Pointer data type
C) Heterogeneous data type
D) Homogenous data type

7. Which of the following is allowed in a C Arithmetic Instruction?


A) [ ]
B) { }
C) ( )
D) None of the above

8. To accept 100 different values into the array we require


A) Loop
B) If condition
C) Function
D) Structure

9. If a is an integer variable, a=7/3; will return a value


A) 2.5
B) 3
C) 0
D) 2

10. Pointer holds


A) Value of variable
B) Address of variable
C) Value and address of variable
D) Always null

Answers:
1. C) Dennis Ritche
2. B) 8
3. D) All of the above
4. C) 15
5. B) A complier
6. D) Homogenous data type
7. C) ( )
8. A) Loop
9. D) 2
10. B) Address of variable

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy