Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Tech Intellect Final Round

Total questions: 30

Worksheet time: 2hrs 30mins

Name
Class
Date
1.

In C programming language, which of the following type of operators have the highest precedence

a)

Relational Operators

b)

Equality Operators

c)

Logical Operators

d)

Arithmetic Operators

2.
a)

200 27500

b)

110 25500

c)

100 25700

d)

150 2000

3.

For 'C' programming language

a)

Constant expressions are evaluated at compile time

b)

String constants can be concatenated at compile time

c)

Size of array should be known at compile time

d)

All of these

4.

Integer division in a 'C' program results in:

a)

Truncation

b)

Rounding

c)

Underflow

d)

None of these

5.

int i = 5; is a statement in a C program.

a)

during execution, value of 'i' may change but not its address

b)

during execution both the address and value may change

c)

repeated execution may result in different addresses for 'i'

d)

'i' may not have an associated address

6.

In a 'C'expression involving || operator, evaluation

a)

Will be stopped if one of its components evaluates to false

b)

Will be stopped if one of its components evaluates to true

c)

Takes place from right to left

d)

None of these

7.

If i j,k are integer variable with values 1,2,3 respectively, then what is the value of the expression !((j + k) > (i + 5))

a)

6

b)

5

c)

1

d)

0

8.

Which of the following operators takes only integer operands ?

a)

+

b)

/

c)

%

d)

*

9.

The declaration "unsigned u" indicates u is a/an

a)

unsigned character

b)

unsigned integer

c)

character

d)

none of these

10.

Which of the following 'C' type is not a primitive data type?

a)

int

b)

float

c)

char

d)

none of these

11.

In C programming language, if the first and the second operands of operator + are of types int and float, respectively, the result will be of type

a)

int

b)

float

c)

char

d)

long int

12.

Choose the correct statements

a)

an identifier may start with an underscore

b)

an identifier may end with an underscore

c)

IF is a valid identifier

d)

All of the above

13.

When a variable of data type double is converted into float, then

a)

Rounding takes place

b)

Truncation takes place

c)

The lower order bits are dropped

d)

None of these

14.

For loop in a C program, if the condition is missing

a)

it is assumed to be present and taken to be false

b)

it is assumed to be present and taken to the true

c)

it result in a syntax error

d)

execution will be terminated abruptly

15.

Which of the following statement about for loop is true?

a)

Index value is retained outside the loop

b)

Index value can be changed from within the loop

c)

goto can be used to jump, out of the loop

d)

All of these

16.
a)

60

b)

59

c)

61

d)

None of these

17.

Which is true of conditional compilation?

a)

it is taken care of by the compiler

b)

it is taken care of by the pre-processor

c)

it is compiling a program based on a condition

d)

both (b) & (c)

18.

Choose the statements that are syntactically correct

a)

/* Is /* this a valid */ comment */

b)

for ( ; ; ) ;

c)

return;

d)

both (b) & (c)

19.

The following program fragment

for (i = 1; i< 5; ++ i )

if ( i == 3) continue;

else printf( " %d " i );

results in the printing of

a)

1 2 4 5

b)

1 2 4

c)

2 4 5

d)

None of the above

20.

The following program fragment

if (a = 0) printf ("a is zero");

else printf ("a is not zero");

results in the printing of

a)

a is zero

b)

a is not zero

c)

nothing

d)

garbage

21.

The following program fragment

if ( a = 7 )

printf (" a is seven ");

else

printf (" a is not seven ");

results in the printing of

a)

a is seven

b)

a is not seven

c)

nothing

d)

garbage

22.

The following Program

main()

{

int i = 5;

if (i == 5) return;

else printf (" is not five");

printf("over");

}

results in

a)

a syntax error

b)

an execution error

c)

printing of over

d)

execution termination, without printing anything

23.

The following statement

if (a > b)

if (c > b)

printf("one");

else

if (c == a) printf('two');

else printf("three");

else printf("four");

a)

results in a syntax error

b)

prints four in c <= b

c)

prints two if c <= h

d)

prints four in a <= b

24.

Using goto inside for loop is equivalent to using

a)

continue

b)

break

c)

return

d)

none of the above

25.

Consider the following program fragment

d = 0;

for(i = 1; i < 31; ++i)

for(j = 1; j < 31; ++j)

for(k = 1; k < 31; ++k)

if(((i + j + k) % 3) == 0)

d = d + 1;

printf("%d", d );

The output will be

a)

9030

b)

27000

c)

3000

d)

none of the above

26.

Consider the program fragment

j = 2;

while ((i % j) ! = 0)

j = j + 1;

if (j < i) printf ("%d", j);

If i >= 2, then the value of j, will be printed only if

a)

i is prime

b)

j does not divide i

c)

j is odd

d)

i is not prime

27.

Which is valid C expression?

a)

int my_num = 100,000;

b)

int my_num = 100000;

c)

int my num = 1000;

d)

int $my_num = 10000;

28.
a)

It will cause a compile time error

b)

It will cause a run time error

c)

It will run without any error and prints 3

d)

It will experience infinite looping

29.

In mathematics and computer programming, which is the correct order of mathematical operators?

a)

Addition, Subtraction, Multiplication, Division

b)

Division, Multiplication, Addition, Subtraction

c)

Multiplication, Addition, Division, Subtraction

d)

Addition, Division, Modulus, Subtraction

30.

Which of the following cannot be checked in a switch-case statement?

a)

Character

b)

Integer

c)

Float

d)

enum