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

  Sketch dynamic programming tables for knapsack problem

Sketch Dynamic Programming Tables (one for calculating optimal value and one for keeping track of items used in getting optimal value) for 0/1 Knapsack Problem given below and illustrate your final result.

  1 describe the following named usability design principles

1. describe the following named usability design principles and how you applied them in your coursework? consistency

  Write down the data list which results from the

question 1. what numbers are compared to 72 if sequential search is used 2 5 7 9 11 17 18 21 28 30 45 54 65 69 72. also

  Finding the values of queuefront and queuerear

Assume that queue is a queue type object and the size of the array-implementing queue is 100. Also, assume that the value of the queueFront is 25 and the value of queueRear is twenty-five.

  Write a function with the heading function nonodes

Write a function with the heading: function NoNodes( t : treeptr) : natural whose value is the number of nodes on the tree t.

  Identifying flaws in the design

Identify flaws in design of the Report of Consumers that follows. What assumptions about users and tasks did you make in order to assess this design?

  Find the numberofstudentsin a computer algorithm course

This program will find the numberofstudentsin a computer algorithm course.The program will ask user to 6 integers. The design step will use both flowchart and pseudocode for better understanding.

  Create a work plan

Design a dynamic programming algorithm to find the value of the optimal plan. Implement your algorithm using any programming language you prefer. Describe the recurrence relation used by your algorithm at the top of your program or in a separate f..

  Algorithm to find the second largest integer

Write an algorithm to find the second largest integer in a list of n integers. How many comparisons does your algorithm do in the worst case?

  Write down an algorithm draw a flow chart and write a java

write an algorithm draw a flow chart and write a java program to accept integer values from keyboard and will find and

  Explanation of oracle9i database

Take your current knowledge of Oracle Logs ect and project how a bank may make use of integrity control mechanisms.

  Question 1nbsplist and describe the four steps in polyas

question 1nbsplist and describe the four steps in polyas how to solve it listquestion 2nbsplist the three phases of the

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