WorksheetsTECH_IQ_HUNT ROUND
Total questions: 25
Worksheet time: 16mins
What will be the output of the following arithmetic expression?
5+3*2%10-8*6
-37
-42
-32
-28
Which keyword is used to prevent any changes in the variable within a C program?
immutable
mutable
const
volatile
What will be the output 1 of the following statement?
Printf(3+”goodbye”);
goodbye
odbye
bye
dbye
What will be the output of the following statements?
int i = 3;
printf(“%d”,i++);
(a)
What arithmetic operators cannot be used with strings in Python?
*
-
+
ALL OF THE ABOVE
What is #include <stdio.h>?
Preprocessor directive
Inclusion directive
File inclusion directive
None of the mentioned
Which of the following character is used to give single-line comments in Python?
(a)
Who is the father of C language?
Steve Jobs
James Gosling
Dennis Ritchie
Rasmus Lerdorf
All keywords in C are in (a)
Which of the following is used to define a block of code in Python language?
Indentation
Key
Brackets
All of the mentioned
Which is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
In Python,a function can return more than one value as Tuple.
TRUE
FALSE
Odd Man Out:
IronPython
Jython
PyPy
MacroPython
In which year was the Python 3.0 version developed?
2008
2000
2010
2005
Which of the following is not a keyword in Python language?
with
raise
try
val
Study the following function:
round(4.576)
(a)
Study the following statement:
>>>”a”+”bc”
What will be the output of this statement?
97 98 99
abc
294
error
Write theextension of the Python file?
(a)
Is Python code compiled or interpreted?
Python code is both compiled and interpreted
Python code is neither compiled nor interpreted
Python code is only compiled
Python code is only interpreted
We cannot use the keyword ‘break’ simply within ___.
while
for
if-else
do-while
We can achieve the modulus for float by:
x % y
modulus(x, y);
fmod(x, y);
mod(x, y);
What will be the output of the following Python expression if x=56.236?
print("%.2f ”,x)
(a)
What will be the output of the following Python function?
len(["hello",2, 4, 6])
Error
6
4
3
What will be the output of the following Python code?
print("abc. DEF".capitalize())
Abc. def
abc. def
Abc. Def
ABC. DEF
Comment on the following C statement.
n = 1;
printf("%d, %dn", 3*n, n++);
Output will be 3, 2
Output will be 3, 1
Output will be 6, 1
Output is compiler dependent
