Presentation is loading. Please wait.

Presentation is loading. Please wait.

Quiz Points 1 Rules Raise your hand if you know the question

Similar presentations


Presentation on theme: "Quiz Points 1 Rules Raise your hand if you know the question"— Presentation transcript:

1 Quiz Points 1 Rules Raise your hand if you know the question
One student will be picked in random If the answer is wrong, another student will be given a chance If answer is given by several students at the same time, no one will get any quiz points!

2 Q 1 CLR Manages (a) memory (b) garbage collection (c) security
(d) all of the above (e) only a and b Answer: (d)

3 Q 2 Unit of deployment in .NET is (a) a dll (b) an executable
(c) an assembly (d) all of the above Answer: (c)

4 Q 3 All .NET languages use a set of types called what? (a) CLS (b) CLR
(c) CTS (d) Variant Answer: (c)

5 Q 4 int in C# is an alias to what in CTS? Answer: System.Int32

6 Q 5 What kind of objects are created on the stack? Answer: value types

7 Q 6 What is the process of copying a Value Type to Reference type called? Answer: boxing

8 Q 7 Generation Count on an object is
(a) the number of seconds it has been alive (b) the number of seconds it will be alive (c) the number of references on it (d) the number of times it has seen the GC sweep Answer: (d)

9 Q 8 Code executed within the CLR is called what? Answer: managed code

10 Q 9 In .NET, certain characteristics like serializable
for classes, methods, etc. can be expressed using (a) comments (b) xml (c) attributes (d) modifiers Answer: (c)

11 Q 10 .NET classes generally belong to (a) Namespaces (b) packages
(c) project (d) dll Answer: (a)

12 Q 11 C# code is compiled into (a) assembly (b) binary (c) IL (d) CLR
Answer: (c)

13 Q 12 In order to use foreach on a collection, that collection must implement what (a) IEnumerator (b) IEnumerable (c) IList (d) ICloneable Answer: (b)

14 Q 13 A using clause is required if you want to use a class from another namespace (a) yes (b) no (c) may be (d) not sure Answer: (b)

15 Q 14 A property gives you ability to set a field’s value
(a) without any encapsulation (b) with full encapsulation (c) using reflection at run time (d) none of the above Answer: (b)

16 Q 15 Indexers can take as argument (a) int (b) double (c) char
(d) all of the above Answer: (d)

17 Q 16 What interface each class should implement to properly cleanup its resources (a) IEnumerable (b) ICloneable (c) IDisposable (d) IResourceConsumer Answer: (c)

18 Answer: SuppressFinalize
Q 17 What method of GC should you call to ask it to not run the finalize on an object? Answer: SuppressFinalize

19 Q 18 What keyword you would use to check if an object is an instance of some type? Answer: is

20 Q 19 What keyword is used to make a method overridable (a) virtual
(b) override (c) sealed (d) new Answer: (a)

21 Q 20 What keyword is used to write a overriding method (a) virtual
(b) override (c) sealed (d) new Answer: (b)

22 Q 21 What keyword is used to make a method non-overrideable
(a) virtual (b) override (c) sealed (d) new Answer: (c)

23 Q 22 C# allows you to override the following
(a) methods, properties, fields (b) methods and properties (c) methods only (d) properties only Answer: (b)

24 Q 23 Which of these are statically bound? Calls to (a) static methods
(b) base methods (c) constructors (d) non-static methods (e) sealed methods (f) methods of a sealed class Answer: all but (d)

25 Answer: element content, character content, mixed and empty contents
Q 24 An XML element may be of four types as for as its contents, what are those? Answer: element content, character content, mixed and empty contents

26 Q 25 What makes an XML document well formed? Only one root element
Attributes must have string values Don’t duplicate attributes in an element xml version if present must be 1.0 xml version if present must be at the very top Element tag names are restricted Proper nesting of elements required tag names are case sensitive Special characters may only be used within CDATA sections or as entity references; CDATA can’t have ]] as contents Comments must follow restricted syntax


Download ppt "Quiz Points 1 Rules Raise your hand if you know the question"

Similar presentations


Ads by Google