NEW
Font size
WorksheetsRound 1
Total questions: 15
Worksheet time: 5mins
Which keyword is used for function in Python language?
def
definition
function
func
What is #include<>?
preprocessor directive
inclusion directive
file inclusion directive
None of the mentioned
Which of the following is the correct extension of the Python file?
.python
.py
.pl
.p
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 is only interpreted
What is a static method in Java?
A method that can be call on an instance of a class
A method that cannot be overridden by subclasses
A method that belongs to the class rather than to any specific instance
A method that is defined inside another method
What will be the value of the following Python expression?
4+3%5
2
0
8
7
What is the numerical range of a char data type in java?
0 to 256
0 to 65535
0 to 32767
-128 to 127
Which of the following cannot be checked in a switch-case statement?
Character
Integer
Float
enum
what would be the equivalent pointer expression for referring the array element
a[i][j][k][l]
((((a+i)+j)+k)+l)
(((a+i)+j)+k+l)
*(*(*(*(a+i)+j)+k)+l)
((a+i)+j+k+l)
In the above code snippet, what is "x"?
character pointer
Pointer to function
pointer to char pointer
pointer to char
Extern keyword is used to declare a variable without defining it that is no memory is allocated. Where extern keyword is used?
In library files
In static function
In function
In Global variable
What does the '->' operator do in C?
It is used to access elements of array
It is used to access elements of a structure through a pointer
It is used to perform bitwise operations.
It is used to declare a pointer
“Stderr” is a standard error.
Yes
Standard error stream
Standard error function
Standard error function
Choose the function that is most appropriate for reading in a multi-word string?
strnset()
scanf()
strchr()
gets()
What is the special symbol permitted with in the Identifier name?
$
(dollar symbol)
@
(at symbol)
_
(underscore symbol)
.
(dot)
