Advanced Web Programming MCQs - 4 | 200+ MCQ Questions with Answers
76) Which of the following operator returns the size of a data type in C#?
a) sizeofb) typeofc) &</a>d) *
Ans: a
77) Which of the following access specifier in C# allows a class to expose its member variables and member functions to other functions and objects in the current assembly?
a) Publicb) Privatec) Protectedd) Internal
Ans: d
78) Default access for the members of the class is _______.
a) Privateb) Publicc) Protectedd) Default
Ans: a
79) A class ___________ is a special member function of a class that is executed whenever we create new objects of that class.
a) Variableb) Constructorc) Methodd) Function
Ans: b
80) A _________ constructor does not have any parameter
a) inheritedb) parameterisedc) defaultd) special
Ans: c
81) The keyword _________implies that only one instance of the member exists for a class.
a) privateb) publicc) Protectedd) static
Ans: d
82) C# supports multiiple inheritance - True / False?
a) TRUEb) FALSE
Ans: b
83) We can use __________ to implement multiple inheritance in C#
a) interfacesb) inheritancesc) objectd) constructor
Ans: a
84) When a class is declared _________, it cannot be inherited
a) Privateb) As basec) sealedd) as parent
Ans: c
85) A ____________is designed for providing a way to keep one set of names separate from another.
a) structureb) namespacec) classd) interface
Ans: b
86) The ________keyword states that the program is using the names in the given namespace.
a) includeb) libraryc) usingd) exclude
Ans: c
87) You can define one namespace inside another namespace. (True / False)
a) TRUEb) FALSE
Ans: a
88) Value type variables in C# are derived from the class System.ValueType?
a) TRUEb) FALSE
Ans: a
89) Which of the following converts a type to a double type in C#?
a) ToDecimalb) ToDoublec) ToInt16d) ToInt32
Ans: b
90) Which of the following operator returns the address of an variable in C#?
a) sizeofb) typeofc) &d) *
Ans: c
91) The do not contain the actual data stored in a variable, but they contain a reference to the variables.
a) Value Typesb) Reference value typesc) Reference Typesd) Value Reference types
Ans: c
92) Int, char, float are the examples of __________ data types
a) Referenceb) Valuec) Staticd) Virtual
Ans: b
93) Object is an example of ______________ data type.
a) Referenceb) Valuec) Locationd) Address
Ans: a
94) Inner namespaces can be separated using _________
a) _ (underscore)b) . (Dot)c) - (hyphen)d) -> (Arrow)
Ans: b
95) __________ is mechanism to create multiple methods with the same name and unique signature in the same class
a) Constructor Overloadingb) Method Overridingc) Method overloadingd) Constructor overriding
Ans: c
96) An ________ is a non-instantiable class which is either partially implemented, or not at all implemented.
a) Static classb) Sealed classc) partial classd) Abstract class
Ans: d
97) A / An _________ in ASP.NET is a collection of single-file or multiple files.
a) Namespaceb) Libraryc) assemblyd) dictionary
Ans: c
98) DLL stands for __________
a) data definition libraryb) dynamic link libraryc) digital library linkd) distributed link library
Ans: b
99) _________ describes the assembly.
a) Libraryb) Manifestc) Metadatad) MSIL
Ans: b
100) Which programming model should you implement if you want to separate your server-side code from your client-side layout code in a Web page?
a) Single-file modelb) Code-behind modelc) Inline modeld) Client-server model
Ans: b
Post a Comment