Company: Qualcomm_6thaug

Difficulty: medium

Problem Statement

Question 1

What will be the position of TOP when there is only one element in the stack?

Question 2

What will be the output of the program given below? (C code involving pointer arithmetic on int soft[5] = {12, 14, 15, 18, 20})

Question 3

Which mechanism prevents deadlock when multiple tasks require shared resources?

Question 4

Which of the given options is true about the singly linked list?

Question 5

What will be the output of the program given below? (C code involving char a=1, b=-1 and logical OR short-circuiting)

Question 6

What will be the output of the program given below? (C code involving add(int *p) with loop i > 5 and ad(char *s))

Question 7

How many addresses will a computer have if it uses 16 bits to specify the address in a RAM?

Question 8

What will be the output of the program given below? (Recursive bitwise function fun(5, 4))

Question 9

Consider an array 'T' as given below T: 76 23 09 78 91 28 36. What will be the array after three passes of bubble sort if T is sorted in ascending order?

More Qualcomm_6thaug OA questionsInterview experiences