Question

Question 31 (3 points) 日 ed Multiplication table 1 Sub sample () Dim i As Integer, j As Integer 3 For i = 1 To 5 Step 1 For j = 1 To 5 Step 1 sheet1.cells (i, j).value = 1 * Next j 6 7 Next i 8 End Sub Main Conter What type of error could occur in the code above? Logic error Execution error Syntax error No error 기: Drive DE Mi It is recom for this dev Save

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In the Line No: 5, the statement

Sheet1.Cells(i,j).Value=i*j causes Syntax error

Syntax Error: Sheet1 is not declared.

Sheet1 is declared in the code

Add a comment
Know the answer?
Add Answer to:
Multiplication table Sub sample () Dim i As Integer, j As Integer For i = 1...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The fourth choice D) non of the above For i = 1 To 5 Step 1...

    The fourth choice D) non of the above For i = 1 To 5 Step 1 For j = 3 To 1 Step -1 c (i, j) = Sheet 1.CelIs (5 + i, 6 + j). value Next j Next i Sheet1.Cells (i, j). Value = "DONE" What type of error would occur in the following code? 1) Syntax error 2) Execution error 3) Logic error

  • Public Class Form1     Private Sub CompleteReport_Click(sender As Object, e As EventArgs) Handles CompleteReport.Click         Dim...

    Public Class Form1     Private Sub CompleteReport_Click(sender As Object, e As EventArgs) Handles CompleteReport.Click         Dim room As Double 'Assigns room as double         Dim rate As Double 'Assigns rate as double         Dim room2 As Double 'Assigns room as double         Dim overallRate As Double 'Assigns overall as double         Dim a As Integer 'Assign a as an integer         For a = 1 To 8 'Assign a as an 1 to 8 for all 8 floors             With...

  • Visual Basic: Create an application that simulates a tic tac toe game. The form uses 9...

    Visual Basic: Create an application that simulates a tic tac toe game. The form uses 9 large labels to display the x's and o's. The application should use a two dimensional integer array to simulate the game board in memory. When the user clicks the "New Game" button the application should step throguh the array storing a random number of 0 to 1 in each element. The numer 0 represent the letter o and the number 1 reprsents the letter...

  • Exercise: Pinata pricing You sell three different types of pinatas. Pandas cost $14 each, lambs cost...

    Exercise: Pinata pricing You sell three different types of pinatas. Pandas cost $14 each, lambs cost $12 each, and bunnies cost $9 each. Write a program that computes the total price of an order. Here’s a sample: The program validates the three input fields. They should all be numbers zero or more. If any of them is bad, show one error message, like this: Don’t create your own workbook. Download this one instead. It has some code already there: Private...

  • Project 2 – Memory Match Game Purpose This Windows Classic Desktop application plays a simple matching game. The game si...

    Project 2 – Memory Match Game Purpose This Windows Classic Desktop application plays a simple matching game. The game simulates a card game where the cards a placed face down and the player flips over pairs of cards in an attempt to find matching cards.   Program Procedure Display a 4x4 grid of “face down” cards. Assign the letters A through H randomly to the cards in pairs. Allow the user to click on a card to “flip” it over and...

  • please answer all of them as they are multiple choice. i will give thumbs up sir...

    please answer all of them as they are multiple choice. i will give thumbs up sir QUESTION 41 What is the value for index 4? Dim strArray = New String(){"Nice","Deal","C++","World","CC","Meal"} Nice Meal е Qсс World QUESTION 42 What will be the output for the below snippet of code? Dim index As Integer For index = 1 To 10 Step 2 Console.WriteLine("Index" & index) Next 1,2,3,4,5,6,7,8,9 No output because of an error 2,4,6,8,10 1,3,5,7,9 QUESTION 43 To resize an array, what...

  • Visual Basic 2015: Extra 18-1 Use inheritance with the Inventory Maintenance Application Source Code: 1. frmNewItem.vb...

    Visual Basic 2015: Extra 18-1 Use inheritance with the Inventory Maintenance Application Source Code: 1. frmNewItem.vb Public Class frmNewItem Public InvItem As InvItem Private Sub frmNewItem_Load(sender As Object, e As EventArgs) Handles MyBase.Load Me.LoadComboBox() End Sub Private Sub LoadComboBox() cboSizeOrManufacturer.Items.Clear() If rdoPlant.Checked Then cboSizeOrManufacturer.Items.Add("1 gallon") cboSizeOrManufacturer.Items.Add("5 gallon") cboSizeOrManufacturer.Items.Add("15 gallon") cboSizeOrManufacturer.Items.Add("24-inch box") cboSizeOrManufacturer.Items.Add("36-inch box") Else cboSizeOrManufacturer.Items.Add("Bayer") cboSizeOrManufacturer.Items.Add("Jobe's") cboSizeOrManufacturer.Items.Add("Ortho") cboSizeOrManufacturer.Items.Add("Roundup") cboSizeOrManufacturer.Items.Add("Scotts") End If End Sub Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click If IsValidData() Then InvItem = New InvItem(CInt(txtItemNo.Text),...

  • Sample Code I int j = 3; int k = j; if (k > 22) break...

    Sample Code I int j = 3; int k = j; if (k > 22) break 7 9 while (k 21); 10 System. out.print (k>; Referring to the sample code above, what is the value of variable k on line 10? 20 Question Choice 1 Choice 2 Choice 3 21 23 Choice 4 Choice 5

  • Comments used to document code should: A. be used as little as possible B. be insightful...

    Comments used to document code should: A. be used as little as possible B. be insightful and explain what the instruction's intention is C. only be included in code that is difficult to understand D. be used to define variables whose names are not easy to understand E. not be included with the program 2 points    QUESTION 2 The main method for a Java program is defined by: A. public static main( ) B. public static main(String[ ] args);...

  • An application contains the Structure statement shown here. Structure MyFriend Public strName As String Public strBirthday...

    An application contains the Structure statement shown here. Structure MyFriend Public strName As String Public strBirthday As String End Structure Create a VB.Net Windows Form application named MyFriend_YourName. Change the name property of your form to frmMain. Add the MyFriend Structure to the public class frmMain. Create 2 text boxes txtName and txtBirthday, and a button with the name property changed to btnExecute and the text property changed to Execute. In the button click event, write a Dim statement that...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT