
Sasi-AN-02.05.2024
Authored by CCC info@ccc.training
English
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following function do for a given Linked List with first node as head? void fun1(struct node* head) { if(head == NULL) return; fun1(head->next); printf("%d ", head->data); }
Prints all nodes of linked lists
Prints all nodes of linked list in reverse order
Prints alternate nodes of Linked List
Prints alternate nodes in reverse order
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A linear collection of data elements where the linear node is given by means of pointer is called?
linked list
node list
primitive list
None of these
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Linked lists are not suitable to for the implementation of?
Insertion sort
Radix sort
Polynomial manipulation
Binary search
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In linked list each node contain minimum of two fields. One field is data field to store the data second field is?
Pointer to character
Pointer to integer
Pointer to node
Node
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of these is an application of linked lists?
To implement file systems
For separate chaining in hash-tables
To implement non-binary trees
All of the mentioned
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The concatenation of two list can performed in O(1) time. Which of the following variation of linked list can be used?
Singly linked list
Doubly linked list
Circular doubly linked list
Array implementation of list
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following definition in c programming language.Which of the following c code is used to create new node? struct node { int data; struct node * next; } typedef struct node NODE; NODE *ptr;
ptr = (NODE*)malloc(sizeof(NODE));
ptr = (NODE*)malloc(NODE);
ptr = (NODE*)malloc(sizeof(NODE*));
ptr = (NODE)malloc(sizeof(NODE));
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?