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

    Write the postfix form of the expression: (A + B) * (C – D)

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

    AB+CD-*

    AB+CD-*

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

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

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

    It can be done by using an indexed loop such that the counter runs from 0 to the array size minus one. In this manner, you can reference all the elements in sequence by using the loop counter as the array subscript.

    It can be done by using an indexed loop such that the counter runs from 0 to the array size minus one. In this manner, you can reference all the elements in sequence by using the loop counter as the array subscript.

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

    How are the elements of a 2D array are stored in the memory?

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

    There are two techniques by using which, the elements of a 2D array can be stored in the memory. Row-Major Order: In row-major ordering, all the rows of the 2D array are stored in the memory contiguously. First, the 1st row of the array is stored in the memory completely, then the 2nd row of the arrRead more

    There are two techniques by using which, the elements of a 2D array can be stored in the memory.

    • Row-Major Order: In row-major ordering, all the rows of the 2D array are stored in the memory contiguously. First, the 1st row of the array is stored in the memory completely, then the 2nd row of the array is stored in the memory completely, and so on till the last row.
    • Column-Major Order: In column-major ordering, all the columns of the 2D array are stored in the memory contiguously. first, the 1st column of the array is stored in the memory completely, then the 2nd row of the array is stored in the memory completely, and so on till the last column of the array.
    See less
      • 2
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: October 10, 2022In: Computer Science

    Calculate the address of a random element present in a 2D array, given base address as BA.

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

    Row-Major Order: If the array is declared as a[m][n] where m is the number of rows while n is the number of columns, then the address of an element a[i][j] of the array stored in row-major order is calculated as,   Address(a[i][j]) = B. A. + (i * n + j) * size Column-Major Order: If the array iRead more

    Row-Major Order: If the array is declared as a[m][n] where m is the number of rows while n is the number of columns, then the address of an element a[i][j] of the array stored in row-major order is calculated as,

     

    Address(a[i][j]) = B. A. + (i * n + j) * size

    Column-Major Order: If the array is declared as a[m][n] where m is the number of rows while n is the number of columns, then the address of an element a[i][j] of the array stored in column-major order is calculated as

    Address(a[i][j]) = ((j*m)+i)*Size + BA.

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

    Are linked lists considered linear or non-linear data structures?

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

    A linked list is considered both linear and non-linear data structure depending upon the situation. Based on data storage, it is considered a non-linear data structure. Based on the access strategy, it is considered a linear data structure.

    A linked list is considered both linear and non-linear data structure depending upon the situation.

    • Based on data storage, it is considered a non-linear data structure.
    • Based on the access strategy, it is considered a linear data structure.
    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: October 10, 2022In: Computer Science

    What are the advantages of Linked List over an array?

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

    The size of a linked list can be incremented at runtime which is impossible in the case of the array. The List is not required to be contiguously present in the main memory, if the contiguous space is not available, the nodes can be stored anywhere in the memory connected through the links. The ListRead more

    • The size of a linked list can be incremented at runtime which is impossible in the case of the array.
    • The List is not required to be contiguously present in the main memory, if the contiguous space is not available, the nodes can be stored anywhere in the memory connected through the links.
    • The List is dynamically stored in the main memory and grows as per the program demand while the array is statically stored in the main memory, the size of which must be declared at compile time.
    • The number of elements in the linked list is limited to the available memory space while the number of elements in the array is limited to the size of an array.
    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: October 10, 2022In: Computer Science

    Write the syntax in C to create a node in the singly linked list.

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

    struct node { int data; struct node *next; }; struct node *head, *ptr; ptr = (struct node *)malloc(sizeof(struct node));

    struct node
    {
    int data;
    struct node *next;
    };
    struct node *head, *ptr;
    ptr = (struct node *)malloc(sizeof(struct node));

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

    If you are using C language to implement the heterogeneous linked list, what pointer type should be used?

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

    The heterogeneous linked list contains different data types, so it is not possible to use ordinary pointers for this. For this purpose, you have to use a generic pointer type like void pointer because the void pointer is capable of storing a pointer to any type.

    The heterogeneous linked list contains different data types, so it is not possible to use ordinary pointers for this. For this purpose, you have to use a generic pointer type like void pointer because the void pointer is capable of storing a pointer to any type.

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

    Write the C program to insert a node in circular singly list at the beginning.

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

    #include<stdio.h> #include<stdlib.h> void beg_insert(int); struct node {     int data;     struct node *next; }; struct node *head; void main () {     int choice,item;     do     {         printf("\nEnter the item which you want to insert?\n");         scanf("%d",&item);         beg_Read more

    1. #include<stdio.h>
    2. #include<stdlib.h>
    3. void beg_insert(int);
    4. struct node
    5. {
    6.     int data;
    7.     struct node *next;
    8. };
    9. struct node *head;
    10. void main ()
    11. {
    12.     int choice,item;
    13.     do
    14.     {
    15.         printf(“\nEnter the item which you want to insert?\n”);
    16.         scanf(“%d”,&item);
    17.         beg_insert(item);
    18.         printf(“\nPress 0 to insert more ?\n”);
    19.         scanf(“%d”,&choice);
    20.     }while(choice == 0);
    21. }
    22. void beg_insert(int item)
    23. {
    24.     struct node *ptr = (struct node *)malloc(sizeof(struct node));
    25.     struct node *temp;
    26.     if(ptr == NULL)
    27.     {
    28.         printf(“\nOVERFLOW”);
    29.     }
    30.     else
    31.     {
    32.         ptr -> data = item;
    33.         if(head == NULL)
    34.         {
    35.             head = ptr;
    36.             ptr -> next = head;
    37.         }
    38.         else
    39.         {
    40.             temp = head;
    41.             while(temp->next != head)
    42.                 temp = temp->next;
    43.             ptr->next = head;
    44.             temp -> next = ptr;
    45.             head = ptr;
    46.         }
    47.     printf(“\nNode Inserted\n”);
    48.     }
    49. }

    See less
      • 3
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. 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
1 … 29 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.