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