Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
C#
>>
Test 2
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Test 2
1 . A struct is a _____________
A.
a reference type
B.
value type
2 . An int in C# is _______________
A.
16 bit unsigned integer
B.
32 bit signed integer
C.
64 bit integer
3 . A char in C# is ___________
A.
32 bit
B.
16 bit
C.
8 bit
4 . String is an ____________
A.
reference type
B.
object type
5 . Which of the following are predefined reference types in C#?
A.
string
B.
object
C.
int
6 . All types in C# implicitly derive from _____________
A.
System class
B.
System.Object class
C.
System.CSharp class
7 . What is managed code?
A.
Code written in VB.NET
B.
Code which can't be managed by the IL
C.
Code managed ouside the IL
D.
Code to be compiled by IL
8 . What is similar in concept to IL?
A.
Machine Language
B.
C++ Libraries
C.
Java Byte Code
9 . What is JIT?
A.
Just in Time
B.
Java Internal Translator
C.
Just in Translation
10 . Does C# support multiple inheritance?
A.
No
B.
Yes
11 . Which of these .NET languages has been specefically designed to be used with .NET?
A.
Visual C++ .NET
B.
C#
C.
VB.NET
12 . Which of the following are the features of .NET
A.
Garbage Collection
B.
Language Interoperability
C.
Multiple Inheritance
13 . The methods which can be called without instantiating an object first are called ____________
A.
primary
B.
dynamic
C.
static
14 . All .NET code have to be CLS compliant.
A.
True
B.
False
15 . Which of the following is an exclusive feature of C#?
A.
XML documentation
B.
IL
C.
Object Oriented
16 . Which of the following is used to denote comments in C#?
A.
//
B.
/* */
C.
///
17 . What is an assembly?
A.
A collection of C# compilers
B.
A logical unit containing complited code
C.
.NET debugger
18 . An assembly can be stored across multiple files?
A.
Yes
B.
No
19 . Attributes are ______________
A.
Used to provide extra information for the compiler
B.
Return types
C.
data types
20 . Is the 'finally' keyword is supported in C#?
A.
Yes
B.
No
21 . Can you derive your own classes from the base class Library?
A.
True
B.
False
22 . Which tool is used to browse the classes, structs, interfaces etc. in the BCL?
A.
WinCV
B.
bcl.exe
C.
csc.exe
23 . Which method will you call to start a Thread?
A.
Begin()
B.
Start()
C.
Jump()
24 . System is a ______________
A.
Program
B.
Namespace
C.
Class
25 . IF a namespace isn't supplied, which namespace does a class belong to?
A.
System
B.
A nameless global namespace
C.
Windows
26 . The base class Arrray belongs to the ______________________ namespace
A.
System
B.
Arrays
C.
GlobalType
27 . Namespaces are used to __________________
A.
Create a unique name for an assembly
B.
Avoid name clashes between data types
C.
Separate assemblies
28 . There can me more than 1 Main() functions in a C# program
A.
No
B.
Yes
29 . Which C# collection allows accessing an element using a unique key?
A.
Dict
B.
KeySort
C.
HashTable
30 . Even if an exception hasn't occurred, the 'finally' block will get executed.
A.
Yes
B.
No
Test Name :
Test 2
Category :
C#
Number of Question :
30
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007