Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Question 1. Locate an animated .tif file on the Web. Create a project named Animated with a Form that contains a PictureBox. Display three different messages on a Label-one when the user's mouse is over the PictureBox, one when the mouse is not over the PictureBox, and one when the user clicks the PictureBox.

Question 2. Emma's Custom Embroidery sells shirts with detailed embroidered images. Emma allows users to select the color for a shirt, but she allows only specific embroidery designs with each shirt color. Create a project named EmmasEmbroidery that allows a user to choose one of four shirt colors from a ListBox-white, black, red, or blue. When the user selects a shirt color, the program should display a second ListBox that contains the following embroidery design choices:

- White shirt-peacock, palm tree, or rose
- Black shirt-race car, star, or moon
- Red shirt-palm tree or moon
- Blue shirt-peacock or moon

After the user selects an embroidery design, the program should display a congratulatory message on a Label indicating that the choice is a good one, and the design ListBox also becomes invisible. If the user makes a new selection from the shirt color ListBox, the congratulatory message is invisible until the user selects a complementary design.

Hint: You can remove the entire contents of a ListBox using the Items.Clear() method, as in this.listBox1.Items.Clear();.

Question 3. Create a project named GuessANumber with a Form that contains a guessing game with five RadioButtons numbered 1 through 5. Randomly choose one of the RadioButtons as the winning button. When the user clicks a RadioButton, display a message indicating whether the user is right.

Add a Label to the Form that provides a hint. When the user's mouse hovers over the label, notify the user of one RadioButton that is incorrect. After the user makes a selection, disable all the RadioButtons.

Question 4. Create a project named PickLarger with a Form that contains two randomly generated arrays, each containing 100 numbers. Include two Buttons labeled "1" and "2". Starting with position 0 in each array, ask the user to guess which of the two arrays contains the higher number and to click one of the two buttons to indicate the guess. After each button click, the program displays the values of the two compared numbers, as well as running counts of the number of correct and incorrect guesses. After the user makes a guess, disable the Buttons while the user views the results. After clicking a Next Button, the user can make another guess using the next two array values. If the user makes more than 100 guesses, the program should reset the array subscript to 0 so the comparisons start over, but continue to keep a running score.

Answer the following questions-

1. The EventArgs class contains a static field named __________.
a. Empty
b. Text
c. Location
d. Source

2. When creating events, you can use a predefined delegate type named __________ that is automatically provided by the .NET Framework.
a. EventArgs
b. EventHandler
c. EventType
d. Event

3. Which of the following is not a predefined Control event?
a. MouseEnter
b. Click
c. Destroy
d. TextChanged

4. A single Control can raise __________ event(s).
a. one
b. two
c. five
d. any number of

5. When you create Forms with Controls that raise events, an advantage to creating the code by hand over using the Visual Studio IDE is __________.
a. you are less likely to make typing errors
b. you save a lot of repetitious typing
c. you are less likely to forget to set a property
d. you gain a clearer understanding of the C# language

6. When a Form contains three Controls and one has focus, you can raise an event by __________.
a. clicking any Control
b. pressing Enter
c. either of these
d. none of these

7. The TabStop property of a Control is a(n) __________.
a. integer value indicating the tab order
b. Boolean value indicating whether the Control has a position in the tab sequence
c. string value indicating the name of the method executed when the Control raises an event
d. delegate name indicating the event raised when the user tabs to the Control

8. The TabIndex property of a Control is a(n) __________.
a. integer value indicating the tab order
b. Boolean value indicating whether the Control has a position in the tab sequence
c. string value indicating the name of the method executed when the Control raises an event
d. delegate name indicating the event raised when the user tabs to the Control

9. The Control that causes an event is the __________ argument to an event method.
a. first
b. second
c. third
d. fourth

10. Which of the following is true?
a. A single event can be generated from multiple Controls.
b. Multiple events can be generated from a single Control.
c. Both of the above are true.
d. None of the above are true.
(Farrell 668-669)

Farrell, Joyce. Microsoft Visual C# 2012: An Introduction to Object-Oriented Programming, 5th Edition. Cengage Learning, 20130304. VitalBook file.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M92046965
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Programming Language

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Question 1 what is a computer program what is structured

Question: 1. What is a Computer program? What is structured programming? 2. What is modular programming? Why we use it? 3. Please evaluate Sin (x) by infinite series. Then write an algorithm to implement it with up to th ...

Overviewthis tasks provides you an opportunity to get

Overview This tasks provides you an opportunity to get feedback on your Learning Summary Report. The Learning Summary Report outlines how the work you have completed demonstrates that you have met all of the unit's learn ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As