
GeekForGeek ROUND 1
Authored by Kanit Kumar
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the Data Structures provide constant time access to the minimum element in the collection?
STACK
QUEUE
PRIORITY QUEUE
LINKED LIST
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following sorting algorithm is not an in-place sorting algorithm?
Selection Sort
Bubble Sort
Merge Sort
Insertion Sort
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given an array of integers , what is the time complexity of finding the second largest element in the array?
O(n)
O(n logn)
O(n^2)
O(1)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a binary search tree, which traversal method would give a sorted order of elements?
Pre-Order
In-Order
Post-Order
Breadth-First Search
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a dynamic programming algorithm used to find the longest common subsequence between two strings?
Bellman-Ford algorithm
Floyd-Warshall algorithm
Dijkstra's algorithm
Longest Common Subsequence Algorithm
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code snippet?
int x=5;
if (x=10){
cout<<"x is equal to 10"<<endl;
}else{
cout<<"x is not equal to 10"
<<endl;
}
x is not equal to 10
x is equal to 10
Compile Error
Runtime Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int a={1,2,3,4,5};
cout<<*(a+2)<<endl;
1
2
3
4
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?