Search Header Logo

Smart Programmer Crew

Authored by Rohit Agarwal

Computers

Professional Development

Used 8+ times

Smart Programmer Crew
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

void main()

{

int k = 0;

for (k)

printf("Hello");

}

Compile time error

hello

Nothing

Varies

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the linked list implementation of a stack. Which of the following node is considered as Top of the stack?

 First node
Last node
Any node
Middle node

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Which of the following statement(s) about stack data structure is/are NOT correct?

Stack data structure can be implemented using linked list
New node can only be added at the top of the stack
Stack is the FIFO data structure
The last node at the bottom of the stack has a NULL link

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The type of expression in which operator succeeds its operands is?

Infix Expression
 pre fix Expression
postfix Expression
None

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

An expression contains relational, assignment and arithmetic operators. If parenthesis are not specified, the order of evaluation of the operators would be:

assignment, arithmetic, relational

relational, assignment, arithmetic

assignment, relational, arithmetic

arithmetic, relational, assignment

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Given two literals 0x001B and 033. What are these equal to?

21 and 23

27 and 33

33 and 33

27 and 27

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the outpur of the following code segment (assuming sizeof(int) returns 4)?


int i=0x1 << sizeof(int) * 8-1;

printf("\n%x", i);

i = i >> sizeof(int) * 8-1;

printf("%d", i);

0x8000000-1

80000000-1

-1 0x0000000

-1 0000000

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?