Answer the following statements true (T) or false (F)
1. You insert comments in your programs to document and improve the readability of your code.
2. Syntax errors are indicated only when you compile a program.
3. Visual Basic is case sensitive; therefore, an identifier named Pencil is not the same as one
named pencil.
4. All variables must be declared with a name and a data type before they can be used in a
program.
5. A declaration may declare only one variable at a time.
1. True.
2. False. Visual Studio will identify some syntax errors while you are writing code. These errors will be automatically underlined by a jagged blue line in the IDE.
3: False. Visual Basic is not case sensitive meaning the identifier Pencil is the same as pencil.
Answer: True.
5: False. Several variables of the same type may be declared in one declaration.
You might also like to view...
class rectangleType{public:void setLengthWidth(double x, double y);//Postcondition: length = x; width = y;void print() const;//Output length and width;double area();//Calculate and return the area of the rectangle;double perimeter();//Calculate and return the parameter;rectangleType();//Postcondition: length = 0; width = 0;rectangleType(double x, double y);//Postcondition: length = x; width = y;private: double length; double width;}; Consider the accompanying class definition, and the declaration:rectangleType bigRect; Which of the following statements is correct?
A. rectangleType.print(); B. rectangleType::print(); C. bigRect.print(); D. bigRect::print();
Name the JavaScript event where visitor double-clicks specified area.
a. onfocus b. ondblclick c. onkeypress d. onkeyup e. onmousedown