The following statement contains what type of error?

txtAverage.Txt = CStr(CDbl(txtNum1.Text) + CDbl(txtNum2.Text) / 2)
(A) a syntax error only
(B) a logic error only
(C) both a syntax error and a logic error
(D) no errors


(C) name1.Substring(0, 5) & name2.Substring(6, 3)

Computer Science & Information Technology

You might also like to view...

What mistake prevents the following class declaration from functioning properly as an abstract class?

class Shape { public: virtual double print() const; double area() const { return base * height; } private: double base; double height; }; a. There are no pure virtual functions. b. There is a non-virtual function. c. private variables are being accessed by a public function. d. Nothing, it functions fine as an abstract class.

Computer Science & Information Technology

The ____ Tool is used to draw fills.

a. Fill b. Brush c. Color d. Pattern

Computer Science & Information Technology

Most states in the United States have data breach notification statutes that require corporations to take specific steps if a data breach exposes personally identifiable information.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In a category of games known as ________, millions of players connect to various servers to team up with other players in very large virtual worlds.

A. P2P B. MMORPGs C. wikis D. MOOCs

Computer Science & Information Technology