8.
AD3i Software Solutions
Code: 2014/NET/10041
Can we create variable in interface ?
a. Yes
b. No
Can we create a class without giving Namespace.
a. Yes
b. No
int x = 10;
inty =x-944*342;
a. -13
b. 25
ea:
d. None
Double k = 10.2222;
float | = (float)k;
int m = (Int)k;
float n = (float)m; Which one is correct ?
a. |= 10.2,n = 10.0
0.22222, n = 10.0
Which method do you invoke on the Data Adapter control to load your generated
dataset with data?
a. Fill
b. Load
cc, GetAll
d. LoadData
Which binding provides more security ?
a. basicHttpBinding’
b. wsHttpBinding
¢. none
The reason that C# does not support multiple inheritances is because of
a. Method collision
b. Name collision
c. Function collision
d. Interface collision
C# treats the multiple catch statements like cases in a
statement.
a. If
b, For
cc. Switch
d. WhileAD3i Software Soluti
Code: 2014/NET/10041
9. An object is composed of:
a.) properties.
b.) methods. :
.) events.
d.) Both a and b.
e.) All of the above.
10. The scope of a variable refers to:
a.) the length of the variable.
b.) the name of the variable.
c.) the accessibility of the variable.
d.) the datatype of the variable.
e.) the lifetime of the variable.
11.3444"7"
a7
b. 14
«7
d. error
12. Polymorphism makes it easier to:
a.) reuse and modify existing modules of code.
b.) write and read code by sharing method names.
.) hide and protect data from external code.
d.) Both a and b.
e.) All of the above.
13.A Sessicn variable is created:
a.) when the application is first placed on a web server.
b.) when the web server is first started.
c.) when the first client requests a URL resource.
d.) every time a client requests a URL resource.
e.) every time a new client interacts with the web application
14. An Application variable is created:
a.) when the application is first placed on a web server.
b.) when the web server is first started.
c.) when the first client requests a URL resource.
d.) every time a client requests a URL resource.
e.) every time a new client interacts with the web application.
15. What symbol specifies the beginning of a query string?
a) @
b.) #
c) $
4.) %
e) ?
16. Where do cookies store information?
a.) HTML source
b.) Text file
c.) URL
d.) Both a and b.AD3i Software Solutions
Code: 2014/NET/10041
17. What is the minimum number of computers in a three-tier architecture?
a) 0
b) 1 S
ae
4.) 3
e.) 4 or more
18, Which user action will not generate a server-side event?
a.) Mouse Move
b.) Text Change
.) Button Click
4.) Both a and b.
e.) All of the above.
19. Which one filter duplicates
a.) Hashset
b.) ArrayList
c) List
d.) Stack
20.Can we create instance of Sealed Class?
a. No
b. Yes
21.What are partial classes?
22. What is serialization? Why do we need it?
23. Can we create an object of Abstract Class?
24.Is it possible to set the session out time manually?
25. What is difference between constants, read-only and, static?