Which actions would be inappropriate for program to take

Assignment Help Data Structure & Algorithms
Reference no: EM131135898

1. If the user is typing data into a TextBox and types an invalid character, which of the following actions would be inappropriate for the program to take?

a. Change the TextBox's background color to indicate the error.
b. Silently discard the character.
c. Display an asterisk next to the TextBox to indicate the error.
d. Display a message box telling the user that there is an error.

2. If the user types an invalid value into a TextBox and moves focus to another TextBox, which of the following actions would be inappropriate for the program to take?

a. Force focus back into the TextBox that contains the error.
b. Change the first TextBox's background color to indicate the error.
c. Change the first TextBox's font to indicate the error.
d. Display an asterisk next to the first TextBox to indicate the error.

3. If the user enters some invalid data on a form and then clicks the form's Accept button, which of the following actions would be appropriate for the program take?

a. Change the background color of TextBoxes containing invalid values to indicate the errors.
b. Display a message box telling the user that there is an error.
c. Do not close the form until the user corrects all the errors.
d. All the above.

4. Which of the following methods returns true if a regular expression matches a string?

a. Regex.Matches
b. Regex.IsMatch
c. Regexp.Matches
d. String.Matches

5. Which of the following regular expressions matches the Social Security number format ###-##-#### where # is any digit?

a. ^###-##-####$
b. ^\d3-\d2-\d4$
c. ^\d{3}-\d{2}-\d{4}$
d. ^[0-9]3-[0-9]2-[0-9]4$

6. Which of the following regular expressions matches a username that must include between 6 and 16 letters, numbers, and underscores?

a. ^[a-zA-Z0-9_]?{6}$
b. ^[a-zA-Z0-9_]{6,16}$
c. ^[A-Z0-9a-z_]?$
d. ^\w{16}?$

Reference no: EM131135898

Questions Cloud

About affirmative action programs in colleges-universities : Which of the following is NOT true about affirmative action programs in colleges and universities?
Which of these do you believe to be the most effective : Summarize the following theories: just in time (JIT), Toyota Production System (TPS), and Lean. How are these concepts related? Describe the advantages and disadvantages for using each of these concepts at the company presented in the case study.
Considering adding a group term life insurance plan : Your employer is considering adding a group term life insurance plan to the employee benefit package. The premium cost would be fully paid by the organization. Explain how this will impact the employees' net pay and the employer's payroll costs.
Find the waiting lines new operating conditions : Juhn and Sons Wholesale Fruit Distributors employ one worker whose job is to load fruit on outgoing company trucks. Trucks arrive at the loading gate at an average of 26 per day, or 3.25 per hour, according to a Poisson distribution. The worker loads..
Which actions would be inappropriate for program to take : If the user types an invalid value into a TextBox and moves focus to another TextBox, which of the following actions would be inappropriate for the program to take?
Performing the calculations behind financial analysis : The purpose of this project is to help you develop skills not only in performing the calculations behind financial analysis but in interpreting the numbers as well.
What is the capital gain or loss on the sale of the truck : The truck in Example 5-4 was sold for $4,000 at the end of the fifth year. What is the capital gain or loss on the sale of the truck?
How does the autoshop team plan to use the money : How does the Autoshop team plan to use the money from this round of investing? - How does the "birthday party" focus of their business model likely affect the speed at which they earn revenues?
Find the average number of trucks in unloading system : The wheat harvesting season in the American Midwest is short, and most farmers deliver their truckloads of wheat to a giant central storage bin within a two-week span. Because of this, wheat-filled trucks waiting to unload and return to the fields ha..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Creating an asp.net application

Design an ASP.NET application using Visual Studio .NET 2003. Your application with at least one web form and 5-different types of controls.

  Section 1 aims objectives and possible outcomesprovide

section 1 aims objectives and possible outcomes.provide a clear statement of the aims and objectives of the data

  Question 1write the selection sort algorithm as a template

question 1write the selection sort algorithm as a template function using the less than operator to compare two

  How can we distinguish threads from real children links

How can we distinguish threads from real children links - Design the routines to perform insertion and deletion into a tree threaded in the manner described above.

  Identifying the location of rubric objectives

Code Comments are used to identify the location of rubric objectives, Code Formatting is used to raise the readability of the HTML Code.

  How output of leaky bucket policer can be fed in second

Illustrate how output of the leaky bucket policer can be fed into second leaky bucket policer so that two leaky buckets in series police average rate, peak rate, and burst size.

  Describe a most efficient algorithm to remove all duplicate

You are given an unsorted list containing integer values with duplicates. Describe a most efficient algorithm to remove all duplicates from this list. Derive the time complexity (Big O) for your algorithm.

  Construct an entity-relationship model for the database

Construct an entity-relationship (ER) model for the database. Make sure you include in your model details of entities, relationships, attributes, keys and limits in participation.

  Irected graph g = (v,e) in which edges that leave the source

Suppose that we are given a weighted, directed graph G = (V,E) in which edges that leave the source vertex s may have negative weights, all weights are nonnegative, and there are no negative-weight cycles. Argue that Dijkstra's algorithm correctly fi..

  Divide-and-conquer two-dimensional closest-pair algorithm

consider the version of the divide-and-conquer two-dimensional closest-pair algorithm in which, instead of presorting input set P, we simply sort each of the two sets Pl and Pr in nondecreasing order of their y coordinates on each recursive call

  Efficient algorithm that achieves goal using base station

So that every house is within four miles of one of the base stations. Write efficient algorithm that achieves this goal, using as few base stations as possible.

  What is the time complexity of your algorithm

You may describe your algorithm using pseudo-code, but you must describe youralgorithm in English. What is the time complexity of your algorithm?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd