The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Which language is not a true object-oriented programming language?
A.
VB.NET
B.
VB 6
C.
C++
D.
C#
E.
Java
Correct Answer
B. VB 6
Explanation VB 6 is not a true object-oriented programming language because it does not fully support the key principles of object-oriented programming, such as inheritance and polymorphism. VB 6 primarily uses procedural programming concepts and lacks the features and syntax necessary for proper object-oriented programming. In contrast, languages like C++, C#, Java, and VB.NET are considered true object-oriented programming languages as they provide robust support for object-oriented programming paradigms.
Rate this question:
2.
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.
E.
All of the above.
Correct Answer
D. Both a and b.
Explanation A GUI, which stands for Graphical User Interface, uses buttons, menus, and icons to provide an interactive and user-friendly experience. It should be easy for a user to manipulate, meaning that the interface should be intuitive and straightforward to navigate. Therefore, the correct answer is "Both a and b" because a GUI incorporates buttons, menus, and icons while also being designed for easy user manipulation.
Rate this question:
3.
Visual Studio .NET provides which feature:
A.
Debugging.
B.
Application deployment.
C.
Syntax checking.
D.
Both a and b.
E.
All of the above.
Correct Answer
E. All of the above.
Explanation The correct answer is "All of the above" because Visual Studio .NET provides all the mentioned features. It allows for debugging, which helps in identifying and fixing errors in the code. It also provides application deployment capabilities, which allow developers to package and distribute their applications. Additionally, Visual Studio .NET includes syntax checking, which helps in identifying and correcting syntax errors in the code. Therefore, all the given options are correct.
Rate this question:
4.
What does IDE stand for?
A.
Integrated Development Environment
B.
Integrated Design Environment
C.
Interior Development Environment
D.
Interior Design Environment
E.
None of the above.
Correct Answer
A. Integrated Development Environment
Explanation IDE stands for Integrated Development Environment. This is a software application that provides comprehensive tools and features for software development. It includes a code editor, debugger, compiler, and other tools that help programmers write, test, and debug their code. An IDE integrates all these tools into a single user-friendly interface, making it easier for developers to manage and streamline their development process.
Rate this question:
5.
Which type of project can a developer choose in the New Project dialog box?
A.
Visual Basic Projects
B.
Visual C# Projects
C.
Visual C++ Projects
D.
Both a and b.
E.
All of the above.
Correct Answer
E. All of the above.
Explanation In the New Project dialog box, a developer can choose any type of project, including Visual Basic Projects, Visual C# Projects, and Visual C++ Projects. The option "All of the above" indicates that the developer can select any of these project types.
Rate this question:
6.
Which is not a main component of the Visual Studio IDE?
A.
Solution Explorer
B.
Tool Box
C.
Start Menu
D.
Designer Window
E.
Properties Window
Correct Answer
C. Start Menu
Explanation The Start Menu is not a main component of the Visual Studio IDE. The Solution Explorer, Tool Box, Designer Window, and Properties Window are all essential components that are commonly used in the development process. The Start Menu, on the other hand, is a feature of the operating system and is not directly related to the functionality of the IDE.
Rate this question:
7.
Which does the solution explorer not display?
A.
Form Properties
B.
Reference Folder
C.
Form File
D.
Assemble File
E.
All are part of the solution explorer.
Correct Answer
A. Form Properties
Explanation The solution explorer does not display the Form Properties. The solution explorer is a tool in integrated development environments (IDEs) that allows users to navigate and manage the files and resources in a software project. It typically displays folders, files, and other elements that make up the project. However, the Form Properties, which include settings and attributes specific to a form or user interface, are not displayed in the solution explorer.
Rate this question:
8.
Which is true about the name and text property of a control?
A.
They are the same when the control is first created.
B.
The text property changes to match any changes in the name property.
C.
The name property changes to match any changes in the text property.
D.
They are never the same unless the programmer makes it that way.
E.
They are not allowed to be the same and an error will occur if they are.
Correct Answer
A. They are the same when the control is first created.
Explanation When a control is first created, the name and text properties are set to the same value. This means that the name property and the text property initially have the same content. However, it is important to note that this does not mean they will always remain the same. The text property can be changed independently from the name property, and any changes made to the text property will not automatically update the name property.
Rate this question:
9.
For which task does the IDE provide multiple ways to accomplish the task?
A.
Putting a control on the form
B.
Running the program
C.
Activating the property window for a control
D.
Both a and b.
E.
All of the above.
Correct Answer
E. All of the above.
Explanation The correct answer is "All of the above." The IDE provides multiple ways to accomplish the task of putting a control on the form, running the program, and activating the property window for a control. This allows users to choose the method that is most convenient or comfortable for them, increasing flexibility and efficiency in the development process.
Rate this question:
10.
Which are the standard prefixes for the Button and Combo box controls respectively?
A.
Btn and chb
B.
Btn and cbo
C.
Bto and chb
D.
Bto and cbo
E.
Cmd and cbo
Correct Answer
B. Btn and cbo
Explanation The standard prefixes for the Button and Combo box controls are "btn" and "cbo" respectively. These prefixes are commonly used in programming to indicate the type or purpose of a control. "btn" is short for button, indicating a control that triggers an action when clicked. "cbo" is short for combo box, indicating a control that allows the user to select an option from a dropdown list.
Rate this question:
11.
Which are the standard prefixes for the text box and label controls respectively?
A.
Tex and lbl
B.
Tex and lab
C.
Txb and lbl
D.
txb and lab
E.
Txt and lab
Correct Answer
C. Txb and lbl
Explanation The standard prefixes for the text box and label controls are "txb" and "lbl" respectively. These prefixes are commonly used in programming to provide a consistent naming convention for controls in order to make the code more readable and maintainable. By using these prefixes, it becomes easier to identify and differentiate between different types of controls in the code.
Rate this question:
12.
Which task is accomplished in the Code editor?
A.
Adding forms to the project
B.
Adding controls to the form
C.
Adding event procedures to the form
D.
Both a and b.
E.
All of the above.
Correct Answer
C. Adding event procedures to the form
Explanation In the Code editor, the task of adding event procedures to the form is accomplished. This means that the Code editor allows the user to write and edit code that specifies what actions should be taken when certain events occur in the form. This can include actions such as button clicks, mouse movements, or keyboard inputs. By adding event procedures in the Code editor, the user can customize the behavior and functionality of the form according to their requirements.
Rate this question:
13.
Which is not a feature of a GUI that makes learning a program easy for users?
A.
Online help
B.
WYSIWYG formatting
C.
Dialog boxes
D.
Detailed key strokes and commands
E.
Icons
Correct Answer
D. Detailed key strokes and commands
Explanation Detailed key strokes and commands are not a feature of a GUI that makes learning a program easy for users. GUIs (Graphical User Interfaces) are designed to provide visual representations of functions and operations, allowing users to interact with a program through icons, menus, and graphical elements. Online help, WYSIWYG formatting, dialog boxes, and icons are all features of a GUI that contribute to making learning a program easier for users by providing intuitive and visual cues. However, detailed key strokes and commands are typically associated with command-line interfaces, which require users to memorize specific commands and their corresponding keystrokes.
Rate this question:
14.
An object is composed of:
A.
Properties.
B.
Methods.
C.
Events.
D.
Both a and b.
E.
All of the above.
Correct Answer
E. All of the above.
Explanation The correct answer is "All of the above" because an object can have properties, methods, and events. Properties represent the characteristics or attributes of an object, methods define the behavior or actions that an object can perform, and events are actions or occurrences that can be triggered by the object or by external factors. Therefore, an object can be composed of all three components - properties, methods, and events.
Rate this question:
15.
Which statement about objects is true?
A.
One object is used to create one class.
B.
One class is used to create one object.
C.
One object can create many classes.
D.
One class can create many objects.
E.
There is no relationship between objects and classes.
Correct Answer
D. One class can create many objects.
Explanation One class can create many objects. In object-oriented programming, a class serves as a blueprint or template for creating objects. Multiple objects can be created based on the same class, each having its own unique set of attributes and behaviors. This allows for code reusability and the ability to create multiple instances of the same type of object with different values.
Rate this question:
16.
Which is not true about forms and controls in Visual Basic?
A.
They are pre-built.
B.
They are graphical objects.
C.
New versions of the classes must be created with each project.
D.
Buttons can be created with the drag and drop method.
E.
All of the above are true.
Correct Answer
C. New versions of the classes must be created with each project.
Explanation Forms and controls in Visual Basic are pre-built and are graphical objects. Buttons can indeed be created with the drag and drop method. However, it is not true that new versions of the classes must be created with each project. Classes are reusable templates that can be used across multiple projects without the need to create new versions every time.
Rate this question:
17.
Which is an example of Visual Basic Objects?
A.
Control objects
B.
ASP.NET
C.
ADO.NET
D.
Both a and b.
E.
All of the above.
Correct Answer
E. All of the above.
Explanation The correct answer is "All of the above." This is because control objects, ASP.NET, and ADO.NET are all examples of Visual Basic Objects. Control objects are used to create user interfaces in Visual Basic, ASP.NET is a web development framework that uses Visual Basic, and ADO.NET is a data access technology that is also used in Visual Basic programming. Therefore, all of these options are valid examples of Visual Basic Objects.
Rate this question:
18.
The .Net class library:
A.
Contains over 25,000 classes.
B.
Uses namespaces to manage all of the classes.
C.
Has the System.Form namespace for classes used in Windows-based application.
D.
Both a and b.
E.
All of the above.
Correct Answer
E. All of the above.
Explanation The correct answer is "All of the above." The .Net class library contains over 25,000 classes and uses namespaces to manage all of these classes. Additionally, it includes the System.Form namespace specifically for classes used in Windows-based applications. Therefore, all of the given statements are true.
Rate this question:
19.
Which is not a property of the Common control class?
A.
Show
B.
BackColor
C.
Font
D.
ForeColor
E.
Name
Correct Answer
A. Show
Explanation The property "Show" is not a property of the Common control class. The properties "BackColor", "Font", "ForeColor", and "Name" are commonly used properties in the Common control class to set the background color, font style, foreground color, and name respectively. However, "Show" is not a valid property in this context.
Rate this question:
20.
Which property determines whether a control is displayed to the user?
A.
Hide
B.
Show
C.
Visible
D.
Enabled
E.
Cursor
Correct Answer
C. Visible
Explanation The property that determines whether a control is displayed to the user is the "Visible" property. If the Visible property is set to true, the control will be displayed on the screen. However, if the Visible property is set to false, the control will not be visible to the user.
Rate this question:
21.
The Button control can be activated:
A.
A.) programmatically through the click event.
B.
B.) by clicking the button with the mouse.
C.
C.) with the form’s DefaultButton property.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
D. D.) Both a and b.
Explanation The Button control can be activated both programmatically through the click event and by clicking the button with the mouse. This means that the button can be triggered either by code or by a user interacting with it using the mouse.
Rate this question:
22.
The CancelButton property belongs to which object?
A.
A.) Button
B.
B.) Form
C.
C.) Label
D.
D.) TextBox
E.
E.) Timer
Correct Answer
B. B.) Form
Explanation The CancelButton property belongs to the Form object. This property is used to specify the button on a form that is clicked when the user presses the Esc key. When the CancelButton property is set to a button on the form, pressing the Esc key will trigger the button's Click event. This property is commonly used to provide a convenient way for users to cancel or close a form without clicking on a specific button.
Rate this question:
23.
A click event procedure stud for the label control can be created by:
A.
A.) selecting the object and event from the code editor window’s drop-down boxes.
B.
B.) typing the code in the code editor window.
C.
C.) by double clicking the control.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
E. E.) All of the above.
Explanation The correct answer is e.) All of the above. This is because a click event procedure for a label control can be created by either selecting the object and event from the code editor window's drop-down boxes (option a), typing the code in the code editor window (option b), or by double clicking the control (option c). Therefore, all of these options are valid ways to create a click event procedure for a label control.
Rate this question:
24.
In event-driven programming an event is generated by:
A.
A.) the system.
B.
B.) a user’s action.
C.
C.) the program itself.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
E. E.) All of the above.
Explanation In event-driven programming, an event can be generated by the system, such as a timer or a hardware interrupt, or by a user's action, such as clicking a button or pressing a key. Additionally, the program itself can also generate events, such as when a certain condition is met or a specific function is called. Therefore, all of the options (a, b, c) are correct, as events can be generated by the system, a user's action, or the program itself. Hence, the correct answer is e) All of the above.
Rate this question:
25.
Which is not a common control event?
A.
A.) Click
B.
B.) SingleClick
C.
C.) DoubleClick
D.
D.) MouseMoveMove
E.
E.) MouseDown
Correct Answer
B. B.) SingleClick
Explanation The correct answer is b.) SingleClick. This is not a common control event because typically, when interacting with a control, the common events are Click, DoubleClick, MouseMove, and MouseDown. SingleClick is not a recognized event in most programming languages or frameworks.
Rate this question:
26.
The Tick event is found only in which object?
A.
A.) Form
B.
B.) Button
C.
C.) TextBox
D.
D.) Label
E.
E.) Timer
Correct Answer
E. E.) Timer
Explanation The Tick event is found only in the Timer object. This event is triggered at regular intervals specified by the Interval property of the Timer. It allows you to perform certain actions or update the UI periodically. The Timer control is commonly used in scenarios where you need to execute code repeatedly after a certain time interval.
Rate this question:
27.
The Activated event is found only in which object?
A.
A.) Form
B.
B.) Button
C.
C.) TextBox
D.
D.) Label
E.
E.) Timer
Correct Answer
A. A.) Form
Explanation The Activated event is found only in the Form object. This event is triggered when a form becomes the active form in the application, meaning it gains focus and is ready to receive user input. Other objects like Button, TextBox, Label, and Timer do not have the Activated event.
Rate this question:
28.
The Rnd statement will generate a(n):
A.
A.) decimal value between 0.01 and 1.00.
B.
B.) integer value between 0.01 and 1.00.
C.
C.) decimal value between 0.0 and 1.0.
D.
D.) integer value between 0.0 and 1.0.
E.
E.) decimal value between 0.0 and up to 1.0, but not including 1.0
Correct Answer
E. E.) decimal value between 0.0 and up to 1.0, but not including 1.0
Explanation The Rnd statement in programming is used to generate random numbers. In this case, it will generate a decimal value between 0.0 and up to 1.0, but it will not include 1.0. This means that the generated value can be any decimal number between 0.0 and 1.0, but it will not be exactly 1.0.
Rate this question:
29.
The analysis phase of software development involves:
A.
A.) collecting the requirements about what the program will accomplish.
B.
B.) creating a detailed plan on how the program will accomplish the requirements.
C.
C.) writing the software with a program such as VB.NET.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
A. A.) collecting the requirements about what the program will accomplish.
Explanation The analysis phase of software development involves collecting the requirements about what the program will accomplish. This phase is focused on understanding the needs and goals of the software, gathering information from stakeholders, and defining the functionalities and features that the software should have. It is an important step in the development process as it lays the foundation for the subsequent phases of designing, coding, and testing the software. This phase helps ensure that the final product meets the expectations and requirements of the users.
Rate this question:
30.
Which phase of project development typically costs the most?
A.
A.) Analysis
B.
B.) Design
C.
C.) Implementation
D.
D.) Maintenance
E.
E.) Documentation
Correct Answer
D. D.) Maintenance
Explanation Maintenance typically costs the most in project development because it involves ongoing support, bug fixes, updates, and enhancements to the project. Once the project is implemented and in use, it requires regular maintenance to ensure its functionality and performance. This can involve significant time, effort, and resources, especially if the project is complex or large-scale. Additionally, maintenance costs may increase over time as the project ages and requires more extensive updates and improvements. Therefore, maintenance is the phase that typically incurs the highest costs in project development.
Rate this question:
31.
Which is not an integer data type?
A.
A.) Single
B.
B.) Byte
C.
C.) Short
D.
D.) Integer
E.
E.) Long
Correct Answer
A. A.) Single
Explanation The data types mentioned in options b, c, d, and e (Byte, Short, Integer, and Long) are all integer data types. However, option a (Single) is not an integer data type. Single is a data type used to represent floating-point numbers with single precision, meaning it can store decimal values but not whole numbers.
Rate this question:
32.
Which is a numeric data type?
A.
A.) Floating point
B.
B.) Integer
C.
C.) Boolean
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
D. D.) Both a and b.
Explanation Both floating point and integer are numeric data types. Floating point represents decimal numbers with a fractional part, while integer represents whole numbers without any fractional part. Therefore, both options a and b are correct as they represent different types of numeric data. Option c (Boolean) is not a numeric data type as it represents true/false values. Option e (All of the above) is incorrect as it includes option c which is not a numeric data type.
Rate this question:
33.
Which sequence of char data types is listed from lowest to highest?
A.
A.) a, A, z, Z
B.
B.) a, z, A, Z
C.
C.) A, a, Z, z
D.
D.) A, Z, a, z
E.
E.) z, a, Z, A
Correct Answer
D. D.) A, Z, a, z
Explanation The sequence of char data types is listed from highest to lowest based on their ASCII values. The ASCII value of uppercase letters is lower than lowercase letters, so 'A' comes before 'a'. Similarly, the ASCII value of uppercase letters is lower than lowercase letters, so 'Z' comes before 'z'. Therefore, the correct sequence is A, Z, a, z.
Rate this question:
34.
The Date data type does not hold which type of information.
A.
A.) Seconds
B.
B.) Hours
C.
C.) Days
D.
D.) Months
E.
E.) Quarters
Correct Answer
E. E.) Quarters
Explanation The Date data type in computer programming typically does not hold information about quarters. It is commonly used to store and manipulate information about specific dates, including the day, month, and year. However, quarters are not a standard component of the Date data type.
Rate this question:
35.
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.
E.
All of the above.
Correct Answer
D. Both a and b.
Explanation The correct answer is "Both a and b." The Boolean data type is not unsigned, as it can only have two states: true or false. It is also displayed by the program as yes or no, depending on its state. Therefore, the correct answer is that the Boolean data type is both unsigned and has two states.
Rate this question:
36.
Which is a valid statement for declaring a variable?
A.
A.) Const Form As Integer
B.
B.) Const myForm As Integer
C.
C.) Dim Form As Integer
D.
D.) Dim myForm As Integer
E.
E.) All of the above.
Correct Answer
D. D.) Dim myForm As Integer
Explanation All of the given options (a, b, c, d) are valid statements for declaring a variable. However, option d.) "Dim myForm As Integer" is the correct answer as it follows the standard syntax for declaring a variable in many programming languages, including Visual Basic. The "Dim" keyword is used to declare a variable, followed by the variable name (in this case, "myForm") and the data type (in this case, "Integer").
Rate this question:
37.
VB.Net identifiers:
A.
A.) are case sensitive.
B.
B.) can begin with an underscore.
C.
C.) can begin with a number.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
B. B.) can begin with an underscore.
Explanation In VB.Net, identifiers are case sensitive, which means that uppercase and lowercase letters are treated as distinct characters. Additionally, identifiers can begin with an underscore. However, they cannot begin with a number. Therefore, the correct answer is b.) can begin with an underscore.
Rate this question:
38.
The name of a constant:
A.
Must both begin with a letter and be all upper case.
B.
Does not have to begin with a letter but must be all upper case.
C.
Must begin with a letter but can be upper or lower case.
D.
Does not have to begin with a letter and be either upper or lower case.
E.
None of the above.
Correct Answer
D. Does not have to begin with a letter and be either upper or lower case.
Explanation A constant in programming is a value that does not change during the execution of a program. The name of a constant does not have to begin with a letter and can be either upper or lower case. This means that it can start with a letter or any other character, and it can be written in either uppercase or lowercase letters. The important thing is that the name is consistent throughout the program and does not change.
Rate this question:
39.
The proper operator precedence, from first to last, is:
A.
A.) logical, comparison, and arithmetic.
B.
B.) arithmetic, comparison, and logical.
C.
C.) arithmetic, logical, and comparison.
D.
D.) comparison, arithmetic, and logical.
E.
E.) logical, arithmetic, comparison.
Correct Answer
B. B.) arithmetic, comparison, and logical.
Explanation The proper operator precedence, from first to last, is arithmetic, comparison, and logical. This means that arithmetic operations are evaluated first, followed by comparison operations, and finally logical operations. This order ensures that calculations are performed correctly and comparisons are made in the correct order before logical operations are applied.
Rate this question:
40.
With A = False and B = True, which statement evaluates as True?
A.
A.) A AND A
B.
B.) A AND B
C.
C.) B AND A
D.
D.) B AND B
E.
E.) None are true.
Correct Answer
D. D.) B AND B
Explanation The statement "B AND B" evaluates as True when A is False and B is True because the AND operator returns True only if both operands are True. In this case, both B and B are True, so the statement evaluates as True.
Rate this question:
41.
With A = False and B = True, which statement evaluates as False?
A.
A.) A OR A
B.
B.) A OR B
C.
C.) B OR A
D.
D.) B OR B
E.
E.) None are true.
Correct Answer
A. A.) A OR A
Explanation The statement "A OR A" evaluates as False when A is False. This is because the OR operator returns True if at least one of the operands is True. Since A is False in this case, both operands are False, resulting in the overall statement being False.
Rate this question:
42.
Which operator is evaluated first?
A.
A.) NOT
B.
B.) AND
C.
C.) XOR
D.
D.) OR
E.
E.) They are always evaluated left-to-right.
Correct Answer
A. A.) NOT
Explanation The NOT operator is evaluated first because it has the highest precedence among the given operators. The NOT operator is a unary operator that negates the value of the operand. It is evaluated before any binary operators like AND, XOR, and OR. Therefore, in an expression, the NOT operator will be evaluated first before any other operators.
Rate this question:
43.
The left side of an assignment statement will hold:
A.
A.) a variable.
B.
B.) an object property.
C.
C.) an expression.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
D. D.) Both a and b.
Explanation The left side of an assignment statement can hold both a variable and an object property. In programming, when assigning a value to a variable or an object property, the left side of the assignment statement is where the value is being assigned to. Therefore, the correct answer is d) Both a and b.
Rate this question:
44.
The right side of an assignment statement will hold:
A.
A.) a variable.
B.
B.) an object property.
C.
C.) an expression.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
C. C.) an expression.
Explanation The right side of an assignment statement can hold an expression. An expression is a combination of values, variables, and operators that can be evaluated to produce a result. In an assignment statement, the expression on the right side is evaluated and the result is assigned to the variable or object property on the left side. Therefore, option c) "an expression" is the correct answer.
Rate this question:
45.
Which function will return the monthly payments of a loan?
A.
A.) Pay (Rate, PV, Nper)
B.
B.) Pmt (Rate, Nper, PV)
C.
C.) FV (Rate, Nper, Pmt)
D.
D.) FV (Rate, Nper, PV)
E.
E.) None of the above.
Correct Answer
B. B.) Pmt (Rate, Nper, PV)
Explanation The correct answer is b.) Pmt (Rate, Nper, PV). This function calculates the monthly payments of a loan based on the interest rate, the number of payment periods, and the present value of the loan.
Rate this question:
46.
Which function returns the numbers represented in the string “$56.7”?
A.
A.) Abs
B.
B.) CDbl
C.
C.) Int
D.
D.) Rnd
E.
E.) Val
Correct Answer
B. B.) CDbl
Explanation The CDbl function is used to convert a string to a double-precision floating-point number. In this case, the string "$56.7" represents a number and can be converted to a double-precision floating-point number using the CDbl function.
Rate this question:
47.
What will the function Val ($165.30) return?
A.
A.) 0
B.
B.) 165
C.
C.) 165.30
D.
D.) $165.30
Correct Answer
A. A.) 0
Explanation The function Val ($165.30) will return 0.
Rate this question:
48.
Which function displays a pop-up window?
A.
A.) MsgBox
B.
B.) InputBox
C.
C.) TextBox
D.
D.) Both a and b
E.
E.) All of the above.
Correct Answer
D. D.) Both a and b
Explanation The correct answer is d.) Both a and b. Both MsgBox and InputBox functions can display a pop-up window. MsgBox function is used to display a message in a dialog box while InputBox function is used to prompt the user to enter input in a dialog box.
Rate this question:
49.
Which is true about the prompt argument?
A.
A.) It can be made of multiple values concatenated into one string.
B.
B.) It can include the vbCrLf constant
C.
C.) It can include the ampersand symbol to concatenate strings.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
E. E.) All of the above.
Explanation The correct answer is e.) All of the above. This means that all of the statements a.), b.), and c.) are true about the prompt argument. The prompt argument can be made of multiple values concatenated into one string, it can include the vbCrLf constant, and it can include the ampersand symbol to concatenate strings.
Rate this question:
50.
In order to process a number typed in a TextBox the programmer must:
A.
A.) use the Val function to convert the Text value.
B.
B.) use the CDbl function to convert the Text value.
C.
C.) use the IsNumeric function to convert the Text value.
D.
D.) Both a and b.
E.
E.) All of the above.
Correct Answer
D. D.) Both a and b.
Explanation The correct answer is d.) Both a and b.
The programmer must use either the Val function or the CDbl function to convert the Text value in order to process a number typed in a TextBox. Both functions can be used to convert a string representation of a number into a numeric value that can be used in calculations or other operations. Therefore, using either the Val function or the CDbl function would be necessary to process the number correctly.
Rate this question:
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.