namespace Spacel{
namespace Space2{
class MyClass{ }
}
}
The fully qualified name of class MyClass is:
A -
Space2.Space1.MyClass()
B -
Space1.Space2.MyClass()
C -
Space1.MyClass()
D -
Space2.MyClass()
2-
namespace College.Library{
namespace Shelf{
class Book{ }
}
}
The fully qualified name of class Book is:
A -
College.Library.Book()
B -
Library.Shelf.Book()
C -
Shelf.Book()
D -
College.library.Shelf.Book()
3-
namespace Spacel {
using System;
public class A{
public static void Main( ) {
A objiA=new A( ) ;
Type t1 = objA.GetType( );
Console.WriteLine("The type of objA is : {0} ", t1);
}
}
}
What will be the output of above code whrn compiled/run?
A -
The ouput of code will be: The type of objA is : Space1 .A
B -
The code will generate a compile time error as class reference is required for the GetType() method.
C -
The ouput of code will be: The type of objA is : System.Space1 .A
D -
The ouput of code will be: The type of objA is : class .A
4-
object objectValue = "Hello,";
char [ ] characterArray = { a, f, d, c, e, b };
StringBuilder buffer = new StringBuilder( );
buffer.Append(characTerArray);
buffer.Sort( );
buffer.Insert(0, objectValue);
What will be the fragment of a bove code assign to buffer variable?
A -
Hello, abcdef
B -
abcdefHello
C -
The code will generate an error
D -
None of the other answers
5-
Panel have the abbility to have scrollbars #
A -
True
B -
False
C -
Depend on setting theme form Operating System
D -
Depend on setting from Visual Studio.Net
6-
Private void DeleteItem(ListBox lst)
{
int i = 0;
string strItem;
string strName;
strName = "Long";
while (i < lst.Item.Count) {
strItem = lst.Items[i].ToString( );
is (strItem.Substring(strItem.LastIndexOf(" ")+1) .Equals( strName))
lst.Items.RemoveAt(i);
else
i++;
}
}
Purpose fragment of the code below?
A -
The code delete one items in Listbox if proper if(strItem.Substring (strItem.LastIndexOf(" ") + 1).Equals( strName))
B -
The code will generate an error at if (strItem.Substring (strItem.LastIndexOf(" ") +1).Equals( strName))
C -
The code delete all items in Listbox if proper if(strItem.Substring (strItem.LastIndexOf(" ") + 1).Equals( strName))
D -
The code will loop in while
7-
Properties can contain ____.
A -
get and set accessors
B -
a get accessor, a set accessor or both
C -
a get accessor
D -
a set accessor
8-
Select code to use OpenFileDialog. It choose from C:\ folder as default, with filetype is
*.XML, title is Open XML/UML File". After user choosing a file it will display the selected
filename?
A -
Object
B -
property
C -
Constructor
D -
Class
9-
Programs that translate high-level #
A -
process
B -
execute
C -
built
D -
compilers
10-
Statement I: The sealed modifiers are not permitted in an enum declaration.
Statement II: Delegate types are implicitly sealed