1.
What is the purpose of a pointer variable in C?
2.
The printf function is used to:
3.
What was C programming adapted from?
4.
An array in C is a collection of:
5.
Which of the following is a correct way to declare a pointer to an integer variable in C?
6.
An integer (int) typically occupies___________ bytes?
7.
Which keyword is used to dynamically allocate memory in C?
8.
In a for loop, the condition is checked:
9.
When was C programming developed?
10.
What are float variables?
11.
Which of the following is NOT a valid storage class in C?
12.
What will be the output of the following C code? #include int main() { int p = 1, q = 2, r = 3, s = 4, x; e = r + s = q * p; printf(“%d, %d\n”, x, s); }
14.
Which of the following is a valid data type in C?
15.
Which of these is NOT a relational or logical operator?
16.
Which of the following is a valid way to comment out multiple lines of code in C?
17.
What does the & operator represent in C?
18.
What is the keyword used to define a function in C?
19.
The #include directive in C is used for:
20.
The global variables are ____________.
21.
Determine the output of the C code mentioned below: #include int main() { float q = ‘a’; printf(“%f”, q); return 0; }
22.
Which of the following is an important requirement of c programming?
23.
The output of the C code mentioned below would be: #include struct employee { int id; char rank[5]; } void main() { struct employee e; s.no = 30; printf(“howdy”); }
24.
An infinite loop in C can be caused by:
25.
What does the strcmp() function in C do?