Using whatever you have learned in DotNet and MySQL,
attempt these multiple choice questions. Explain briefly the reason
for your choice.
1. What happens when a variable of Reference data type
goes out of scope?
i. The variable value on the heap is destroyed.
ii. The pointer to the heap object is destroyed.
iii The variable value remains on the heap.
iv. The pointer to heap object remains on the stack
a. i and ii only
b. i and iv only
c. i and iii only
d. ii and iii only
2. Which of the following methods is not supported by
the Command object in System.Data.Oledb Namespace?
a. ExecuteNonQuery()
b. ExecuteReader
c. ExecuteScalar()
d. ExecuteCommand
3. Which of the following exceptions represent the Array
related runtime error?
a. NullExceptions
b. ArgumentException
c. ArgumentNullException
d. ArrayTypeMismatchException
4. Which of the following types of functions are
provided by the System.console class?
i. Static
ii. Instance
iii. Overloaded
iv. Abstract
a. ii and iii
b. Only iv
c. i and iii
d. Only iii
5. Which of the following is read by the CLR to
understand the requirements of MSIL code?
i. Metadata
ii. Source code
iii. Native code
a. Only i
b. Both i and ii
c. Both i and iii
d. Both ii and iii
6. what would be the result of the below query
select from employees where region =null
a. Would not give any result
b. will list all the rows having null in region column
c. it will throw an error
d. None of the above
Using whatever you have learned in DotNet and MySQL, attempt these multiple choice questions. Explain briefly the reason
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am