Online Quiz on Programming Skills
Which is
a reserved word in the Java programming language?
Method
Native
Subclasses
Reference
Answer : Native
What is
the name of the method used to start a thread execution?
init();
start();
run();
resume();
Answer : start();
Which of
the following would compile without error?
int a =
Math.abs(-5);
int b =
Math.abs(5.0);
int c =
Math.abs(5.5F);
int d =
Math.abs(5L);
Answer : int
a = Math.abs(-5);
Which
class does not override the equals() and hashCode() methods, inheriting them
directly from class Object?
java.lang.String
java.lang.Double
java.lang.StringBuffer
java.lang.Character
Answer : java.lang.StringBuffer
Which
interface does java.util.Hashtableimplement?
Java.util.Map
Java.util.List
Java.util.HashTable
Java.util.Collection
Answer : Java.util.Map
________
specifier indicates that no value is available.
Array
Pointer
Void
Union
Answer : Void
In
Bitwise operator,Assume A=60 and B=13 in binary format, then A&B=?
A) 0011
1101
B) 0000
1100
C) 0011
0001
D) 1100
0011
Answer : B)
0000 1100
What
will be the output of the following C code? #include <stdio.h> void
main() { int x = 5; if (true); printf("hello"); }
It will
display hello
It will
throw an error
Nothing
will be displayed
Compiler
dependent
Answer : It
will throw an error
Which
one of the following is not a storage classes?
Literal
Auto
Static
Extern
Answer : Literal
A
_______ is a name used to identify a variable, function, or user defined
item.
Keyword
Identifier
Tokens
Constant
Answer : Identifier
For
16-bit compiler allowable range for integer constants is ________
-3.4e38
to 3.4e38
-32767
to 32768
-32668
to 32667
-32768
to 32767
Answer : -32768
to 32767
The
function used to free the memory allocated by calloc()
dealloc();
malloc(variable_name,
0)
free();
memalloc(variable_name,
0)
Answer : free();
In c++
_____ is a process in which one class defines another class as any entity
reference
Inheritence
Aggregation
Polymorphism
Overloading
Answer : Aggregation
Which of
the following concepts means determining at runtime what method to
invoke?
Data
hiding
Dynamic
Typing
Dynamic
binding
Dynamic
loading
Answer
: Dynamic binding
The
Abstract class defines
A class
with abstract keyword
A class
with no functions in it
A class
with atleast one pure virtual function
Empty
Class
Answer : A
class with atleast one pure virtual function
Which of
the following is not an implicit object ?
request
date
out
pagecontext
Answer : date
Which of
the following is the attribute that is used to set a global identifier for a
microdata item?
key
id
itemclass
itemid
Answer : itemid
Which
attribute is used to provide an advisory text about an element or its
contents?
Tooltip
dir
Title
Head
Answer : Title
The
__________ attribute sets the text direction as related to the lang
attribute.
lang
sub
dir
ds
Answer : dir
Which of
the following is the attribute that specifies the column name from the data
source object that supplies the bound data?
dataFormatAs
datafld
disabled
datasrc
Answer : datafld
The
_____________ attribute specifies an inline style associated with an element,
which determines the rendering of the affected element.
dir
style
class
article
Answer : style
The CLR
is physically represented by an assembly named _______
mscoree.dll
mcoree.dll
msoree.dll
mscor.dll
Answer : mscoree.dll
CLR is
the .NET equivalent of _________.
Java
Virtual Machine
Common
Language Runtime
Common
Type System
Common
Language Specification
Answer : Java
Virtual Machine
The ____
language allows more than one method in a single class
C#
J#
C++
C
Answer : C#
In C#, a
subroutine is called a ____
Function
Metadata
Method
Managed
code
Answer : Method
No comments:
Post a Comment
if you have any doubt please let me know