Csharp
Csharp
General Instruction:
1 : Which of the following statements are TRUE about the .NET CLR?
1.It provides a language-neutral development & execution environment.
2.It ensures that an application would not be able to access memory that it is not authorized to access.
3.It provides services to run "managed" applications.
4.The resources are garbage collected.
5.It provides services to run "unmanaged" applications.
(A) Only 1 and 2
(B) Only 1, 2 and 4
(C) 1, 2, 3, 4
(D) Only 4 and 5
3 : What is ENUM?
(A) It is used to initialize variables
(B) It is used to define constants
(C) It is used to define variables
(D) None
6 : Which of the following are valid .NET CLR JIT performance counters?
18 : Which method do you invoke on the SQLDataAdapter object to load your dataset with data?
(A) Update
(B) Fill
(C) Gather
(D) Load
Answer :
2. function first() {
window.a = 3;
}
function second() {
alert(a);
}
Assuming I call these functions in order, what's alerted?
(A) 0
(B) 3
(C) null
(D) undefined
Answer :
5. <script type="text/javascript">
var s = "9123456 or 80000?";
var pattern = /\d{4}/;
var output = s.match(pattern);
document.write(output);
</script>
(A) 9123
(B) 91234
(C) 80000
(D) None of the above
7. Which of the following jQuery method returns the outer height (including the border) of an
element?
(A) getCSSHeight( )
(B) getHeight( )
(C) outerHeight( [margin] )
(D) None of the above.
8. Which JQuery function is used to prevent code from running, before the document is finished
loading?
(A) $(document).load()
(B) $(document).ready()
(C) $(body).onload()
Answer :
(A) typeof
(B) void
(C) instanceof
(D) delete
(A) delhi
(B) palampur
(C) agra
(D) akot
13. Which JQuery method is used to switch between adding/removing one or more classes (for CSS)
from selected elements?
(A) switchClass()
(B) switch()
(C) toggleClass()
(D) altClass()
14. Which built-in method returns the calling string value converted to upper case?
(A) toUpperCase()
(B) toUpper()
(C) changeCase(case)
(D) None of the above.
(A) Banana
(B) Apple
(C) Kiwi
(D) Banana, Kiwi
Answer :
18. What is the correct JQuery code to set the background color of all p elements to red?
Answer :
Output:
Sum: 18
Difference: 12
Product: 45
Quotient: 5
3. Write a function that will check if all character in a string is lower case and check if input value is a
valid sting
Output:
abcdefgh = true
ABCdefgH = false
abcdefgh1234 = false
4. Write a function that will remove all special characters in a string
Output:
abcd!ef123-=##ghi = abcdefghi123
5. What are the different access modifiers in C# and kindly explain each access modifiers?
6. What are the fundamental principles of OOP and kindly explain each principle?