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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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