Syed Sadiq Ali
Discover What's Possible
Pages
C#
.Net Basics
SQL
JavaScript
AngularJS
Online Test
Popular Posts
Learn .Net Easily
Angular 1 vs Angular 2
AngularJS Test
Sunday, 20 November 2016
C# Test
C# Test
C# class can inherit multiple ________
Class
Interface
Abstract class
Static class
Which of the followings are value types in C#?
int
double
decimal
All of the abovve
10 > 9 ? “10 is greater than 9” : “9 is greater than 10” is an example of _______
Ternary operator
Conditional operator
Greater than operator
Inverse operator
What is indexer?
It allows an instance of a class to be indexed like an array
It allows enumerator with class
It creates index for instances of a class.
None of the above.
String data type is ______.
Mutable
Immutable
Static
Value type
An array in C# starts with _____ index.
0
1
-1
None of the above
Which of the following is right way of declaring an array?
Int[] intArray = new int[];
Int intArray[] = new int[5];
Int[] intArray = new int[5];
Int[] intArray = new int[]{1, 2, 3, 4, 5};
Which of the following statement is true?
try block must be followed by catch and finally block both.
try block must be followed by catch or finally block or both.
try block cannot include another try block.
All of the above.
Data type of a variable declared using var will be assigned at
Runtime
Compile time
CLR time
Application Initialization time.
A partial class allows ________
mplementation of single class in multiple .cs files.
Declaration of multiple classes in a single .cs file.
Implementation of multiple interfaces to single class.
. Multiple class inheritance.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment