Computer/NET Programming MCQ Sample Test,Sample questions

Question:
 The proper operator precedence, from first to last, is:

1.logical, comparison, and arithmetic.

2.arithmetic, comparison, and logical.

3.arithmetic, logical, and comparison.

4.comparison, arithmetic, and logical.


Question:
 Type of Conversion in which compiler is unable to convert the datatype implicitly is ?

1.ushort to long

2.int to uint

3.ushort to long

4.byte to decimal


Question:
 What is required to reference an element in an array?

1.Array name

2.Index value of the element

3.Element value

4.Both a and b.


Question:
 What is the extension for a Visual Basic web form interface file?

1..asp

2..aspx

3..asp.vb

4.aspx.vb


Question:
 What is the size of a Decimal?

1.4 byte

2.8 byte

3.16 byte

4.32 byte


Question:
 Which is a type of procedure found in VB.Net?

1.Event

2.Function

3.Sub


Question:
 Which is an example of a web document?

1.Server script

2.Web page

3.Client browser

4.Both a and b.


Question:
 Which is not an ADO.NET DataAdapter Object?

1.OleDbDataAdapter

2.SQLDataAdapter

3.QueryDataAdapter

4.. Both a and b.


Question:
 Which of the following is NOT an Integer?

1.Char

2.Byte

3.Integer

4.Short


Question:
 Which of the following is the correct output of the C#.NET code snippet given below?
int[ , , ] a = new int[ 3, 2, 3 ];
Console.WriteLine(a.Length);

1.20

2.4

3.18

4.10


Question:
 Which of the following statements is correct?

1. When a class inherits an interface it inherits member definitions as well as its implementations.

2.An interface cannot contain the signature of an indexer.

3.Interfaces members are automatically public.

4.To implement an interface member, the corresponding member in the class must be public as well as static.


Question:
 Which set of symbols are used to signify the presence of ASP.NET code?

1.<@

2.<#

3.<$

4.<%


Question:
A GUI: 

1.uses buttons, menus, and icons.

2.B. should be easy for a user to manipulate.

3.stands for Graphic Use Interaction.

4.Both a and b


Question:
A postback occurs when:

1.a browser posts a form to the server.

2.a user’s action activates the handing of a server event.

3.a server posts a form to the client.

4. Both a and b.


Question:
A sub procedure is valuable because it:

1.makes code easier to maintain.

2.splits the logic to solve a problem into small, manageable units.

3.limits the number of times the code can be accessed.

4.Both a and b.


Question:
If s1 and s2 are references to two strings, then which of the following is the correct way to compare the two references?

1.s1 is s2

2. s1 = s2

3.s1.Equals(s2)

4.strcmp(s1, s2)


Question:
In the For…Next statement the default value for the Step is:

1.-1

2.0

3.1

4.2


Question:
Select output of the given set of Code :
static void Main(string[] args)
{
String name = "Dr.Gupta";
Console.WriteLine("Good Morning" + name);
}

1.Dr.Gupta

2.Good Morning

3.Good Morning Dr.Gupta

4.Good Morning name


Question:
The Boolean data type:

1.is unsigned.

2. has two states.

3.is displayed by the program as yes or no.

4.Both a and b.


Question:
VB.Net identifiers:

1. are case sensitive.

2.can begin with an underscore

3.can begin with a number.

4.Both a and b.


Question:
Visual Studio .NET provides which feature:

1.debugging

2.application deployment.

3.syntax checking.

4.All of the above..


Question:
What is the extension for a Visual Basic web form code file?

1..asp

2..aspx

3..asp.vb

4..aspx.vb


Question:
When an ASP.NET file is placed on an IIS server and viewed through a browser, the resulting HTMLpage contains:

1.all ASP.NET code.

2.as much ASP.NET code as is in the ASP.NET file.

3.a mix of ASP.NET and HTML code.

4. all HTML code.


Question:
Where does a web application reside?

1. Web client

2.Web server

3.Visual Studio .NET

4.Both a and b.


Question:
Which does the solution explorer not display?

1.Form Properties

2.Reference Folder

3.Form File

4.Assemble File


Question:
Which HTML tag creates a link to another browser page?

1.A href

2.A ref

3.An href

4.An ref


Question:
Which is the file extension used for an ASP.NET file?

1. asn

2.asp

3.aspn

4.aspx


Question:
Which is the String method used to compare two strings with each other ?

1.Compare To()

2.Compare()

3.Copy()

4.ConCat()


Question:
Which method will arrange the elements of an array in alphabetical order?

1. Arrange

2.Assemble

3.Order

4.Sort


Question:
Which method will return the number of elements in an array?

1.Dimension

2.Length

3.Number

4.Size


Question:
Which of the following are NOT Relational operators in C#.NET?
1.>=
2.!=
3.Not
4.<=
5.<>=

1.1, 3

2.2, 4

3.3, 5

4.4, 5


Question:
Which of the following does not store a sign?

1.Short

2.Integer

3.Long

4.Byte


Question:
Which of the following is an 8-byte Integer?

1.Char

2.Long

3.Short

4.Byte


Question:
Which of the following is NOT an Assignment operator in C#.NET?

1.=

2. /=

3.*=

4.+=


Question:
Which of the following is the correct size of a Decimal datatype?

1.8 Bytes

2.4 Bytes

3.10 Bytes

4.16 Bytes


Question:
Which of the following will be the correct output for the C#.NET code snippet given below?
String s1 = "ALL MEN ARE CREATED EQUAL";
String s2;
s2 = s1.Substring(12, 3);
Console.WriteLine(s2);

1.ARE

2.CRE

3.CR

4.REA


Question:
Which operator is evaluated first?

1.NOT

2.AND

3.XOR

4.OR


Question:
Which sequence of char data types is listed from lowest to highest?

1.a, A, z, Z

2. a, z, A, Z

3.A, a, Z, z

4. A, Z, a, z


Question:
With A = False and B = True, which statement evaluates as True?

1. A AND A

2. A AND B

3.B AND A

4.B AND B


More MCQS

  1. Computer fundamentals
  2. Computer Basic MCQS
  3. CCC MCQ Sample Paper 1
  4. CCC Exams MCQS Sample Paper Test 2
  5. Computer Basics MCQS Paper 1
  6. Computer Basics MCQS Paper 2
  7. FUNDAMENTALS OF COMPUTERS MCQs PART 2
  8. FUNDAMENTALS OF COMPUTERS MCQs PART 1
  9. FUNDAMENTALS OF COMPUTERS MCQs PART 3
  10. Computer mcqs smaple paper 1
  11. Computer mcqs smaple paper 2
  12. Computer mcqs smaple paper 3
  13. Fundamentals of Computers
  14. Fundamentals of Computers (New) Part 1
  15. Fundamentals of Computers (New) Part 2
  16. Computer Networks MCQ Questions
  17. Computer Networks Transition from IPV4 to IPV6
  18. Computer Fundamentals (New) Part 1
  19. Computer Fundamentals (New) Part 2
  20. Computer Fundamentals (New) Part 3
  21. Computer Fundamentals (New) Part 4
  22. Computer Fundamentals (New) Part 5
  23. Computer Fundamentals (New) Part 6
  24. Computer Fundamentals (New) Part 7
  25. Computer Fundamentals (New) Part 8
  26. Operating Systems MCQs Part 1
  27. Operating Systems MCQs Part 2
  28. OS(Computer Operating Systems) Part 1
  29. OS(Computer Operating Systems) Part 2
  30. OS(Computer Operating Systems) Part 3
  31. OS(Computer Operating Systems) Part 4
  32. OS - Computer Operating Systems Part 5
  33. OS - Computer Operating Systems Part 6
  34. OS - Computer Operating Systems Part 7
  35. MS Word MCQ Questions Part 1
  36. MS Word MCQ Questions Part 2
  37. MS Word MCQ Questions Part 3
  38. MS Word MCQ Questions Part 4
  39. MS Word MCQ Questions Part 5
  40. MS Word MCQ Questions Part 7
  41. MS Word MCQ Questions Part 6
  42. Microsoft Excel MCQ Questions Part 1
  43. Microsoft Excel MCQ Questions Part 2
  44. Microsoft Excel MCQ Questions Part 3
  45. Microsoft Excel MCQ Questions Part 4
  46. Microsoft Excel MCQ Questions Part 5
  47. Microsoft Excel MCQ Questions Part 6
  48. Microsoft Excel MCQ Questions Part 7
  49. MS PowerPoint MCQ Questions PART 1
  50. MS PowerPoint MCQ Questions PART 2
  51. MS PowerPoint MCQ Questions PART 3
  52. MS PowerPoint MCQ Questions PART 4
  53. MS PowerPoint MCQ Questions PART 5
  54. MS PowerPoint MCQ Questions PART 6
  55. MS PowerPoint MCQ Questions PART 7
  56. MS Access MCQ Questions Part 1
  57. MS Access MCQ Questions Part 2
  58. MS Access MCQ Questions Part 3
  59. MS Access MCQ Questions Part 4
  60. MS Access MCQ Questions Part 5
  61. MS Access MCQ Questions Part 6
  62. MS Access MCQ Questions Part 7
  63. MS Access MCQ Questions Part 8
  64. Query of MS Access MCQS Part 1
  65. Query of MS Access MCQS Part 2
  66. Computer Communication and Networking Quiz
  67. Computer Graphics MCQ Quiz Questions and Answers
  68. Computer Basics Quiz Questions
  69. Computer Quiz Questions with Answers
  70. Computer Hardware MCQS Quiz
  71. MCQ Computer Organization & Architecture
  72. MCQ Computer Organisation - Input & output Organisation SET1
  73. MCQ Computer Organisation - Input & output Organisation SET2
  74. MCQ Computer Organisation - Input & output Organisation SET3
  75. MCQS on addressing modes SET 1
  76. MCQS on addressing modes SET 2
  77. Software Engineering MCQs SET 1
  78. Software Engineering MCQs SET 2
  79. Software Engineering MCQs Set 3
  80. Software Engineering MCQs Set 4
  81. Software Engineering MCQs Set 5
  82. Software Engineering MCQs Set 6
  83. Software Engineering MCQs Set 7
  84. mcqs data structures
  85. CCC Exam Sample MCQ Paper
  86. Computer MCQ Questions set-1
  87. Computer MCQ Questions set-2
  88. Computer MCQ Questions set-3
  89. Current affairs mcq Database management
  90. Programming arcitecture
  91. Computer Graphics MCQ Questions part 1
  92. Computer Graphics MCQ Questions part 2
  93. Computer Awareness MCQs and Quiz for Banking, IBPS, RRB, RBI, SBI Exams pART 1
  94. Computer Awareness MCQs and Quiz for Banking, IBPS, RRB, RBI, SBI Exams pART 2
  95. Computer Science MCQs
  96. Computer Mcq Question
  97. MCQs based on Fundamentals of Computer 1 set
  98. Computer Mcq Question set 2
  99. MCQ Encoding Schemes
  100. Data Entry and Keyboarding Skills MCQ
  101. Computer Science Number System
  102. Computer Network MCQ
  103. MCQ Questions on Tally
  104. MCQ Questions on Tally Set 2
  105. MCQ Questions on Tally Set 3
  106. MCQ Questions on Tally Set 4
  107. Internet Technology MCQ Questions for Competitive Exams
  108. Computer Software MCQ GK Questions
  109. Computer Organization and Architecture MCQs
  110. Basic Computer GK Questions
  111. Computer Graphics MCQ Set 1
  112. Operating System MCQ Set 1
  113. Operating System MCQ Set 2
  114. Operating System MCQ Set 3
  115. Operating System MCQ Set 4
  116. Operating System MCQ Set 5
  117. Operating System MCQ Set 6
  118. Operating System MCQ Set 7
  119. Operating System MCQ Set 8
  120. Operating System MCQ Set 9
  121. Operating System MCQ Set 10
  122. Operating System MCQ Set 11
  123. Operating System MCQ Set 12
  124. Operating System MCQ Set 13
  125. Operating System MCQ Set 14
  126. Operating System MCQ Set 15
  127. Operating System MCQ Set 16
  128. Operating System MCQ Set 17
  129. Operating System MCQ Set 18
  130. Operating System MCQ Set 19
  131. Operating System MCQ Set 20
  132. Operating System MCQ Set 21
  133. Computer Graphics MCQ Question Set 1
  134. Computer Networks MCQs
  135. Computer Networks MCQs Set-2
  136. Computer Networks MCQs Set-3
  137. Computer Networks MCQs Set-4
  138. Bachelor of Computer Applications MCQs set-1
  139. Bachelor of Computer Applications MCQs set-2
  140. NET Programming MCQ
  141. Artificial Intelligence and Robotics (AIR) Set 1
  142. Artificial Intelligence and Robotics (AIR) Set 2
  143. Computer Engineering Soft Computing Set 1
  144. Computer Engineering Soft Computing Set 2
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!