Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Ask The Science

Ask The Science Logo Ask The Science Logo

Ask The Science Navigation

  • Home
  • Blog
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
  • Home
  • Blog
  • About Us
  • Contact Us
Home/data structure/Page 2
  • Recent Questions
  • Most Answered
  • Answers
  • No Answers
  • Most Visited
  • Most Voted
  • Random
  1. Asked: October 10, 2022In: Computer Science

    Define the queue data structure.

    Ask The Science
    Best Answer
    Ask The Science
    Added an answer on October 10, 2022 at 4:04 pm

    A queue can be defined as an ordered list that enables insert operations to be performed at one end called REAR and delete operations to be performed at another end called FRONT.

    A queue can be defined as an ordered list that enables insert operations to be performed at one end called REAR and delete operations to be performed at another end called FRONT.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: October 10, 2022In: Computer Science

    List some applications of queue data structure.

    Ask The Science
    Best Answer
    Ask The Science
    Added an answer on October 10, 2022 at 4:01 pm

    Applications of the queue are given as follows: Queues are widely used as waiting lists for a single shared resource like a printer, disk, or CPU. Queues are used in the asynchronous transfer of data (where data is not being transferred at the same rate between two processes) for eg. pipes, file IO,Read more

    Applications of the queue are given as follows:

    • Queues are widely used as waiting lists for a single shared resource like a printer, disk, or CPU.
    • Queues are used in the asynchronous transfer of data (where data is not being transferred at the same rate between two processes) for eg. pipes, file IO, and sockets.
    • Queues are used as buffers in most applications like MP3 media players, CD players, etc.
    • Queues are used to maintain the playlist in media players to add and remove the songs from the playlist.
    • Queues are used in operating systems for handling interrupts.
    See less
      • 5
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: October 10, 2022In: Computer Science

    List the area of applications where stack data structure can be used?

    Ask The Science
    Best Answer
    Ask The Science
    Added an answer on October 10, 2022 at 3:59 pm

    Expression evaluation Backtracking Memory Management Function calling and return

    • Expression evaluation
    • Backtracking
    • Memory Management
    • Function calling and return
    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: September 29, 2022In: Computer Science

    What is a binary search? When is it best used?

    Ask The Science
    Ask The Science
    Added an answer on September 29, 2022 at 11:05 pm

    A binary search is an algorithm that starts with searching from the middle element. If the middle element is not the target element then it checks if it should search the lower half or the higher half. The process continues until the target element is found. The binary search works best when appliedRead more

    A binary search is an algorithm that starts with searching from the middle element. If the middle element is not the target element then it checks if it should search the lower half or the higher half. The process continues until the target element is found.

    The binary search works best when applied to a list with sorted or ordered elements.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: September 29, 2022In: Computer Science

    What is a queue? How is it different from a stack?

    Ask The Science
    Ask The Science
    Added an answer on September 29, 2022 at 11:03 pm

    A queue is a form of linear structure that follows the FIFO (First In First Out) approach for accessing elements. Dequeue, enqueue, front, and rear are basic operations on a queue. Like a stack, a queue can be implemented using arrays and linked lists. In a stack, the item that is most recently addeRead more

    A queue is a form of linear structure that follows the FIFO (First In First Out) approach for accessing elements. Dequeue, enqueue, front, and rear are basic operations on a queue. Like a stack, a queue can be implemented using arrays and linked lists.

    In a stack, the item that is most recently added is removed first. Contrary to this, in the case of a queue, the item least recently added is removed first.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: September 29, 2022In: Computer Science

    What is a multidimensional array?

    Ask The Science
    Ask The Science
    Added an answer on September 29, 2022 at 10:44 pm

    If an array has more than two dimensions, it is called a multidimensional array. They are also called an array of arrays. For example, a 3-D array will look like this: int 3darr[10][20][30] – this array can store 10*20*30 elements. Assigning values int ndarr[2][3][5] = {{{1,2,4,5},{5,6,7,9}, {6,5,4,Read more

    If an array has more than two dimensions, it is called a multidimensional array. They are also called an array of arrays. For example, a 3-D array will look like this:

    int 3darr[10][20][30] 

    – this array can store 10*20*30 elements.

    Assigning values

    int ndarr[2][3][5] = {{{1,2,4,5},{5,6,7,9}, {6,5,4,3}}, {{1,1,3,4}, {2,3,4,6}, {5,6,7,8}}};

    Accessing elements

    To access each element, we need three nested loops, say i,j,k, so that we can get the value as ndarr[i][j][k]

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: September 29, 2022In: Computer Science

    What are the various operations that can be performed on a data structure?

    Ask The Science
    Ask The Science
    Added an answer on September 29, 2022 at 10:40 pm

    The following are the operations that can be performed on a data structure: Deletion: Deleting an existing element from the data structure. Insertion: Adding a new element to the data structure. Searching: Find the location of an element, if it exists, in the data structure. Sorting: Arranging elemeRead more

    The following are the operations that can be performed on a data structure:

    • Deletion: Deleting an existing element from the data structure.
    • Insertion: Adding a new element to the data structure.
    • Searching: Find the location of an element, if it exists, in the data structure.
    • Sorting: Arranging elements of the data structure in ascending or descending order for numerical data, and dictionary order for alphanumeric data.
    • Traversal: Accessing each element of the data structure once for processing.
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: September 29, 2022In: Computer Science

    How does a linear data structure differ from a non-linear data structure?

    Ask The Science
    Ask The Science
    Added an answer on September 29, 2022 at 10:30 pm

    If the elements of a data structure form a sequence or a linear list then it is called a linear data structure. Non-linear data structures are those in which the traversal of nodes is done non-linearly. Arrays, linked lists, stacks, and queues are examples of linear data structures, while graphs andRead more

    If the elements of a data structure form a sequence or a linear list then it is called a linear data structure. Non-linear data structures are those in which the traversal of nodes is done non-linearly.

    Arrays, linked lists, stacks, and queues are examples of linear data structures, while graphs and trees are examples of non-linear data structures.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 2

Sidebar

Ask A Question
  • Popular
  • Answers
  • Ask The Science

    Why Should We Hire You?

    • 2 Answers
  • BigB

    Why do we not fall off from the Earth?

    • 2 Answers
  • BigB

    What is the internal structure of the Earth?

    • 1 Answer
  • BigB

    How do we discover what is inside the Earth?

    • 1 Answer
  • BigB

    How did we discover that the Earth is round?

    • 1 Answer
  • developerwithlove
    developerwithlove added an answer The following are the most significant advantages of the Agile… October 3, 2023 at 11:25 am
  • developerwithlove
    developerwithlove added an answer The following are some widely accepted principles of Agile testing:… October 3, 2023 at 11:23 am
  • developerwithlove
    developerwithlove added an answer Agile testing is a critical step in the process. It… October 3, 2023 at 11:22 am
  • developerwithlove
    developerwithlove added an answer Agile is an iterative and incremental approach to project management… October 3, 2023 at 11:22 am
  • Ask The Science
    Ask The Science added an answer Scrum and Agile are often used interchangeably, but the two aren’t… October 3, 2023 at 11:11 am

Trending Tags

agile interview questions cyber security interview questions data engineer interview questions data structure data structure interview questions data structure interview questions and answers data structures front end front end interview questions general interview questions interview questions linked list python python interview questions qa interview questions queue queue data structure scrum master interview questions social media interview questions software testing interview questions sql interview questions

Explore

  • Recent Questions
  • Most Answered
  • Answers
  • No Answers
  • Most Visited
  • Most Voted
  • Random

Footer

Ask the Science

Ask the Science is a Science questions & Answers Engine which will help you establish your community and connect with other people.

Legal

  • Privacy Policy
  • Terms and Conditions

About Us

  • About Us
  • Blog
  • Contact Us

© 2022, All Rights Reserved
With Love by Ask The Science.