Explore topic-wise MCQs in Technology.

This section includes 52 Mcqs, each offering curated multiple-choice questions to sharpen your Technology knowledge and support exam preparation. Choose a topic below to get started.

1.

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

A. asn
B. asp
C. aspn
D. aspx
Answer» E.
2.

What is required to reference an element in an array?

A. Array name
B. Index value of the element
C. Element value
D. Both a and b.
Answer» E.
3.

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

A. logical, comparison, and arithmetic.
B. arithmetic, comparison, and logical.
C. arithmetic, logical, and comparison.
D. comparison, arithmetic, and logical.
Answer» C. arithmetic, logical, and comparison.
4.

A variable which is declared inside a method is called a________variable

A. Serial
B. Local
C. Private
D. Static
Answer» C. Private
5.

Which of the following are value types?1.Integer2.Array3.Single4.String5.Long

A. 1, 2, 5
B. 1, 3, 5
C. 2, 4
D. 3, 5
Answer» C. 2, 4
6.

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

A. -1
B. 0
C. 1
D. 2
Answer» D. 2
7.

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

A. 1, 3
B. 2, 4
C. 3, 5
D. 4, 5
Answer» D. 4, 5
8.

Scope of variable is related to definition of variable as:1. Region of code within which variable value is valid and hence can be accessed.2. No, relation with region where variable is declared its value is valid in entire scope.

A. a
B. b
C. a, b
D. None of the mentioned
Answer» B. b
9.

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

A. Event
B. Function
C. Sub
D. All of the above.
Answer» E.
10.

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

A. .asp
B. .aspx
C. .asp.vb
D. .aspx.vb
Answer» E.
11.

Which of the following can implement an interface?1.Data2.Class3.Enum4.Structure5.Namespace

A. 1, 3
B. 2, 4
C. 3, 5
D. 4 only
Answer» C. 3, 5
12.

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

A. a, A, z, Z
B. a, z, A, Z
C. A, a, Z, z
D. A, Z, a, z
Answer» E.
13.

A sub procedure is valuable because it:

A. makes code easier to maintain.
B. splits the logic to solve a problem into small, manageable units.
C. limits the number of times the code can be accessed.
D. Both a and b.
Answer» E.
14.

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

A. all ASP.NET code.
B. as much ASP.NET code as is in the ASP.NET file.
C. a mix of ASP.NET and HTML code.
D. all HTML code.
Answer» E.
15.

Which is not an ADO.NET DataAdapter Object?

A. OleDbDataAdapter
B. SQLDataAdapter
C. QueryDataAdapter
D. Both a and b.
Answer» D. Both a and b.
16.

Which operator is evaluated first?

A. NOT
B. AND
C. XOR
D. OR
Answer» B. AND
17.

The Boolean data type:

A. is unsigned.
B. has two states.
C. is displayed by the program as yes or no.
D. Both a and b.
Answer» E.
18.

What will be output of the following conversion ?static void Main(string[] args){char a = 'A';string b = "a";Console.WriteLine(Convert.ToInt32(a));Console.WriteLine(Convert.ToInt32(Convert.Tochar(b)));Console.ReadLine();}

A. 1, 97
B. 65, 97
C. 65, 97
D. 97, 1
Answer» D. 97, 1
19.

Which dialog control allows the user to zoom in on a document?

A. PrintDialog
B. PrintPreview
C. PageSetupDialog
D. Both a and b.
Answer» C. PageSetupDialog
20.

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

A. ushort to long
B. int to uint
C. ushort to long
D. byte to decimal
Answer» C. ushort to long
21.

A postback occurs when:

A. a browser posts a form to the server.
B. a user’s action activates the handing of a server event.
C. a server posts a form to the client.
D. Both a and b.
Answer» E.
22.

Where does a web application reside?

A. Web client
B. Web server
C. Visual Studio .NET
D. Both a and b.
Answer» C. Visual Studio .NET
23.

Which is an example of a web document?

A. Server script
B. Web page
C. Client browser
D. Both a and b.
Answer» E.
24.

VB.Net identifiers:

A. are case sensitive.
B. can begin with an underscore.
C. can begin with a number.
D. Both a and b.
Answer» C. can begin with a number.
25.

A GUI:

A. uses buttons, menus, and icons.
B. should be easy for a user to manipulate.
C. stands for Graphic Use Interaction.
D. Both a and b.
Answer» E.
26.

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);

A. ARE
B. CRE
C. CR
D. REA
Answer» C. CR
27.

Which datatype should be more preferred for storing a simple number like 35 to improve execution speed of a program?

A. sbyte
B. short
C. int
D. long
Answer» B. short
28.

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

A. <@
B. <#
C. <$
D. <%
Answer» E.
29.

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

A. .asp
B. .aspx
C. .asp.vb
D. .aspx.vb
Answer» C. .asp.vb
30.

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

A. Dimension
B. Length
C. Number
D. Size
Answer» C. Number
31.

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);

A. 20
B. 4
C. 18
D. 10
Answer» D. 10
32.

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

A. Arrange
B. Assemble
C. Order
D. Sort
Answer» E.
33.

What does IDE stand for?

A. Integrated Development Environment
B. Integrated Design Environment
C. Interior Development Environment
D. Interior Design Environment
Answer» B. Integrated Design Environment
34.

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

A. A AND A
B. A AND B
C. B AND A
D. B AND B
Answer» E.
35.

Which HTML tag creates a link to another browser page?

A. A href
B. A ref
C. An href
D. An ref
Answer» B. A ref
36.

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

A. Dr.Gupta
B. Good Morning
C. Good Morning Dr.Gupta
D. Good Morning name
Answer» D. Good Morning name
37.

Which of the following are the debugging windows in .NET?

A. Breakpoints
B. Output
C. Immediate
D. All the above
Answer» E.
38.

Which class is used to indicate Black Navigation Bar ?

A. .navbar-inverse
B. .navbar-black
C. .navbar-dark
D. .navbar-default
Answer» B. .navbar-black
39.

Which among the following validators allows checking if data of one control match with other control?

A. RangeValidator
B. CompareValidator
C. RequiredFieldValidator
D. None
Answer» C. RequiredFieldValidator
40.

Which among the following validators checks if entered data matches a specific format

A. Compare validator
B. RegularExpressionValidator
C. CustomValidator
D. None
Answer» C. CustomValidator
41.

Which among the following validators validates controls if controls contain data?

A. CompareValidator
B. RangeValidator
C. RequiredFieldValidator
D. None
Answer» D. None
42.

Which among the following is used to send data from one page to another with the URL but you can send limited size of data with the URL

A. Cookies
B. View state
C. Querystring
D. None
Answer» D. None
43.

Which among the following command is used to implement view state

A. _VIEWSTATE
B. VIEW_STATE
C. VIEWSTATE_
D. None
Answer» B. VIEW_STATE
44.

What are type safe function pointers?

A. Delegates
B. Break points
C. Both A and B
D. None
Answer» B. Break points
45.

This events sends the web page to the server for processing. Web page sends data back to the_x005F_x000D_ same page on the server.Which among the following events does the above stated task?

A. Validation events
B. Cached events
C. Postback events
D. None
Answer» D. None
46.

Session_End: occurs when the users stop requesting pages and their session times out.

A. 1
B.
C.
D.
Answer» B.
47.

onclick="window.open()":This attribute of HTML control is used to open a page in new window

A. 1
B.
C.
D.
Answer» B.
48.

Session_Start: This event occurs every time when any new user visits.

A. 1
B.
C.
D.
Answer» B.
49.

Cache events are processed when ever the Postback events occurs

A. 1
B.
C.
D.
Answer» B.
50.

A small text file on the client machine either in the client’s file system or memory of client browser session is called

A. View State
B. Cookies
C. QueryString
D. None
Answer» C. QueryString