
Data Structure Through C
Authored by Harshit K
Computers
1st Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is an array in C?
A collection of variables of different data types.
A collection of variables of the same data type.
A collection of functions.
A collection of pointers.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How is an array indexed in C?
1 to n
0 to n-1
-1 to n-1
-1 to n
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the size of the array int arr[10]?
10 bytes
20 bytes
40 bytes
Depends on the compiler
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct way to declare a function in C?
functionName();
returnType functionName(parameters);
returnType functionName;
functionName returnType(parameters);
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a pointer in C?
A variable that stores the address of another variable.
A variable that stores data.
A variable that points to a function.
A variable that stores a character.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the following statement declare: int *ptr;?
A pointer to an integer.
An integer variable.
A pointer to a character.
An array of integers.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you access the value pointed to by a pointer in C?
&ptr
*ptr
ptr
ptr*
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?