
C Quiz-IT-B(Arrays & Pointers)

Quiz
•
Computers
•
University
•
Medium
roja laveti
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a pointer in C?
int ptr;
ptr = int;
int *ptr();
int *ptr;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a pointer variable in C?
4 bytes (on a 32-bit system) or 8 bytes (on a 64-bit system)
10 bytes
2 bytes
16 bytes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do the following declaration signify?
char *arr[10];
arr is a array of 10 character pointers.
arr is a array of function pointer.
arr is a array of characters.
arr is a pointer to array of characters.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring an array in C?
array_name = [array_size];
array_name = data_type[array_size];
array_name[array_size] = data_type;
data_type array_name[array_size];
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between array and pointer in C?
Arrays are a fixed-size collection of elements, while pointers are variables that store memory addresses.
Arrays cannot be passed as arguments to functions, while pointers can
Arrays can only store integers, while pointers can store any data type
Arrays and pointers are the same thing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose a correct array statement.
An array size can not changed once it is created.
Array element value can be changed any number of times
To access Nth element of an array students, use students[n-1] as the starting index is 0.
All the options
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a[];
a[4] = {1,2,3,4};
printf("%d", a[0]);
}
1
Compiler Error
4
2
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
UAS Prak Alpro IF A

Quiz
•
University
12 questions
ARRAYS 1

Quiz
•
University
15 questions
ROTC Make-up Quiz

Quiz
•
University
12 questions
C Practice Test 1

Quiz
•
University
10 questions
Prob. prog 2

Quiz
•
University
10 questions
Java Static

Quiz
•
University
15 questions
uNIT 11_14

Quiz
•
University
10 questions
Tes Awal Modul 4

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University