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
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
Top | MCQs on Binary Search Algorithm with Answers | Question 10
The time taken by binary search algorithm to search a key in a sorted array of n elements is (A)O ( n log2n )(B)O ( n )(C)O ( n^2)(D)O(log2n) Answer...
Read More
Misc
Top | MCQs on Binary Search Algorithm with Answers | Question 9
Consider the following C program that attempts to locate an element x in an array Y[] using binary search. The program is erroneous.[tabby title="C"][sourcecod...
Read More
Misc
Top | MCQs on Binary Search Algorithm with Answers | Question 8
Which of the following is correct recurrence for worst case of Binary Search? (A)T(n) = 2T(n/2) + O(1) and T(1) = T(0) = O(1)(B)T(n) = T(n-1) + O(1)...
Read More
Misc
Top | MCQs on Binary Search Algorithm with Answers | Question 6
What are the mid values (corresponding array items) produced in the first and second iterations for an array arr = [23, 45, 67, 89, 90,46 ]and key = 90? ...
Read More
Misc
Array | Data Structure Quiz for Beginners | Question 30
What is the size of int arr[15]; if we assume that int is 4 bytes? (A)15(B)11(C)12(D)60 Answer: (D) Explanation:If int is as...
Read More
Misc
Array | Data Structure Quiz for Beginners | Question 27
When the array has free unused memory, which method can be used to free up the extra memory? (A)free()(B)shrinkSize()(C)growSize()(D)None Answer: (...
Read More
Misc
Top | MCQs on Graph Traversals with Answers | Question 29
Identify the following Representation of the graph. (A)Adjacency List(B)Adjacency Matrix(C)Both(D)None Answer: (B) Explanat...
Read More
Misc
Top | MCQs on Graph Traversals with Answers | Question 28
Which data structure is commonly used to implement the navigation system in a mapping application, helping users find the shortest route between locations? ...
Read More
Misc
Top | MCQs on Graph Traversals with Answers | Question 27
For a given graph G having v vertices and e edges which is connected and has no cycles, which of the following statements is true? (A)v= e-1(B)e= v-...
Read More
Misc
Top | MCQs on Recursion Algorithm with Answers | Question 30
What is the output of the following code for the input arr[]={1,2,3,4,5,6} N=6?[tabby title="C++"][sourcecode language="cpp"]int fun(int A[], int N){ if (N <= ...
Read More
Misc
Top | MCQs on Recursion Algorithm with Answers | Question 29
What is the output of the below program for the tree: [tabby title="C++"][sourcecode language="cpp"]void printInorder(struct Node* node){ if (node == NULL) ...
Read More
Misc
Salary Slip | Meaning, Format and Components
What is a Salary Slip?A salary slip is an important document that is issued by an employer to an employee as a record of the employee’s salary and other deductions for a g...
Read More
Income Tax
Commerce
Format
Difference between Private Debt and Public Debt
Debt is an obligation of a party to pay back the money borrowed from another party. Various companies and individuals use debt to make those large purchases that they othe...
Read More
Picked
Commerce
Money & Banking
Commerce - Difference Between
12 Best Free Antivirus Apps for Android in 2024
Best Android Antivirus Apps: The population of Android users across the world is expected to reach 3.6 billion and users from more than 190 countries are using it. Quick t...
Read More
GBlog
android
Picked
Cyber-security
News
Tech Blogs
Best Apps
Listicles
Array Representation in Data Structures
Representation of ArrayThe representation of an array can be defined by its declaration. A declaration means allocating memory for an array of a given size. Arrays can be ...
Read More
Arrays
DSA
1
...
2528
2529
2530
...
11271