
Data Structures Quiz
Authored by anusha ambeera
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
36 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? struct node { int data; struct node *x; struct node *y; };
Implementation of SLL
Implementation of DLL
Implementation of CLL
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 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
30 sec • 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
30 sec • 1 pt
What will be the output of the following code? void function() { struct node *temp=head; while(temp!=NULL) { printf("%d ",temp->data); temp=temp->next; } }
Displaying elements
Printing nodes
Traversal data
All
6.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 1 pt
What is the value of the postfix expression 6 3 4 * + 2 - ?
74
-18
16
40
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
35 questions
Data Structures - Stacks
Quiz
•
12th Grade
41 questions
Programacion
Quiz
•
9th - 12th Grade
35 questions
end of year Quiz
Quiz
•
12th Grade - University
40 questions
TestOut Quiz CMT+ - G/H/I
Quiz
•
11th Grade - University
35 questions
Ulangan Informatika Kelas 7
Quiz
•
7th Grade - University
41 questions
Ujian Informatika Kelas VIII
Quiz
•
8th Grade - University
35 questions
Data Structures - Graphs
Quiz
•
12th Grade
40 questions
XII - Administrasi Infrastruktur Jaringan
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade