C# Interview Questions - 17 | Snaprecruit.com
C# Interview Questions - 17 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
C SHARP interview questions part 17
C SHARP interview questions part 17
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Select the type of multitasking methods that exist:
A. 8
B. 4
C. 2
D. 1
Show Correct Answer
Correct Answer is :
8
2. Choose the correct statement about process-based multitasking:
A. System.Int16
B. System.UInt32
C. System.UInt64
D. System.UInt16
Show Correct Answer
Correct Answer is :
System.UInt32
3. What is the advantage of the multithreading program?
A. int a = 32, b = 40.6;
B. int a = 42; b = 40;
C. int a = 32; int b = 40;
D. int a = b = 42;
Show Correct Answer
Correct Answer is :
int a = 32; int b = 40;
4. Select the two type of threads mentioned in the concept of multithreading:
A. long < short < int < sbyte
B. sbyte < short < int < long
C. short < sbyte < int < long
D. short < int < sbyte < long
Show Correct Answer
Correct Answer is :
sbyte < short < int < long
5. Choose the namespace which supports multithreading programming:
A. sbyte
B. short
C. int
D. long
Show Correct Answer
Correct Answer is :
sbyte
6. What does the given code snippet specify? public Thread(ThreadStart start)
A. 2
B. Both 1,2
C. 1
D. None of the mentioned
Show Correct Answer
Correct Answer is :
2
7. Which of these classes is used to make a thread?
A. c = a + b;
B. c = a + int(float(b));
C. c = a + convert.ToInt32(b);
D. c = int(a + b);
Show Correct Answer
Correct Answer is :
c = a + convert.ToInt32(b);
8. Which of these method of Thread class is used to Suspend a thread for a period of time?
A. Long Int
B. Unsigned Long
C. Int
D. Unsigned Int
Show Correct Answer
Correct Answer is :
Int
9. Which of these keywords are used to implement synchronization?
A. 23.453
B. 22
C. 23
D. 22.453
Show Correct Answer
Correct Answer is :
23
10. Which keyword is used for using the synchronization features defined by the Monitor class?
A. 0
B. 2
C. 4
D. None of the mentioned
Show Correct Answer
Correct Answer is :
4
11. What is synchronization in reference to a thread?
A. i1.fun
B. i2.fun
C. 0
D. i1.fun
Show Correct Answer
Correct Answer is :
i1.fun
12. What is Semaphore?
A. Interfaces cannot be inherited
B. Interfaces consists of data static in nature and static methods
C. Interfaces consists of only method declaration
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
13. Which method is used to abort thread prior to it’s normal execution?
A. Properties
B. Methods
C. Structures
D. Events
Show Correct Answer
Correct Answer is :
Structures
14. Which of these statements is incorrect?
A. 12 bytes
B. 16 bytes
C. 0 bytes
D. 24 bytes
Show Correct Answer
Correct Answer is :
24 bytes
15. What is multithreaded programming?
A. The calls to implementation of interface methods are routed through a method table
B. A class which implements an interface can explicitly implement members of that interface
C. One interface can be implemented in another interface
D. None of the mentioned
Show Correct Answer
Correct Answer is :
The calls to implementation of interface methods are routed through a method table
16. What exception is thrown if the URI format is invalid?
A. One class could implement only one interface
B. Properties could be declared inside an interface
C. Interfaces cannot be inherited
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Properties could be declared inside an interface
17. What exception is thrown if the user does not have a proper authorization?
A. interface
B. Interface
C. intf
D. Intf
Show Correct Answer
Correct Answer is :
interface
18. Choose the exceptions generated by the Create() method defined by WebRequest:
A. Unlike classes, interfaces consists of only declaration but not implementation
B. Interfaces cannot be used directly like classes to create new objects
C. Interfaces consists of declaration of methods,properties events and type definitions
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
19. Choose the exceptions generated by the GetReponse() method defined by WebRequest:
A. class maths : addition {}
B. class maths implements addition {}
C. class maths imports addition {}
D. none of the mentioned
Show Correct Answer
Correct Answer is :
class maths : addition {}
20. Select the properties related to the network errors generated by WebException:
A. TRUE
B. FALSE
C. Can’t Say
D. None of the mentioned
Show Correct Answer
Correct Answer is :
FALSE
Similar Interview Questions
Search for latest jobs
Find Jobs