.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » Onmobile Placement Papers » Onmobile Previous Year Placement Paper

 

Onmobile Placement Paper -: Data Structure Questions With Answers


Advertisements
Advertisements




Onmobile Previous Years Solved Sample Placement Papers

  1. What should be done when a left parenthesis ‘(‘ is encountered?

    a) It is ignored

    b) It is placed in the output

    c) It is placed in the operator stack

    d) The contents of the operator stack is emptied

    Answer: c

    Explanation: When a left parenthesis is encountered, it is placed on to the operator stack. When the corresponding right parenthesis is encountered, the stack is popped until the left parenthesis and remove both the parenthesis.

  2. What is the postfix expression for the following infix expression?

    a/b^c-d

    a) abc^/d-

    b) ab/cd^-

    c) ab/^cdd

    d) abcd^/-

    Answer: a

    Explanation: Using the infix to postfix conversion algorithm, the corresponding postfix expression for the infix expression is abc^/d-.

  3. What is the corresponding postfix expression for the given infix expression?

    a*(b+c)/d

    a) ab*+cd/

    b) ab+*cd/

    c) abc*+/d

    d) abc+*d/

    Answer: d

  4. Given only a single array of size 10 and no other memory is available. Which of the following operations is not feasible to implement (Given only push and pop operation)?

    A) Push

    B) Pop

    C) Enqueue (Ans)

    D) Returntop

  5. Given an array of size n, let’s assume an element is ‘touched’ if and only if some operation is performed on it (for example, for performing a pop operation the top element is ‘touched’). Now you need to perform Dequeue operation. Each element in the array is touched at least?

    A) Once

    B) Twice

    C) Thrice

    D) Four times (Ans)

  6. Which of the following is the most widely used external memory data structure?

    A) AVL tree

    B) B-tree (Ans)

    C) Red-black tree

    D) Both AVL tree and Red-black tree

  7. B-tree of order n is a order-n multiway tree in which each non-root node contains __________

    A) at most (n – 1)/2 keys

    B) exact (n – 1)/2 keys

    C) at least 2n keys

    D) at least (n – 1)/2 keys (Ans)

  8. A Double-ended queue supports operations such as adding and removing items from both the sides of the queue. You are given only stacks to implement this data structure. How many stacks are required to implement the operation?

    A) 1

    B) 2 (Ans)

    C) 3

    D) 4

  9. You are asked to perform a queue operation using a stack. Assume the size of the stack is some value ‘n’ and there are ‘m’ number of variables in this stack. What is the time complexity of performing the deQueue operation?

    A) O(m) (Ans)

    B) O(n)

    C) O(m*n)

    D) Data is insufficient

  10. Consider you have an array of some random size. You need to perform dequeue operation. You can perform it using stack operations (push and pop) or using queue operations itself (enQueue and Dequeue). The output is guaranteed to be the same. Find some differences:

    A) They will have different time complexities (Ans)

    B) The memory used will not be different

    C) There are chances that the output might be different

    D) No differences

  11. Consider you have a stack whose elements in it are as follows:

    5 4 3 2 << top

    Where the top element is 2. You need to get the following stack:

    6 5 4 3 2 << top

    The operations that need to be performed are (You can perform only push and pop):

    A) Push(pop()), push(6), push(pop()) (Ans)

    B) Push(pop()), push(6)

    C) Push(pop()), push(pop()), push(6)

    D) Push(6)

  12. What will be the output of the program in 16-bit platform (Turbo C under DOS)?

    #include
    int main()
    {
        printf(“%d, %d, %d”, sizeof(3.0f), sizeof(‘3’), sizeof(3.0));
        return 0;
    }
        

    A. 8, 1, 4

    B. 4, 2, 8

    C. 4, 2, 4

    D. 10, 3, 4

    Ans: B
  13. Point out the error in the program?

    #include
    int main()
    {
        struct emp
        {
            char name[20];
            float sal;
        };
        struct emp e[10];
        int i;
        for(i=0; i<=9; i++)
            scanf(“%s %f”, e[i].name, &e[i].sal);
        return 0;
    }
        

    A. Error: invalid structure member

    B. Error: Floating point formats not linked

    C. No error

    D. None of above

    Ans: B
  14. What will be the output of the program?

    #include
    int main()
    {
        enum days {MON=-1, TUE, WED=6, THU, FRI, SAT};
        printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI, SAT);
        return 0;
    }
        

    A. -1, 0, 1, 2, 3, 4

    B. -1, 2, 6, 3, 4, 5

    C. -1, 0, 6, 2, 3, 4

    D. -1, 0, 6, 7, 8, 9

    Ans: D
  15. What will be the output of the program?

    #include
    struct course
    {
        int courseno;
        char coursename[25];
    };
    int main()
    {
        struct course c[] = { {102, “Java”},
                              {103, “PHP”},
                              {104, “DotNet”} };
        printf(“%d”, c[1].courseno);
        printf(“%s\n”, (*(c+2)).coursename);
        return 0;
    }
        

    A. 103 Dotnet

    B. 102 Java

    C. 103 PHP

    D. 104 DotNet

    Ans: A




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2025 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy