0% found this document useful (0 votes)
62 views6 pages

Knowledge Check 1

This document contains 18 multiple choice questions that assess knowledge of .NET fundamentals, including questions about classes, assemblies, data types, debugging, and Visual Studio features. It provides the questions, possible answers for each, and notes that the knowledge check is worth a total of 100 points with each question worth 5.55 points.

Uploaded by

Fatima Pereira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views6 pages

Knowledge Check 1

This document contains 18 multiple choice questions that assess knowledge of .NET fundamentals, including questions about classes, assemblies, data types, debugging, and Visual Studio features. It provides the questions, possible answers for each, and notes that the knowledge check is worth a total of 100 points with each question worth 5.55 points.

Uploaded by

Fatima Pereira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Application Delivery Fundamentals (ADF): MS .

NET Knowledge Check 1 Solutions

Knowledge Check 1 Solutions

Note: When grading, each question is worth 5.55 points for a total of 100.

1) The ______________is a comprehensive, object-oriented collection of reusable


types.

a. Class Library
b. Console Application
c. None of the Above

2) In the .NET Framework, where is the version information of an assembly stored?

a. Version Controller
b. Manifest
c. Visual Source Safe
d. Common Type System

3) What tool is used to manage the assemblies in the Global Assembly Cache?

a. gacutil.exe
b. gassy.exe
c. gacmgr.exe
d. al.exe

4) Which of the following languages is not a managed code in the .NET Framework?

a. C#
b. VC++
c. C
d. VJ#
e. VB
f. None of the above

5) Which of the following does an assembly contain?

a. Manifest, Type metadata, Resources, MSIL code


b. Manifest, Type metadata
c. Manifest, Type metadata, Resources
d. Manifest

6) What are the different types of comments that can be implemented in C#.NET?

a. Single-line comment, multi-line comment, documentation comment


b. Single-line comment, multi-line comment

Course Code # Z83272/Z61156 Page 1 of 6


© Accenture 2011 All Rights Reserved
Application Delivery Fundamentals (ADF): MS .NET Knowledge Check 1 Solutions

c. Multi-line comment, documentation comment


d. None of the above

7) Identify the contextual keywords for the options below.

a. From, ascending, where, select


b. DoWhile, while, for
c. Switch, goto
d. public, private

8) Which of the following statements about boxing is true?

a. It is a datatype conversion technique that is used to convert a value type


to an object type or a reference type.
b. It is a datatype conversion technique that is used to convert a reference type
to a value type.
c. It is a datatype conversion technique that is used to convert a value type to a
value type.
d. None of the above.

9) Which of the following displays icons in a hierarchical treeview, where each icon
represents a different type of symbol; such as namespace, class, and function?

a. Solution Explorer
b. Treeview
c. Properties Window
d. Add Reference

10) Identify the output for the program below. What will the program print?

Class ExampleDemo
{
Public static void Main(string [] args)
{
Console.Writeline(“River of \\ndreams”);

}
}

a. River of dreams
b. River of
dreams
c. dreams
d. River of \\ndreams

Course Code # Z83272/Z61156 Page 2 of 6


© Accenture 2011 All Rights Reserved
Application Delivery Fundamentals (ADF): MS .NET Knowledge Check 1 Solutions

11) Analyze the following code and identify what will happen when the code runs.

Class Arithmetic
{
Public static void AddNum(int number1,int number2)
{
Try
{
Int result=number1/number2;
Console.WriteLine(result);
}
Catch(DivideByZeroException e)
{
Console.WriteLine(“Exception : {0}”,e);
}
}
Public static void Main ()
{
Arithmetic.AddNum(100,0);
Console.ReadLine();
}
}

a. Syntax error
b. Logical error
c. Runtime error
d. No error

12) Predict the output of the following code.

Using System;
Class ExampleCode
{
Public static void Main()
{
Char var=’A’;
Console.WriteLine(A+1);
Console.ReadLine();
}
}

a. 66
b. A
c. A1
d. Compilation error

Course Code # Z83272/Z61156 Page 3 of 6


© Accenture 2011 All Rights Reserved
Application Delivery Fundamentals (ADF): MS .NET Knowledge Check 1 Solutions

13) Analyze the following code then answer the question that follows.

1 class Test
2 {
3 void MethodOne( )
4 {
5 int x = 10;
6 MethodTwo (x);
7 System.Console.WriteLine("\nMethodOne "+ x);
8 x = 20;
9 System.Console.WriteLine("\nMethodOne "+ x);
10 }
11 void MethodTwo (int x)
12 {
13 System.Console.WriteLine("\nMethodTwo "+ x);
14 x = 50;
15 System.Console.WriteLine("\nMethodTwo "+ x);
16 }
17 public static void Main(string[] args)
18 {
19 Test b = new Test();
20 b.MethodOne();
21 }
22 }

Which of the following output is correct when the C# program above is executed?
(Select the best option)

a. MethodTwo 10
MethodTwo 50
MethodOne 10
MethodOne 20
b. MethodTwo 10
MethodOne 10
MethodTwo 50
MethodOne 20
c. MethodTwo 10
MethodOne 10
MethodTwo 50
MethodTwo 50
d. Error in the program

Course Code # Z83272/Z61156 Page 4 of 6


© Accenture 2011 All Rights Reserved
Application Delivery Fundamentals (ADF): MS .NET Knowledge Check 1 Solutions

14) Which of the following will legally declare a construct and initialize an array?
(Select the best option)

a. char myList[] = [‘a’, ‘b’, ‘c’];


b. char myList[] = {a ; b; c; };
c. char [ ] myList = {‘a’, ‘b’, ‘c’};
d. char myList [] = {‘a’; ‘b’; ‘c’};

15) What are the contents of an Assembly?

a. Type metadata
b. MSIL
c. Set of resources
d. Assembly manifest
e. All of the above

16) From which of the following menu lists in Visual Studio are controls dragged and
dropped into the Designer window?

a. ToolBox
b. Solution Explorer
c. ControlBox
d. TaskList

17) Which of the following options is used for debugging when there is no need to
examine a nested method call?

a. Step out
b. Step over
c. Step into
d. None of the above

18) Predict the output of the following code.

Using System;
Class ExampleCode
{
Public static void Main()
{
Char var=’A’;
Console.WriteLine(var+1+10);
Console.ReadLine();
}
}

a. 76

Course Code # Z83272/Z61156 Page 5 of 6


© Accenture 2011 All Rights Reserved
Application Delivery Fundamentals (ADF): MS .NET Knowledge Check 1 Solutions

b. A
c. A1
d. Compilation error

Course Code # Z83272/Z61156 Page 6 of 6


© Accenture 2011 All Rights Reserved

You might also like