0% found this document useful (0 votes)
23 views

MCQ Bank

Uploaded by

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

MCQ Bank

Uploaded by

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

Q.1) Choose Correct alternatives.

1) Which of the following is not access modifier?


a)private b) local c) internal d) protected
2) CTS stands for________
a)Common Type System b)Combine Type Specification
c)Code Type Specification d)Common Type Specification
3) Which of the following is the use of reference type?
a) To alter the contents of its arguments
b) To allow a method to return more than one value
c) Both a and b d) None of these.
4) All Exception classes derived from the ____ system defined exception
class.
a) Exception b) MemoryException
c) ExceptionSystem d) ExceptionMemory
5) In method overloading, it is sufficient for two methods to differ only in
their return types.
a) True b) False
6) Which of the following is the characteristic of static keyword?
a) No objects needs to be created b) It must accessed through its
class name
c)Both a and b d) None of these.
7) An interface is implemented in _______
a) Class only b) Structure only c) Both a and b d) None of these
8) _________keyword is used to prevent a class from being inherited
a)this b)sealed c) final d)none of these.
9) Structure members cannot be specified as _____
a)abstract b) virtual c) protected d)All of these
10) Every process has at least one thread.
a) True b) False
11) Which of the following feature provided by .Net?
a) Debugging b) Application deployment c) Syntax checking d)
All of these
12) _______is a logical grouping of classes, interfaces in .Net.
a) Packages b) Namespaces c) Libraries d) Collections
13) ______is used for obtaining type information at runtime.
a) String Objects b) Attributes objects c) Reflection Objects d)
None of these
14) Namespaces contains only pre-defined classes.
a) True b) False
15) Indexers can have one or more dimensions.
a) True b) False
16) When overriding a method _______must be same.
a) name b) return type c) arguments d) All of these
17) modulo (%) operator is operate on_______
a. Integer only b. Char only
c. Floating point only d. both integer and floating point
18) Constructor of super class is invoked in the sub class
constructor by using _____
a) this b) construct c) base d) super
19) CLS stands for ________
a) Common Language Specification b) Common Language
Spreadsheet
c) Common Language System d) Common Learning
System.
20) Variables are declared as static are called global variables.
a. True b) False
21) Which of the following is the member of structure?
a) properties b) indexers c) methods d) All of these
22) ______is used to get the metadata information of an assembly.
a) Reflection b) Constructor c) Synchronization d) All of
these
23) The built-in Thread class can be inherited.
a) True b) False
24) Method overriding is supported at____
a) linking time b) compile time c) run time d)Loading time
25) A static constructor is called before any object of the class is
created.
a) True b) False
26) Which of the following is correct about the exception?
a) It occurs during compilation b) It occurs during linking
c) It occurs at runtime d) None of these
27) The override modifier applies to________
a) Methods b) Classes c) Interfaces d) All of these
28) Which of the following is not reserved keyword provided by C#?
a) namespace b) base c) param d) catch

29) Which of the following is value type?


a) String b) Delegate c) Enum d) Class
30) _____is a collection class that allows an element to be
accessed using unique key.
a) ArrayListb) List c) Stack d) HashTable
31) Every class directly or indirectly extends the ______class.
a) System b) Drawing c) Object d) Console
32) In C# Thread.Sleep(time) measures time in_____
a) Seconds b) milliseconds c) nanoseconds d) minute
33) A method_____an exception when that method detects a
problem has occurred.
a) Trys b) Catches c) Throws d) Final
34) Which of the following defines rule for .Net languages?
a) CLR b) CTS c) CLS d) CST
35) Struct is permitted to declare destructor.
a) True b) False
36) An enumeration is a user defined integer type.
a) True b) False
37) In ArrayList ____property is used to get or set the number of
elements in the list.
a) Count b) Total c) Capacity d) Length
38) Virtual method can be overridden by a derived classes.
a) True b) False
39) ____property is used to retrieve the name of the currently running
thread.
a) Name b) ThreadState c) CurrentThread d) IsAlive
40) Abstract class cannot be sealed.
a) True b) False
41) Value type data is stored in____
a) Queue b) Stack c) Heap d) List
42) If you don’t want to override method by derived class then it will be
declared as____
a) Abstract b) Virtual c) Sealed d) New
43) The _____block is used to perform a clean-up process.
a) Try b) Catch c) Throw d) Finally
44) Namespaces are the way that .Net avoids name clashes between
classes.
a) True b) False
45) Which of the following modifier is allowed to use in a struct?
a) Static b) Virtual c) Abstract d) All of these
46) _____keyword is used to assign aliases to classes.
a) alias b) using c) include d) None of these
47) InfoDrive class provides properties and methods that provide
information on a selected drive.
a) True b) False
48) Defining two methods with the same name but with different
parameters is called_____
a) Overriding b) Virtual v) Abstract d) Overloading
49) MSIL stands for Microsoft Intermediate Language.- True
50) BCL stands for Base Class Library. -True
51) IDE stands for Integrated Development Environment. –True
1)The conversion from an reference type to a values type is known as
boxing.

a)true b)false.

2)CTS stands for________

a)Common Type System b)Combine Type Specification

c)Code Type Specification d)Common Type Specification

3)char is a _________type.

a)reference b)value c) int d)all of these.

4) Which of the following is not a .NET Exception class?

a) Exception b) StackMemoryException

c) DivideByZeroException d) OutOfMemoryException

5)__________ method terminates the execution of thread.

a)abort() b)start() c)suspend d)sleep().

6)All the stream classes are defined within the __________namespace.

a)System.IO b)System.Exception c)System. Collections d)none of


these.

7)_________ keyword refers to the current instance of a class

a)base b)value c)this d)volatile.


8)_________keyword is used to prevent a class from being inherited

a)this b)sealed c) final d)none of these.

9)Defining a methods in base class and subclass with a same name and
same signature is called ________

a)Overloading b) Muliplexing c)Overriding d)none of these.

10).net framework defines two types of threads foreground and


background.

a)true b)false
1 Which of the following is the correct way to find out the number of
elements currently present in an ArrayList Collection called arr?

A) arr.Count B) arr.Capacity C) arr.UpperBound D) arr.Length

1 Which of the following is the property of Stack?

A) Pop B) Peek C) Count D) Push

2 In C# variables are categorized into_____

A) Value Types B) Reference Types C) Both a and b D) None of


these

3 An interface can contain declaration of______

A) Methods B) Events C) Indexers D) All of these

4 Structures are reference types.

A) True B) False
5 In a HashTable, Key cannot be null, but Value can be null.

A) True B) False

7 Which of the following is not a C# keyword?


A) private B) delegate C) implements D) event

8 _______assemblies can be stored in Global Assembly Cache.

A) Private Assemblies B) Shared Assemblies C) Public Assemblies


D) Protected Assemblies

9 Default access specifier for class is______

A) public B) internal C) protected D) none of these

10 Static constructors does not have any access modifiers.

A) True B) False

11 Which of the following class is not related to the System.IO namespace?


A) StreamReader B) StreamWriter C) StreamFile D) StringReader

12 JVM compiler of .Net compiles MSIL into native code.

A) True B) False

13 ____method terminates the execution of thread.

A) Start() B) Suspend() C) Sleep() D) Abort()

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy