Question

In: Computer Science

VISUAL BASICS Determine if each of the following statements is true or false. (1 point each,...

VISUAL BASICS

Determine if each of the following statements is true or false. (1 point each, 13 total)

True/False Question           

True or False

Several variables with different data types can be declared in a single Visual Basic statement.

Several variables with the same data types can be declared in a single Visual Basic statement.

Run-time errors are always detected by the compiler.

A logic error results in the abrupt termination of program execution.

The Visual Basic IDE informs the programmer of a syntax error.

The Visual Basic IDE informs the programmer of a logic error.

Errors that violate the rules of Visual Basic are called semantic errors.

If not initialized at declaration, Boolean variables are initialized to False.

Modulus division returns the remainder resulting from division.

Constant declarations must be placed in the beginning of a program.

Visual Basic sees no difference between the variables intDefects and intDEFECTS.

Keywords make good variable identifiers.

Private is a keyword.

Solutions

Expert Solution

Answers with explanation:

Several variables with different data types can be declared in a single Visual Basic statement. : False

Several variables with the same data types can be declared in a single Visual Basic statement. : True

explanation:

This would be a compiler error you cannot declare diffternet data type-variables in one statement. The statement indicates for one kind. If the varaibles are of same data type we can declare in one statement.

Run-time errors are always detected by the compiler. : False

explanation:

Compiler errors are detected when there is any syntacital error or illegal writing of statements. Run-time error occurs after the compilation. The Machine that runs the code returns Runtime error if any.

A logic error results in the abrupt termination of program execution. : True

explanation:

Logic error occur while you use the application. Example an input type mismatch from the user. these abort the normal execution of application.

The Visual Basic IDE informs the programmer of a syntax error.: True

explanation:

Yes with built in features the IDE detects the syntactical errors.

The Visual Basic IDE informs the programmer of a logic error. False

explanation:

IDE does not show the logic error. Logic is dependent on the programmer, it is hard for any IDE to determine those logics in general.

Errors that violate the rules of Visual Basic are called semantic errors. : False

explanation:

Semantic errors are such errors that complier compiles them according to the VB rules but doesn't work according to the programmer. When you violate the rules of VB the complier would not understand them.

If not initialized at declaration, Boolean variables are initialized to False. : True

explanation:

The default value of boolean is false.

Modulus division returns the remainder resulting from division : True

explanation:

Yes, As other languages modulus operator returns reminder value.

Constant declarations must be placed in the beginning of a program : False

explanation:

It depends on the user.

Visual Basic sees no difference between the variables intDefects and intDEFECTS : True

explanation:

Visual basic is not a case sensitive language so it sees no difference.

Keywords make good variable identifiers : False

explanation:

It depends on programmer.

Private is a keyword: True

explanation:

private is a keyword in visual basic


Related Solutions

PROBLEM #1:TRUE of FALSE For each of the following statements, determine whether it is true or...
PROBLEM #1:TRUE of FALSE For each of the following statements, determine whether it is true or false. Label “T” if it is true, otherwise label “F”. 1-a. If two distributions have the same moment-generating function, then they are identical at almost all points. For a random variable X, if its moments of order k (k > 0) exist, then its moment generating function is continuously differentiable up to order k. 1-b. LetXbearandomvariablewiththeprobabilitydensityfunctionp(x)=ca/(a+x2) where c, a are positive constants and a...
True or False Determine if the following statements are true or false. _____ 1. A liquid...
True or False Determine if the following statements are true or false. _____ 1. A liquid takes the volume of its container. _____ 2. Particles of amorphous solids have no definite pattern. _____ 3. A beef steak is an example of a crystalline solid. _____ 4. Viscosity causes water to curve upward at the top rim of a glass. _____ 5. There is more gas than any other state of matter in the universe. _____ 6. All states of matter...
True or false: For each of the statements, determine whether it is true or false, then...
True or false: For each of the statements, determine whether it is true or false, then explain in a few sentences why that is the answer. Note: no marks will be given for answers that do not include an explanation. 1. If money stops being a reliable store of value, then it ceases to be useful as a medium of exchange. 2. The gold standard is an improvement over actual gold coinage because it allows the government/central bank to control...
Determine whether each of the following statements is true or false. If the statement is false,...
Determine whether each of the following statements is true or false. If the statement is false, modify and rewrite it so that it is a true statement. a. When a molecule has two, degenerate, “infrared active”, vibrational modes, the two vibrational modes will show absorptions at different frequencies in the infrared spectrum. b. For a given substance, strong intermolecular forces between molecules of the substance can cause peak broadening of some of the absorptions in the infrared spectrum of the...
True or False questions. Determine whether or not each of the following statements is true. If...
True or False questions. Determine whether or not each of the following statements is true. If a statement is true, prove it. If the statement is false, provide a counterexample and explain how it constitutes a counterexample. Diagrams can be useful in explaining such things. a) If the electric potential in a certain region of space is constant, then the charge enclosed by any closed surface completely contained within that region is zero. b) A sphere of radius R is...
True or False questions. Determine whether or not each of the following statements is true. If...
True or False questions. Determine whether or not each of the following statements is true. If a statement is true, prove it. If the statement is false, provide a counterexample and explain how it constitutes a counterexample. Diagrams can be useful in explaining such things. 1. A sphere of radius R is centered at the origin. A total charge Q is uniformly distributed throughout its interior. A ball of radius R/2 centered at the the origin is carved out and...
Determine if each of the following statements is true or false. If it’s true, explain why....
Determine if each of the following statements is true or false. If it’s true, explain why. If it’s false explain why not, or simply give an example demonstrating why it’s false. (A correct choice of “T/F” with no explanation will not receive any credit.) (a) If a system has more equations than variables, its RREF must have a row of 0’s. (b) If a consistent system has more variables than equations, then it must have infinitely many solutions. (c) Consider...
Determine whether each of the following statements is True or False. If True, write a proof....
Determine whether each of the following statements is True or False. If True, write a proof. If False, exhibit a counterexample. 1) If m, n are arbitrary positive integers, then any system of form x ≡ a (mod m) x ≡ b (mod n) has a solution. 2) If m, n are arbitrary positive integers and the system x ≡ a (mod m) x ≡ b (mod n)     has a solution, then the solution is unique modulo mn. Modern Abstract...
Determine whether each of the following statements is True or False. If True, write a proof....
Determine whether each of the following statements is True or False. If True, write a proof. If False, exhibit a counterexample. 1) If m, n are arbitrary positive integers, then any system of form x ≡ a (mod m) x ≡ b (mod n) has a solution. 2) If m, n are arbitrary positive integers and the system x ≡ a (mod m) x ≡ b (mod n) has a solution, then the solution is unique modulo mn. Modern Abstract...
1. Determine if the following statements are true or false. If a statement is true, prove...
1. Determine if the following statements are true or false. If a statement is true, prove it in general, If a statement is false, provide a specific counterexample. Let V and W be finite-dimensional vector spaces over field F, and let φ: V → W be a linear transformation. A) If φ is injective, then dim(V) ≤ dim(W). B) If dim(V) ≤ dim(W), then φ is injective. C) If φ is surjective, then dim(V) ≥ dim(W). D) If dim(V) ≥...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT