Font size
WorksheetsMIND SWEEPER
Total questions: 50
Worksheet time: 25mins
Is Bitwise & and | are unary operators
True
False
Which bitwise operator is suitable for turning off a particular bit in a number?
&& operator
& operator
|| operator
! operator
If the two strings are identical, then strcmp() function returns
-1
1
0
Yes
How will you free the allocated memory ?
free(var-name);
remove(var-name);
delete(var-name);
dalloc(var-name);
You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
Protected
Public
Private
Transistent
We can add a row using SQL in a database with which of the following?
ADD
Make
create
Add
insert
If the array is already sorted, then the running time for merge sort is
O(1)
O(n*log n)
O(n)
O(n^2)
The command to remove a table 'CUSTOMER' in database
remove
delete
drop
remove
for an algorithm time complexity is given by O(1) then complexityof it is:
constant
All options will use
exponential
polynomial
Which one of the following is not a valid state of a thread?
block
Destroying
Running
ready
Which of the following type of class allows only one object of it to be created?
Virtual class
Abstract class
Friend class
Singleton class
Total bits used by the IPv6 address is (a)
Why is a firewall used in a computer?
Authentication
security
Monitoring
data transmission
Among the following which is not a database management software
Sybase
COBOL
Oracle
Mysql
The total view of a database is known as
physical view
Conceptual view
internal view
External view
What terms is Computer memory measured (a)
The complexity of merge sort algorithm is
O(n log n)
O(n2)
O(n)
O(log n)
Which of the following is not an operating system?
Dos
oracle
Windows
Unix
#include <stdio.h>
int main()
{
int i = 1024;
for ( ; I ; i >>= 1)
printf("codemaker");
return 0;
}
How many times will "codemaker" be printed in the above program?
(a)
Automatic type conversion is possible in which of the possible cases?
Int to long
Byte to int
long to int
short to int
Select the valid statement from the following ?
char[] ch = new char(5)
char[] ch = new char()
char[] ch = new char[5]
char[] ch = new char[]
When an array is passed to a method, what does the method receive?
reference of the array
copy of the array
length of the array
copy of first element
If the number of records to be sorted is small, then …… sorting can be efficient.
(a)
Arrays in java are
Objects
primitive data type
none
object references
What is the size of float and double in java?
32 and 32
64 and 32
64 and 64
32 and 64
The complexity of Fibonacci series is ?
O(log n)
O(2n)
O(n log n)
O(n2)
Who developed Python Programming Language?
Rasmus Lerdorf
Niene Stom
Wick van Rossum
Guido van Rossum
Which type of Programming does Python support?
structured programming
Object oriented programming
All the options
functional programming
Is Python case sensitive when dealing with identifiers?
none of the mentioned
no
yes
machine dependent
Is Python code compiled or interpreted?
python code is interpreted
python code is neither compiled nor interpreted
Python code is both compiled and interpreted
python code is compiled
All keywords in Python are in ?
lower case
none of the mentioned
capitalized
upper case
Extension for an HTML document?
(a)
Which of the following character is used to give single-line comments in Python?
#
//
/*
!
Output for following snippet is:
int main()
{
int a=12,b=39;
printf ("%d",a&b);
return 0;}
None
468
4
0
It is possible to pass a structure variable to a function either by value or by address ?
True
False
Which type of language is savepoint and what it does?
DML and it saves the changes
TCL and its save a transaction so that you can rollback to that point whenever required.
DDL and its save the schema
TCL and it sets a savepoint within a transaction
Floor division operator is represented by (a)
Worst case occur in linear search algorithm when
Item is somewhere in the middle of the array
Item is the last element in the array or is not there at all
Item is the last element of the array
Item is not in the array at all
Which of the following functions is a built-in function in python?
print()
fact()
seed()
prime()
Which of the following statements is used to create an empty set in Python?
[]
set()
()
{}
Extension of the Python file
(a)
How many bits make a byte?
(a)
Which of the following case does not exist in complexity theory?
best case
worst case
average case
null case
output for following snippet:
int main()
{
int x;
for(x=1;x <=10;x++)
printf("%d",x);
return 0;
}
1 2 3 4 5 6 7 8 9 10
None of the above
10
11
The complexity of linear search algorithm is
O(n2)
O(log n)
O(n log n)
O(n)
The output of an AND gate with three inputs, A, B, and C, is HIGH when
A=1, B=1, C=0
A=1, B=1, C=1
A=1, B=0, C=1
A=0, B=0, C=0
What is the infix version of the following postfix expression?
x 12 + z 17 y + 42 * / +
x + 12 + z / 17 + y * 42
x + 12 + z / ((17 + y) * 42)
(x + 12 + z) / (17 + y * 42)
None of the options
What is the frequency range of the IEEE 802.11a standard?
A.2.4Gbps
5Gbps
2.4GHz
5GHz
output for the following snippet
While(“%d”, printf(“abc”))
{
Printf(“de”);
}
abcde
abcabc.....
abcdeabcdeabcde
dedededede...
The default parameter passing mechanism is called as
None
function call
call by reference
call by value
