Week 2 Quiz - 1. Which of the following Visual Basic...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1.   Which of the following Visual Basic statements would correctly display a decimal number in a label, formatted as  currency, and concatenated to a phrase?     Format(dblPayment, "currency")      lblAnswer.text = "The payment is " AND Format(dblPayment, "currency")      2.  When you instantiate an object, you are creating a(n) ________ of a class: Access Specifier      Property Get      Instance  Polymorphism 3.  When a variable in a class is inaccessible by modules outside the class, that variable is considered: Inherited      Public      Private  Instantiated  4.  One feature of Object-Oriented Programming is that all the functionality of the class is self-contained within the  class. This is an example of: Encapsulation  Inheritance      Polymorphism      None of the above  5.  Consider the following Class diagram: Desk + numeric length + numeric width + numeric CalcSurfaceArea( ) Which of the following statements is true about the class? The CalcSurfaceArea( ) method has parameters      The CalcSurfaceArea( ) method receives no parameters  The CalcSurfaceArea ( )method is like a void function      None of the above 6.  Assume you are designing a driver program. You want to get a length from the user and store it in the length  property of an object called objHouse. How would you model this step in pseudo code?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/27/2009 for the course BIS 311 taught by Professor Marshburn during the Fall '08 term at DeVry Cincinnati.

Page1 / 4

Week 2 Quiz - 1. Which of the following Visual Basic...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online