
Data Structures Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
anusha ambeera
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
32 questions
C# Skill Review

Quiz
•
12th Grade - Professi...
31 questions
Předmaturitní souhrn IT4A

Quiz
•
12th Grade
40 questions
Code Uncode 2.0

Quiz
•
12th Grade
32 questions
1.4.2 Data Structures

Quiz
•
12th Grade
35 questions
CS Unit 10 Data Types Key words

Quiz
•
12th Grade
36 questions
Struktur Data dalam Pembuatan Gim

Quiz
•
12th Grade - University
31 questions
EMC 2C Stacks and Queues

Quiz
•
12th Grade
35 questions
AIJ Manajemen Bandwidth - PAS

Quiz
•
12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade
12 questions
Classifying Polys - 1.1

Quiz
•
10th - 12th Grade
20 questions
1.1 (b) Add / Sub/ Multiply Polynomials

Quiz
•
12th Grade