
22AI34-DSA MODULE 1 QUIZ
Quiz by Ramya k
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Which of the following is a non-linear data structure?
Which of the following is used to measure an algorithm’s efficiency?
Why do we need data structures?
Which of the following is not a linear data structure?
What is the correct syntax to declare a pointer to an integer in C?
Which operator is used to get the address of a variable?
Which operator is used to access the value at the pointer’s address?
What will be the output of the following code?
int a = 5;
int *p = &a;
printf("%d", *p);
What will the following code print?
int arr[5] = {10, 20, 30, 40, 50};
printf("%d", arr[2]);
Which of the following best defines a structure in C?
What is the output of this code?
struct student {
int id;
char name[10];
};
struct student s1 = {101, "Ram"};
printf("%d", s1.id);
Which of the following is true about unions?
What is the main difference between a structure and a union?
What will this code output?
union data
{
int i;
char ch;
};
union data d;
d.i = 65;
printf("%c", d.ch);
What is the main advantage of storing a sparse matrix efficiently?