oodlescoop
Tutorials
Recipes
Restaurant
Spiritual
Quotes
Knowledge Bank
Dictionary
Automobiles
Stories
Entertainment
Facts
Articles
Travel
Just For Laughs
Lifestyle
Sports
Companies
Gadgets
Simply Read
Utilities
Medical
Scholar
Books
Quiz
Posts
Login
Sign Up
TUTORIALS
oodlescoop
Tutorials
C Programming
Multiple Choice Questions
Show Categories
C Programming
Basic Programs
Advanced Programs
Alphabet Pattern Programs
Number Pattern Programs
Star Pattern Programs
Tutorials
Question Bank
Multiple Choice Questions
C Programming Multiple Choice Questions (MCQs)
1
.
Topic: Advanced
Question:
According to ANSI specifications which is the correct way of declaring main() when it receives command line arguments?
A
main(int argc, char argv[])
B
main(argc, argv) int argc; char* argv[];
C
main() { int argc; char*argv[ ]; }
D
None of the above
Answer and Explanation
Answer:
A
2
.
Topic: Advanced
Question:
Maximum combined length of the command line arguments including the spaces between adjacent arguments is:
A
128 characters
B
256 characters
C
67 characters
D
It may vary from one operating system to another
Answer and Explanation
Answer:
D
3
.
Topic: Arrays
Question:
An array elements are always stored in _________ memory locations.
A
Sequential
B
Random
C
Sequential and Random
D
None of above
Answer and Explanation
Answer:
A
4
.
Topic: Arrays
Question:
What will happen if you assign a value to an array element whose index exceeds the size of array?
A
The element will be set to 0.
B
The compiler would report an error.
C
The program may crash if some important data gets overwritten.
D
The array size would appropriately grow.
Answer and Explanation
Answer:
C
5
.
Topic: Data Types
Question:
By default a real number is treated as a
A
float
B
double
C
long double
D
far double
Answer and Explanation
Answer:
B
6
.
Topic: Introduction to C
Question:
The value of automatic variable that is declared but not initialized will be?
A
0
B
1
C
Unpredictable
D
None of above
Answer and Explanation
Answer:
C
7
.
Topic: Introduction to C
Question:
Choose the correct statement
A
An identifier may start with an underscore
B
An identifier may end with an underscore
C
if' is a valid identifier
D
All of above
Answer and Explanation
Answer:
D
8
.
Topic: Keywords
Question:
The C language consists of ____ number of keywords.
A
32
B
40
C
24
D
56
Answer and Explanation
Answer:
A
9
.
Topic: Storage Classes
Question:
Which of the following is a keyword used for a storage class?
A
printf
B
external
C
auto
D
scanf
Answer and Explanation
Answer:
C
Do you like cookies?
🍪 We use cookies to ensure you get the best experience on our website.
Learn more
I agree