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

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/ Ask The Science/Answers
  • Questions
  • Polls
  • Answers
  • Best Answers
  • Groups
  • Joined Groups
  • Managed Groups
  1. 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
  2. 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
  3. Asked: September 29, 2022In: Computer Science

    What are FIFO and LIFO?

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

    Both FIFO and LIFO are approaches to accessing, storing and retrieving elements from a data structure. LIFO stands for Last In First Out. In this approach, the most recently stored data is the one to be extracted first. FIFO stands for First In First Out. With this approach, the data that is storedRead more

    Both FIFO and LIFO are approaches to accessing, storing and retrieving elements from a data structure. LIFO stands for Last In First Out. In this approach, the most recently stored data is the one to be extracted first.

    FIFO stands for First In First Out. With this approach, the data that is stored earliest will be extracted first.

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

    How do you reference all the elements in a one-dimension array?

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

    We can reference all the elements in a one-dimension array using an indexed loop. The counter runs from 0 to the maximum array size, say n, minus one. All elements of the one-dimension array are referenced in sequence by using the loop counter as the array subscript.

    We can reference all the elements in a one-dimension array using an indexed loop. The counter runs from 0 to the maximum array size, say n, minus one. All elements of the one-dimension array are referenced in sequence by using the loop counter as the array subscript.

    See less
      • 3
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. 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
  6. 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
  7. Asked: September 29, 2022In: Computer Science

    What is a stack? State some applications.

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

    A stack is a linear data structure that follows either the LIFO (Last In First Out) or FILO (First In Last Out) approach for accessing elements. Push, pop, and peek are the basic operations of a stack. Some applications of a stack are: Checking for balanced parentheses in an expression The evaluatioRead more

    A stack is a linear data structure that follows either the LIFO (Last In First Out) or FILO (First In Last Out) approach for accessing elements. Push, pop, and peek are the basic operations of a stack.

    Some applications of a stack are:

    • Checking for balanced parentheses in an expression
    • The evaluation of a postfix expression
    • Implementing two stacks in an array
    • Infix to postfix conversion
    • Reversing a string
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. 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
  9. Asked: September 29, 2022In: Computer Science

    Explain the postfix expression.

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

    In a postfix expression, the operator is fixed after the operands. Some examples are: B++ (i.e. B+B) AB+ (i.e. A+B) ABC*+ (i.e. A+B*C) AB*CD*+ (i.e. A*B + C*D)

    In a postfix expression, the operator is fixed after the operands. Some examples are:

    • B++ (i.e. B+B)
    • AB+ (i.e. A+B)
    • ABC*+ (i.e. A+B*C)
    • AB*CD*+ (i.e. A*B + C*D)
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. 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
1 … 30 31 32 33 34

Sidebar

Administrator
Ask The Science

Ask The Science

Ask Ask The Science

User Statistics

  • 393

    Visits

  • 283

    Questions

  • 336

    Answers

  • 288

    Best Answers

  • 1k

    Points

  • 0

    Followers

  • 1

    Member

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.