aInfoEra
Home
MCQs
C — Quiz
48 questions · Test your knowledge
Home
/
MCQs
/
1
The compiled version of a VC#.NET program will be in_______________.
A
Machine code
B
IL code
C
Byte code
D
None of these
2
The purpose of JIT compiler is to convert____________.
A
VC#.NET source code IL code
B
IL code to byte code
C
IL code to managed native code
D
None of These
3
The Garbage Collection solves_____________.
A
Memory leakage problem
B
DLL hell problem
C
both (a) and (b)
D
None of These
4
The code that requires the CLR at runtime for the execution is known as the ________.
A
IL code
B
Managed code
C
Binary code
D
One of these
5
Which one of the following JIT compilers produce highly optimized code?
A
Econo JIT
B
Standard JIT
C
Pre JIT
D
None of these
6
The VC#.NET language________________.
A
Solves the memory leakage problems.
B
Solves the DLL hell problems.
C
Has very good correspondence with the IL language.
D
All of the above
7
Home page in VS.NET is also known as__________.
A
Default page
B
Start page
C
First page
D
Welcome page
8
The ______________ enables to move through the code very quickly.
A
Class view window
B
Solution explorer window
C
Code window
D
None of These
9
In VC#.NET project files are grouped into a _____________.
A
Workspace
B
Namespace
C
Solution
D
Package
10
Which one of the following statements about code debugging is correct?
A
Debugger helps us to step through our code, one line at a time.
B
Breakpoints can be set by pressing F9 function key.
C
Breakpoints can be set by left-clicking in the left margin area at the line where we want to set the breakpoint.
D
a, b and c are correct.
11
The arrays involved in a jagged array__________
A
Should be of same size.
B
May be of different sizes
C
Are not known as subarrays.
D
None of these
12
The parameters of a method __________.
A
Help us to pass information to a method.
B
Help us to get information from a method.
C
Help us to pass information to and from a method.
D
None of these
13
The ref type parameters are____________.
A
Input only†parameters.
B
Input / Output†parameters.
C
Output only†parameters.
D
None of these
14
The out type parameters can be used_______________.
A
Only to pass back a result to the calling functions.
B
Only to send information to the called function.
C
To pass data to the called method and receive information from the called method.
D
None of these
15
In case of the Params type parameter____________.
A
Only output can be sent.
B
The number of arguments is variable.
C
Both input and output can be handled.
D
None of these
16
An instance class member is referred by using the format____________.
A
Object name. Class member name.
B
Class name. Class member name.
C
Object name. Class member name or class name. class member name.
D
None of these
17
Overloaded constructors will have________.
A
Different names
B
Different parameter lists
C
Different return types
D
none of these.
18
A static constructor_____________
A
Is executed when the class is loaded.
B
Can be accessed through an object name.
C
Can be executed any number of times.
D
Can have its own destructor.
19
A property_____________
A
Should have a get method.
B
Should have a put method.
C
Should have both get and put methods.
D
Should have either a get method or put method.
20
An indexer________________.
A
Enables us to access a property through index.
B
Can have user-defined name.
C
Is identified by its name.
D
Cannot be overloaded.
21
A namespace can contain___________.
A
Classes
B
Namespaces
C
Classes and namespaces
D
None of these
22
The alias should have
A
Improve the readability of the code.
B
Avoid name clashes.
C
Saves you typing out very long strings.
D
All the above.
23
In the case of a component,
A
Reusability is possible.
B
Code will be in IL format.
C
The extension is dll.
D
All of the above
24
In the case of access modifiers___________.
A
Private and protected access modifiers can be specified for a class.
B
Public access modifier can be specified for a class.
C
The scope of the internal access modifier is the namespace.
D
None of these
25
The size of integer is___________.
A
8 bits
B
16 bits
C
32 bits
D
64 bits
26
An instance of a value type variable is allocated memory on_______.
A
Stack
B
Heap
C
Both a&b
D
None of these
27
An instance of a reference type variable is allocated memory on_______.
A
Stack
B
Heap
C
Both a&b
D
None of these
28
________________ access modifier is applied to a method or a data member, it can beaccessed by all classes in the same namespace and derived class in other namespace.
A
Public
B
Protected
C
Internal
D
Protected internal
29
The first type of streams is specially used to represent _________
A
Binary data
B
text
C
data
D
derived
30
The second type of streams is used to represent __________
A
Data
B
text
C
binary data
D
derived
31
All IO classes that represent streams are derived from the ______ class.
A
Data
B
Stream
C
another
D
none
32
The stream class has been designed to provide functional features for ________ and__________.
A
Creating, manipulating
B
displaying, manipulating
C
Creating, displaying
D
printing, creating
33
The file steam class is designed specifically for reading and writing_______________ files.
A
Class files
B
binary data
C
program
D
none
34
A buffer is a block of bytes in memory used to ___________
A
Class data
B
binary data
C
cache data
D
data
35
The Buffered Stream class is a ________ of the Stream class.
A
Base class
B
binary class
C
Derived class
D
class
36
The text files are helpful in __________ and ____________ textual data.
A
Storing, displaying
B
storing, retrieving
C
Retrieving, displaying
D
displaying, retrieving
37
A machine on a network is called ________
A
Node
B
data
C
address
D
store
38
The node is also called as ______________
A
Data
B
class
C
host
D
cache
39
The various possible values of dock property are_________
A
TOP, Left
B
Fill, right
C
Side, upright
D
Both (a) and (B)
40
The ADO.NET provides greater case of ___________
A
Programming
B
higher dependency
C
Improve data source
D
Both (a) and (b)
41
Only ___________ amount of processing time is needed for data conversion.
A
Large
B
small
C
none
D
allocated time
42
A Managed provider can be considered as a set of objects that mediate between a_____________ and ___________
A
Data source
B
VB.NET program
C
data
D
both (a) and (b)
43
The main ASP.NET page class is derived from the ____________ class
A
Page
B
base
C
derived
D
main
44
We can attach _________ validation control to an input control
A
One
B
less than one
C
more than one
D
almost one
45
The validation control has ____________ control.
A
Up level
B
down level
C
both
D
bottom level
46
The up level browser will perform validation on the client, using the _________ and____________
A
HTML, ASP
B
DHTML, java script
C
Both (a) and (b)
D
none
47
For client-side custom validation, the name of the custom function must be identified in the______________ function property
A
Client Validation
B
on client validation
C
On server validation
D
server validation
48
For server-side custom validation, the name of the custom function must be identified in the______________ function property
A
Client Validation
B
on client validation
C
On server validation
D
server validation
Submit Quiz
Back to All Quizzes