Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
galgotia | contest 9 | Question 6
In a scenario where the array is sorted in descending order, what modification is required for binary search to still work correctly? (A)No modifica...
Read More
galgotia | contest 9 | Question 4
In each step of binary search, the search space is reduced by: (A)One-third(B)One-fourth(C)Half(D)Two-thirds Answer: (C) Exp...
Read More
galgotia | contest 9 | Question 7
Given an input arr = {2,5,7,99,899}; key = 899; What is the level of recursion? (A)5(B)2(C)3(D)4 Answer: (C) Explanation: ...
Read More
galgotia | contest 9 | Question 5
What is the space complexity of the binary search algorithm? (A)O(1)(B)O(log n)(C)O(n)(D)O(n^2) Answer: (A) Explanation: ...
Read More
galgotia | contest 9 | Question 1
How is binary search typically employed? (A)Sorting an array.(B)Searching a sorted array(C). Searching an unsorted array(D)Sorting a linked list Ans...
Read More
galgotia | contest 9 | Question 3
What is the worst-case time complexity of binary search? (A)O(1)(B)O(log n)(C)O(n)(D)O(n^2) Answer: (B) ...
Read More
galgotia | contest 9 | Question 2
During each iteration of binary search, what does the algorithm compare the target value to? (A)Middle element of the array(B)First element of the a...
Read More
JBDL | Weekly Contest_4 | Question 25
In JDBC, which code snippet correctly closes a ResultSet, Statement, and Connection in a safe manner?[tabby title="Java"][sourcecode language="java"]ResultSet ...
Read More
JBDL | Weekly Contest_4 | Question 21
In Spring AOP, consider the following code snippet:[tabby title="Java"][sourcecode language="java"]@Before("myPointcut()")public void beforeAdvice() { // Ad...
Read More
JBDL | Weekly Contest_4 | Question 19
Consider the following JDBC code snippet:[tabby title="Java"][sourcecode language="java"]try (Connection conn = DriverManager.getConnection("jdbc:mysql://local...
Read More
JBDL | Weekly Contest_4 | Question 14
What is the purpose of the @Qualifier annotation in Spring? (A)To define a bean's lifecycle(B)To inject a specific bean when multiple candidates are...
Read More
JBDL | Weekly Contest_4 | Question 13
Which of the following is NOT a built-in Spring scope? (A)transient(B)session(C)prototype(D)singleton Answer: (A) Explanatio...
Read More
JBDL | Weekly Contest_4 | Question 8
Which XML-based configuration file is commonly used for Spring application configuration? (A)application-context.xml(B)spring-config.xml(C)bean-conf...
Read More
JBDL | Weekly Contest_4 | Question 20
[tabby title="Java"][sourcecode language="java"] [/sourcecode][tabbyending]What type of Dependency Injection is demonstrated here? (A...
Read More
JBDL | Weekly Contest_4 | Question 16
What does the following JDBC code snippet do?[tabby title="Java"][sourcecode language="java"] try (Connection conn = DriverManager.getConnection("jdbc:mysql://...
Read More
1
...
2007
2008
2009
...
11245