Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
Which of the following assigns the number of characters in the strAddress variable to the intNum variable? a. intNum = strAddress.Length b. intNum = strAddress.LengthOf c. intNum = Length(strAddress) d. intNum = LengthOf(strAddress)
Which of the following statements adds together the contents of the intScore1 and intScore2 variables and then multiplies the sum by 2, assigning the result to the intTotal variable?
a. intScore1 + intScore2 * 2 = intTotalb. (intScore1 + intScore2) * 2 = intTotal
c. intTotal = intScore1 + intScore2 * 2d. none of the above
If the strWord variable contains the string “spring”, which of the following statements assigns the letter r to the strLetter variable? a. strLetter = strWord.Substring(2) b. strLetter = strWord(2) c. strLetter = strWord(2, 1) d. All of the above.
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Professor Zak allows students to drop the four lowest scores on the ten 100-point quizzes she gives during the semester. Design an application that accepts a student name and 10 quiz scores. Output the student's name and 10 quiz scores. Output the student's name and total points for the student's six highest-scoring quizzes. Modify the application so that the student's mean and median scores on the six best quizzes are displayed.arrow_forwardWhich of the following statements assigns the first four characters in the strItem variable to the strWarehouse variable? a. strWarehouse = strItem.Assign(0, 4) b. strWarehouse = strItem.Assign(1, 4) c. strWarehouse = strItem.Substring(0, 4) d. strWarehouse = strItem.Substring(1, 4)arrow_forwardWhich of the following statements decreases the intNum variable’s value by 5? a. intNum = intNum – 5 b. intNum –= 5 c. intNum = intNum + –5 d. all of the abovearrow_forward
- Which of the following statements increments the decTotal variable’s value by the value stored in the decBonus variable? a. decBonus += decTotal b. decBonus =+ decTotal c. decTotal += decBonus d. decTotal =+ decBonusarrow_forwardWhich of the following methods can be used to determine whether the strRate variable contains the percent sign? a. blnResult = strRate.Contains("%") b. intResult = strRate.IndexOf("%") c. intResult = strRate.IndexOf("%", 0) d. All of the above.arrow_forwardWhich style of variable must be used to operate on an object in code?arrow_forward
- Which of the following data types is appropriate for a variable that will storealphanumeric text? a. Alpha b. AlphaNum c. String d. Textarrow_forwardWrite an assignment statement that increments the intTotal variable by the contents of the intQuantity variable.arrow_forwardIndicate whether each of the following is a legal variable name. If it is not,explain why. 2ndPlaceNamearrow_forward
- Write a statement that uses the Insert method to change the contents of the strState variable from “Ky” to “Kentucky”arrow_forwardProfessor Zak allows students to drop the four lowest scores on the ten 100-point quizzes she gives during the semester. Design an application that accepts a student name and 10 quiz scores. Output the student's name and 10 quiz scores. Output the student's name and total points for the student's six highest-scoring quizzes.arrow_forwardWhich of the following is a wrong statement? Variable can change the value O variable can be used before giving its value O Variable is a container that store an value Variable can have different types of valuesarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning