wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

TECH_IQ_HUNT ROUND

Total questions: 25

Worksheet time: 16mins

Name
Class
Date
1.

What will be the output of the following arithmetic expression?

5+3*2%10-8*6

a)

-37

b)

-42

c)

-32

d)

-28

2.

Which keyword is used to prevent any changes in the variable within a C program?

a)

immutable

b)

mutable

c)

const

d)

volatile

3.

What will be the output 1 of the following statement?

Printf(3+”goodbye”);

a)

goodbye

b)

odbye

c)

bye

d)

dbye

4.

What will be the output of the following statements?

int i = 3;

printf(“%d”,i++);

(a)  

5.

What arithmetic operators cannot be used with strings in Python?

a)

*

b)

-

c)

+

d)

ALL OF THE ABOVE

6.

What is #include <stdio.h>?

a)

Preprocessor directive

b)

Inclusion directive

c)

File inclusion directive

d)

None of the mentioned

7.

Which of the following character is used to give single-line comments in Python?

(a)  

8.

Who is the father of C language?

a)

Steve Jobs

b)

James Gosling

c)

Dennis Ritchie

d)

Rasmus Lerdorf

9.

All keywords in C are in (a)  

10.

Which of the following is used to define a block of code in Python language?

a)

Indentation

b)

Key

c)

Brackets

d)

All of the mentioned

11.

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;

12.

In Python,a function can return more than one value as Tuple.

a)

TRUE

b)

FALSE

13.

Odd Man Out:

a)

IronPython

b)

Jython

c)

PyPy

d)

MacroPython

14.

In which year was the Python 3.0 version developed?

a)

2008

b)

2000

c)

2010

d)

2005

15.

Which of the following is not a keyword in Python language?

a)

with

b)

raise

c)

try

d)

val

16.

Study the following function:

round(4.576)

(a)  

17.

Study the following statement:

>>>”a”+”bc”

What will be the output of this statement?

a)

97 98 99

b)

abc

c)

294

d)

error

18.

Write theextension of the Python file?

(a)  

19.

Is Python code compiled or interpreted?

a)

Python code is both compiled and interpreted

b)

Python code is neither compiled nor interpreted

c)

Python code is only compiled

d)

Python code is only interpreted

20.

We cannot use the keyword ‘break’ simply within ___.

a)

while

b)

for

c)

if-else

d)

do-while

21.

We can achieve the modulus for float by:

a)

x % y

b)

modulus(x, y);

c)

fmod(x, y);

d)

mod(x, y);

22.

What will be the output of the following Python expression if x=56.236?

print("%.2f ”,x)

(a)  

23.

What will be the output of the following Python function?

len(["hello",2, 4, 6])

a)

Error

b)

6

c)

4

d)

3

24.

What will be the output of the following Python code?

print("abc. DEF".capitalize())

a)

Abc. def

b)

abc. def

c)

Abc. Def

d)

ABC. DEF

25.

Comment on the following C statement.

n = 1;

printf("%d, %dn", 3*n, n++);

a)

Output will be 3, 2

b)

Output will be 3, 1

c)

Output will be 6, 1

d)

Output is compiler dependent