C#.NET
Test
Model Test
Ebook
Test on C#.Net framwork 4 Sep 30
CSharp Model Test 1
CSharp Model Test Three
Index
C#.NET Home
Datatype
59
Basic
28
Methods
5
Arrays
3
Object-Oriented Programming
11
Operators
53
Control Structure
18
Schools
Ebook
Question:
Which of the following is not an identifier in C#?
A
void
B
x
C
getName
D
vcampus
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following are C# keywords?
A
unchecked
B
function
C
lock
D
readonly
E
construct
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following are legal identifiers in C#?
A
in
B
var
C
on
D
@class
E
none
Note:
Not available
Show answer
Show Note
Report
Question:
You can add comments in C# source code as:
A
# Your comment
B
// Your comment
C
/* Your comment */
D
/* Your comment
E
<!-- Your comment -->
Note:
Not available
Show answer
Show Note
Report
Question:
Which is not value type in C#?
A
String
B
DateTime
C
Struct
D
None
Note:
Not available
Show answer
Show Note
Report
Question:
Which is the constructor in the following class?
public class UnitConverter{ int ratio; public int Convert(){} public UnitConverter(){} }
A
ratio
B
Convert()
C
UnitConverter()
D
none
E
Convert and UnitConverter
Note:
Not available
Show answer
Show Note
Report
Question:
How do you call static member function getCustomers() from the class Customer?
A
Customer.getCustomers();
B
Customer obj=new Customer(); obj.getCustomers();
C
obj=new Customer(); obj.getCustomers();
D
getCustomers()
E
var obj=new Customer(); obj.getCustomers();
Note:
Not available
Show answer
Show Note
Report
Question:
Which are reference types in C#?
A
String
B
DateTime
C
enum
D
Class
E
Struct
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following group is the correct suffixes for numeric literals?
A
float - f, long - l, uint - u, ulong - ul, double - d, decimal - m
B
float - f, long - l, uint - u, ulong - ul, double - f, decimal - f
C
float - f, long - l, uint - u, ulong - ul, double - f, decimal - m
D
float - f, long - l, uint - u, ulong - l, double - d, decimal - m
E
float - d, long - l, uint - u, ulong - ul, double - d, decimal - m
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is the correct way for numeric conversion in C#?
A
float y=343.45f; int x=(float)y;
B
float y=343.45f; int x=float y;
C
float y=343.45f; int x={float}y;
D
float y=343.45f; int x=[float]y;
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
2
3
4
Next
Last
/18
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd