REVIEW QUESTIONS FOR CMP 221 (200 LEVEL Bsc. Computer Science)



 REVIEW QUESTIONS FOR CMP 221 (200 LEVEL Bsc. Computer Science)

  • ·    Write the program will accept users name and a message, display the two inputs concatenated in a label. The program should be able to change the format of the output using option buttons and check boxes for selection. The user should be able to format of the output by making it bold, underlined, italized and colored. There will be command buttons to display the message in the label, clear the text boxes and label, print the form and exit. Keyboard access keys will be included for the command buttons, make the display button the default button and make the clear button the cancel button.  Two images of different sizes will be placed on the form such that each time the user clicks on the image it will toggle between the large and small image. We should add a tool tip to the image that says “Click Here”. Follow the sketch below to create the form.
  • Write Visual Basic statement that will compare three numbers and print the largest.
  • Create a small project that contains a check box, a label and command button. Name the command button cmdTest, the check box chkTes  and the lable lblMessage. In the click event for cmdTest, check the value of the check box.  If the check box is currently checked, display “check box is checked” in the lblMessage. 

  • ·         What are objects and properties? How are they related to each other
  • ·         What are the three steps for planning and creating visual basic
  • ·         What is the purpose of  the name property of a control
  • ·         What is the purpose of the caption property of a control
  • ·         What is visual basic event? Give some examples of events
  • ·         What is compile error when does it occur?
  • ·         What is run time error when does it occur?
  • ·         What is logic error, when does it occurs and what might cause it?
  • ·         When should you use text box and a label in a project
  • ·         How does the behavior of option button differ from the check boxes?
  • ·         What is a ToolTip and how can you make a ToolTip appear?
  • ·         What basic statement will clear the current contents of  a text box and a label
Share on Google Plus

About Unknown

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment