ExamVeda
Login
Home
31
How many types of input characters are accepted by this algorithm?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
32
Consider the postfix expression 4 5 6 a b 7 8 a c, where a, b, c are operators. Operator a has higher precedence over operators b and c. Operators b and c are right associative. Then, equivalent infix expression is
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
33
In infix to postfix conversion algorithm, the operators are associated from?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
34
Which of the following is an infix expression?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
35
Evaluate and write the result for the following postfix expression
abc*+de*f+g*+ where a=1, b=2, c=3, d=4, e=5, f=6, g=2.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
36
For the given expression tree, write the correct postfix expression.
Stacks in Data Structures mcq question image
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
37
In the given C snippet, find the statement number that has error.
//C code to push an element into a stack
void push( struct stack *s, int x) 
{
    if(s->top==MAX-1)
    {
        printf(“stack overflow”);
    }
    else
    {
        s->items[++s->top]=x;
        s++;
    }   
 }
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
38
Operations required for reversing a word or a string using stack are push() and pop().
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
39
In balancing parentheses algorithm, the string is read from?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
40
What will be the word obtained if the word "abbcabb" is reversed using a stack?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board