Time remaining
:
:
Test Status
CSHARPRANDOMTEST
Ques 1 :
What property is used on the datatable to indicate conflicts after update method is called?
(A) HasCollision
(B) HasErrorConflict
(C) HasError
(D) HasDataError
Ques 2 :
Which of the following jobs are NOT performed by Garbage Collector?
1.Freeing memory on the stack.
2.Avoiding memory leaks.
3.Freeing memory occupied by unreferenced objects.
4.Closing unclosed database collections.
5.Closing unclosed files.
(A) 1, 2, 3
(B) 1, 4, 5
(C) 3, 5
(D) 3, 4
Ques 3 :
Managed methods will be marked as ------------ in MSIL code
(A) mscorjit
(B) cil
(C) dgclr
(D) None
Ques 4 :
Which of the following assemblies can be stored in Global Assembly Cache?
(A) Private Assemblies
(B) Shared Assemblies
(C) Protected Assemblies
(D) Friend Assemblies
Ques 5 :
Which keyword is used to achieve shadowing in C#?
(A) Abstract
(B) New
(C) Shadow
(D) Sealed
Ques 6 :
In data reader, what can be used before read method?
(A) Getvalue
(B) Getstring
(C) GetNumber
(D) None
Ques 7 :
Which of the following are not types of access modifiers in C#?
(A) external protect
(B) internal protect
(C) protect
(D) internal
Ques 8 :
Which method do you invoke on the SQLDataAdapter object to load your dataset with data?
(A) Update
(B) Fill
(C) Gather
(D) Load
Ques 9 :
int keyword targets to which .Net type?
(A) System.Int8
(B) System.Int16
(C) System.Int32
(D) System.Int64
Ques 10 :
What is the wild card character in the SQL "like" statement?
(A) * (Asterisk)
(B) # (Pound)
(C) % (Percent)
(D) $ (Dollar)
Ques 11 :
What is the difference between Convert.ToString(str) and str.ToString() method?
(A) Convert.ToString(str) function handles NULL while str.ToString() does not. It will throw a NULL reference exception.
(B) str.ToString() function handles NULL while Convert.ToString(str) does not. It will throw a NULL reference exception.
(C) Both can handle NULL
(D) None can Handle NULL
Ques 12 :
Are private class-level variables can inherited?
(A) Yes, and we can access them
(B) No, and we can not access them
(C) Yes, but we can not access them
(D) All of the above are wrong
Ques 13 :
Which of the following are NOT true about .NET Framework?
1. It provides a consistent object-oriented programming environment whether
object code is stored and executed locally, executed locally but Internet-
distributed, or executed remotely.
2.It provides a code-execution environment that minimizes software deployment and versioning conflicts.
3.It provides a code-execution environment that promotes safe execution of code, including code created by an
unknown or semi-trusted third party.
4.It provides different programming models for Windows-based applications and Web-based applications.
5.It provides an event driven programming model for building Windows Device Drivers.
(A) 1, 2
(B) 2, 4
(C) 4, 5
(D) 1, 2, 4
Ques 14 :
What is the output of the code public class B : A { }
(A) It defines a class that inherits the public methods of A only.
(B) It defines a class that inherits all the methods of A but the private members cannot be accessed.
(C) Errors
(D) a and b
Ques 15 :
What object can help you maintain data across users?
(A) Session object
(B) Server Object
(C) Response Object
(D) Application Object
Ques 16 :
Automatic paging is possible in
(A) datareader
(B) dataset
(C) datatabel
(D) all
Ques 17 :
Which of the following statements is correct about Managed Code?
(A) Managed code is the code that runs on top of Windows.
(B) Managed code is the code that is written to target the services of the CLR.
(C) Managed code is the code where resources are Garbage Collected.
(D) Managed code is the code that is compiled by the JIT compilers.
Ques 18 :
An assembly is
(A) declarative syntax of Java
(B) properties of c#
(C) events Of c#
(D) A collection of files that appear to the programmer to be a single DLL or EXE.
Ques 19 :
Which of the following is the root of the .NET type hierarchy?
(A) System.Object
(B) System.Base
(C) System.Root
(D) System.Parent
Ques 20 :
Is it possible to change the value of a variable while debugging a C# application?
(A) Yes
(B) No
Submit Answer
Don't Refresh the Page !! ...