Follow Quotesrain
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • DATA STRUCTURE

DATA STRUCTURE interview questions and answers for freshers

DATA STRUCTURE Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 260
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

DATA STRUCTURE Question Topics

    Logical Reasoning (3)

  • Coding Decoding (1)
  • Decision Making and Problem Solving (1)
  • Number Series (1)
  • Programming (63)

  • Arrays (1)
  • Basics (1)
  • Definition (4)
  • Output (1)
  • Technical (54)
Keep an EYE (0)
Solved Question (3) UnSolved Question (63)
Pages: 71234567NextLast
Advertisements

(#M40167104) DATA STRUCTURE QUESTION Which data structure is better for storing the sorted data? Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following data structure is better for storing the sorted data on which often insert and deletion operations are performed?

A. Linked list
B. Queue
C. Array
D. Doubly linked-list

Asked In DATA STRUCTURE Jax (1 year ago)
Unsolved
Is this Puzzle helpful?   (2)   (2) Submit Your Solution Technical

(#M40167070) DATA STRUCTURE QUESTION Given a positive integer n and you task is find the minimum number of steps that takes n to one . Keep an EYE Keep an eye puzzle Keep an eye puzzle

Problem Statement:

Problem statement is very easy . On a positive integer, you can perform any one of the following 3 steps.

1.) Subtract 1 from it. ( n = n - 1 )

2.) If its divisible by 2, divide by 2. ( if n % 2 == 0 , then n = n / 2 )

3.) If its divisible by 3, divide by 3. ( if n % 3 == 0 , then n = n / 3 )

Given a positive integer n and you task is find the minimum number of steps that takes n to one .

Asked In DATA STRUCTURE SUDHEER BABU PALLANTI (2 years ago)
Unsolved
Is this Puzzle helpful?   (2)   (1) Submit Your Solution
Advertisements

(#M40167068) DATA STRUCTURE QUESTION Move all zeros present in an array to the end Keep an EYE Keep an eye puzzle Keep an eye puzzle

EXAMPLE:
Input=['1','0','1','2','3','0','3','4','0']
Output:
['1', '1', '2', '3', '3', '4', '0', '0', '0']

// Function to move all zeros present in the array to the end
void reorder(int A[], int n)
{
// k stores index of next available position
int k = 0;

// do for each element
for (int i = 0; i < n; i++)
{
// if current element is non-zero, put the element at
// next free position in the array
if (A[i] != 0)
A[k++] = A[i];
}

// move all 0's to the end of the array (remaining indices)
for (int i = k; i < n; i++)
A[i] = 0;
}

// Move all zeros present in the array to the end
int main(void)
{
int A[] = { ..... };
int n = sizeof(A) / sizeof(A[0]);

reorder(A, n);

for (int i = 0; i < n; i++)
printf("%d ", A[i]);

return 0;
}

Asked In DATA STRUCTURE SUDHEER BABU PALLANTI (2 years ago)
Unsolved
Is this Puzzle helpful?   (2)   (0) Submit Your Solution

(#M40167009) DATA STRUCTURE QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

A queue is implemented as a single linked list. Each node has an element and pointer to
another node. Rear and Front contain the addresses of the Rear and Front nodes
respectively. If the condition (rear isequal front) is true and neither is NULL, what do we infer
about the linked list?

Asked In DATA STRUCTURE Deepika (2 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (5)   (7) Submit Your Solution Arrays

(#M40166298) DATA STRUCTURE QUESTION Series Expansion Keep an EYE Keep an eye puzzle Keep an eye puzzle

logic to expand series upto n

1, 1, 2, 10, 65, 442

Asked In DATA STRUCTURE lokendra ved (3 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (16)   (10) Submit Your Solution Number Series

(#M40165096) DATA STRUCTURE QUESTION DS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Given Integer x = 40, y = 35, z = 20, w = 10
Comment on the output of the following two statements
print x * y / z - w print x * y / (z - w)

Asked In DATA STRUCTURE Jainu Parveen S (5 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (19)   (12) Submit Your Solution Technical

(#M40164448) DATA STRUCTURE QUESTION Data Structures Keep an EYE Keep an eye puzzle Keep an eye puzzle

Consider the following code:
function modify(w,u)
{
w = w + 2
u = u - 3
return (w - u)
}
function calculate( )
{
integer a = 10, b = 20, c
c = modify(a, b);
print a
print space
print b
}
Assume that a was passed by value and b was passed by reference. What will be the
output of the program on executing function calculate( ) ?

Op 1: 12 17
Op 2: 10 17
Op 3: 12 20
Op 4: 10 20

Asked In DATA STRUCTURE sashreek (5 years ago)
Unsolved Read Solution (8)
Is this Puzzle helpful?   (29)   (8) Submit Your Solution Coding Decoding

(#M40164447) DATA STRUCTURE QUESTION Amcat Keep an EYE Keep an eye puzzle Keep an eye puzzle

Vrinda writes an efficient program to sum two square diagonal matrices
(matrices with elements only on diagonal). The size of each matrix is nXn. What is the
time complexity of Vrinda's algorithm?

Asked In DATA STRUCTURE sashreek (5 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (25)   (15) Submit Your Solution Decision Making and Problem Solving

(#M40157042) DATA STRUCTURE QUESTION True/False Keep an EYE Keep an eye puzzle Keep an eye puzzle

A linked list is of a length specified in its declaration. True or False ?

Asked In DATA STRUCTURE Mayank Sahai (6 years ago)
Unsolved Read Solution (7)
Is this Puzzle helpful?   (29)   (18) Submit Your Solution Technical

(#M40156442) DATA STRUCTURE QUESTION binary tree Keep an EYE Keep an eye puzzle Keep an eye puzzle

Consider a Binary tree having two pointer for its each children. These pointer are set to NULL if the corresponding child is empty . How many NULL pointer does a Binary Tree with N nodes have ? options are N,n+1,n-1,depend on the shape of the tree

Asked In DATA STRUCTURE ANURAG SINGH (6 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (44)   (21) Submit Your Solution Technical
Keep an EYE (0)
Solved Question (3) UnSolved Question (63)
Pages: 71234567NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

"Jealousy has no cure"

Sandeep Upadhyay

Mathematics is the handwriting on the human consciousness of the very Spirit of Life itself.

Claude Bragdon

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 2 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 3 years ago
  • 2476K+Registerd user
  • 1734K+Engineers
  • 742K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com