
DS UNIT 01 CSM

Quiz
•
Computers
•
12th Grade
•
Hard
anusha ambeera
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
struct node {
int data;
struct node *x;
struct node *y;
};
Implementation of DLL
Implementation of CLL
None
Implementation of SLL
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
void function() {
if(head==NULL)
printf("\n List is Empty: ");
else {
struct node *temp=head;
head=head->next;
free(temp) // temp->next=NULL; } }
DLL Delete At End
SLL Delete At End
SLL Insert At Beginning
SLL Delete At Beginning
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
. Linked list and Array are considered as an example of ___________ type of memory allocation.
Static and Dynamic
Dynamic and Static
Heap and Dynamic
None
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
void function() {
int value;
struct node nn=(struct node)malloc(sizeof(struct node));
nn->data=value;
nn->next=NULL;
if(head==NULL)
head=nn;
else {
nn->next=head;
head=nn; } }
DLL Delete At End
SLL Delete At End
SLL Insert At Beginning
SLL Insert At End
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
void function() {
struct node *temp=head;
while(temp!=NULL) //while(temp)
{
printf("%d ",temp->data);
temp=temp->next; } }
Displaying elements
Printing nodes
Traversal data
All
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following definition in c programming language.
struct node {
int data;
struct node *next;
} typedef struct node NODE;
NODE *nn;
Which of the following c code is used to create new node?
nn = (NODE*)malloc(sizeof(NODE));
nn = (NODE*)malloc(NODE);
nn = (NODE*)malloc(sizeof(NODE*));
nn = (NODE)malloc(sizeof(NODE));
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the value of the postfix expression 6 3 4 * + 2 - ?
-16
18
24
16
Create a free account and access millions of resources
Similar Resources on Wayground
24 questions
iGCSE Computer Science: Networks

Quiz
•
9th - 12th Grade
15 questions
untitled

Quiz
•
11th Grade - University
20 questions
Bid Data: Day 2

Quiz
•
KG - Professional Dev...
20 questions
TMK Tahun 6 - Pengaturcaraan

Quiz
•
KG - 12th Grade
25 questions
Computer Technology - 1.அடோப் பேஜ்மேக்கர்

Quiz
•
12th Grade
20 questions
JETS CLUB QUIZ

Quiz
•
9th - 12th Grade
20 questions
Computer Networks Review

Quiz
•
9th - 12th Grade
15 questions
Soal TLJ Kelas XII.TKJ

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade