KLU- CLUSTER -6 DAY-7

KLU- CLUSTER -6 DAY-7

Professional Development

30 Qs

quiz-placeholder

Similar activities

KLU- CLUSTER -6 DAY-4

KLU- CLUSTER -6 DAY-4

Professional Development

30 Qs

Stems 12

Stems 12

6th Grade - Professional Development

25 Qs

Latin Roots for ms flores

Latin Roots for ms flores

KG - Professional Development

30 Qs

ENGL 101 - Unit 3 - Quiz 3

ENGL 101 - Unit 3 - Quiz 3

Professional Development

30 Qs

EXAM REVIEW 1st TERM

EXAM REVIEW 1st TERM

Professional Development

25 Qs

Grammar Competence English Day

Grammar Competence English Day

Professional Development

25 Qs

Ulangan 1 B. inggris Kls 8

Ulangan 1 B. inggris Kls 8

Professional Development

30 Qs

Technical Skills- End  Examin - 13-01-2024 ECE & EEE SEM V

Technical Skills- End Examin - 13-01-2024 ECE & EEE SEM V

Professional Development

25 Qs

KLU- CLUSTER -6 DAY-7

KLU- CLUSTER -6 DAY-7

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 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

1 min • 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

1 min • 1 pt

What is the time complexity to count the number of elements in the linked list?
O(1)
O(n)
O(logn)
None of the mentioned

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list?
O(1)
O(n)
θ (n)
θ (1)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of following function for start pointing to first node of following linked list? 1->2->3->4->5->6 void fun(struct node* start) { if(start == NULL) return; printf("%d ", start->data); if(start->next != NULL ) fun(start->next->next); printf("%d ", start->data); }
1 4 6 6 4 1
1 3 5 1 3 5
1 2 3 5
1 3 5 5 3 1

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the functionality of the following piece of code? public int function(int data) { Node temp = head; int var = 0; while(temp != null) { if(temp.getData() == data) { return var; } var = var+1; temp = temp.getNext(); } return Integer.MIN_VALUE; }
Find and delete a given element in the list
Find and return the given element in the list
Find and return the position of the given element in the list
Find and insert a new element in the list

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Linked lists are not suitable to for the implementation of?
Insertion sort
Radix sort
Polynomial manipulation
Binary search

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?