Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
C#
>>
Test 3
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Test 3
1 . What is CTS?
A.
Common Translation system
B.
Csharp Type System
C.
Common Type System
D.
Constants Translation Specification
2 . What is CLS?
A.
Common Language Specification
B.
Common Library System
C.
Csharp Language Specification
D.
Code Location Specification
3 . What is CLR?
A.
Common Library Reorganization
B.
Csharp Language Respecification
C.
Csharp Library Roster
D.
Common Language Runtime
4 . What is IL?
A.
Interchangeable Library
B.
Interoperable Languages
C.
Intermediate Language
D.
Interchangeable languages
5 . Which is the first level of compilation in the .NET languages?
A.
CLR
B.
IL
C.
Platform-specific code
6 . IL code compiles to _________________________
A.
Platform-specific Executable code
B.
Byte Code
C.
.NET Code
7 . All the .NET languages have the following in common
A.
Base Class Library
B.
Keywords
C.
Syntax
8 . Can ASP.NET web pages can be programmed in C#?
A.
Yes
B.
No
9 . From command line, a C# program can be compiled using ___________________
A.
compilescs.exe
B.
csharp.exe
C.
csc.exe
10 . Which of the following can you create using C#?
A.
ASP.NET Web pages
B.
Stand alone GUI (Windows Forms) applications
C.
Class libraries
D.
Command Line applications
11 . The C# code files have __________________ as extension.
A.
.csharp
B.
#
C.
.cs
12 . Every statement in C# must end with __________
A.
#
B.
,
C.
;
13 . There must be at least one function in a C# program. Which of the following functions is most essential.
A.
Enter()
B.
Main()
C.
main()
14 . To write a line of text to the console window, we make the following call
A.
console.writeline()
B.
Console.WriteLine()
C.
System.Output()
15 . All the C# programs must have the following statement
A.
include System
B.
using System
C.
using DotNet
16 . Which of the following is a correct call to the Main() function
A.
static Main(void)
B.
static void Main()
C.
Main()
17 . To read user input from the console, the following statement is used
A.
System.GetuserRequest();
B.
Console.Input()
C.
Console.ReadLine();
18 . A code block in C# is enclosed between _____________
A.
{ }
B.
[ ]
C.
< >
19 . We declare an integer variable 'x' in C# as _____________
A.
int x;
B.
integer x;
C.
x integer;
20 . All the variables local to a method in C# must be initialized before they can be used.
A.
True
B.
False
21 . The field variables in a class or a struct in C# are by default given a value of zero
A.
True
B.
False
22 . Which of the following is the correct way to instantiate an object in C#:
A.
objThis = new ThisObject();
B.
objThis = System.CreateObject( ThisObject);
23 . A local C# variable declared in the for loop is in scope within __________
A.
The method which includes the for loop
B.
Body of the for loop
C.
Class
24 . bool data type in C# is
A.
a reference type
B.
a value type
25 . A class type in C# is a value type.
A.
Yes
B.
No
Test Name :
Test 3
Category :
C#
Number of Question :
25
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007