Create Quiz

Coding practice on Strings Quiz Question

Coding practice on Strings Quiz Question

Given two positive integers X and Y and two numeric strings S and P of length N and 2 respectively, the task Coding practice on Strings Quiz

You can mute/unmute sounds from here

You May Get Result Of Coding practice on Strings Quiz Question

Coding practice on Strings Quiz Question
Coding practice on Strings Quiz Question
Coding practice on Strings Quiz Question
Coding practice on Strings Quiz Question
POST YOUR ANSWER (READ ANSWERS)

Quiz Questions And Answers

Which of the following is a sub string of “SANFOUNDRY”?

SANO
FOUND
SAND
FOND

What will be the output of the following code?

#include
int m = strlen(str2);
int n = strlen(str1);
None

What will be the worst case time complexity of the following code?

O(n)
O(m)
O(m * n)
O(m + n)

What will be the auxiliary space complexity of the following code?

O(n)
O(1)
O(m)
O(log n)

What is the worst case time complexity of KMP algorithm for pattern searching (m = length of text, n = length of pattern)?

O(n)
O(n*m)
O(m)
O(log n)

What will be the best case time complexity of the following code?

O(n)
O(m)
O(m * n)
O(m + n)

What is the time complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?

O(n + m)
O(m)
O(n)
O(m * n)

What is the auxiliary space complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?

O(n + m)
O(m)
Both
None
ANSWERS

Currently, we have no comments. Be first to comment on this quiz.

Coding practice on Strings Quiz Question : Test Trivia

Ultimate impossible accurate personality honest Quiz Game

How do you rate this quiz?

Average rating 4.8 / 5. Vote: 5
Embed This Quiz
Copy the code below to embed this quiz