7.

"You win!" never displays. What line is responsible for this error?

1

var score

0

2

onEvent

"button2"

"click"

function

3

var score

score + 1

if

score

5

setText ("display", "You win!");

A. 1

B. 3

ОООО

C. 4

D. 5

Answers

Answer 1

Answer:

The answer is "4".

Explanation:

In this code, on line number 4, it will give the error message, and its correct solution can be defined as follows:

In this code, a variable "score" is declared, that holds a value that is 0, and in the next step, a method "onEvent" is declared that uses a method, and in the if block, it checks the "score" value that is less than 5 and it will print the message.


Related Questions

area of trapezium is 54cmsq if parallel sides are 10cm and 8cm long find the distance between the parallel sides​

Answers

Explanation:

the distance between the parallel sides is the height(h)

formula to find area of trapezium :

Area = 1/2(a+b) h

54 = 1/2 (8+10) h

54=1/2(18) h

54 =9h

54/9=h

h= 6 (ans)

What is one difference between the Simple Gear Train with Same Size Gears and Simple Gear Train with Different Size Gears?

Answers

Answer:

One difference between a Simple Gear train with Same Size Gears and Simple Gear Train with Different Size Gears is the that the number of rotations of both shafts in the Simple Gear Train with Same Size Gears is the same the number of rotations of both shafts in the simple Gear Train with Different Size Gears are different

Explanation:

A simple gear train is one in which each shaft has only one shaft, and the motion of one shaft in transmitted to the other when the gears are in contact

Please help me... I'll give you brainliest
Assignment Guidelines
Write an essay, preferably 500 words, or more summarizing your experience of writing the “Hello world!” program (java). Answer some of the following questions, do you understand how the NotePad text editor and NetBeans work together? Did your program compile cleanly, or did it include errors? Were you able to identify and fix the errors? How many times did you need to fix and rebuild your program before it ran? Remember to spell- and grammar-check your paper and to include a title page.

Answers

Answer:

Explanation:

so u have to wirte a

Kyra needs help deciding which colors she should use on her web page. What can she use to help her decide?
A.Color selection
B.Color theory
C.Proofreading
D.Storyboarding

Answers

i would say color theory is the best answer, as color theory states what colors can and cannot go together, along with general tips on making colors stand out more.

If the radius is 1/2 of the diameter, what is the circumference of each wheel if "Circumference = 2 x 3.14 x radius"


need the help asap please!

Answers

Answer:

pi times the diameter

Explanation:

d = 2r

circumference is 2πr

Discuss the use of spreadsheet software compared to database software to store and manipulate student data.

Answers

Explanation:

Because databases store information more efficiently, databases can handle volumes of information that would be unmanageable in a spreadsheet. Spreadsheets have record limitations whereas databases do not. Compared to databases, spreadsheets can require a large amount of hard-drive space for data storage.

1. Create a naive Bayes model for this data set.



2. What prediction will the naive Bayes model return for the query q=(1,0,0)?

Answers

Answer:

import the GaussianNB class from the scikit-learn naive bayes module using the import statement;

from sklearn.naivebayes import GaussianNB

create the classifier,

clf = GaussianNB()

Then train or fit a section of the dataset (the training set) with the classifier, then predict the label of the test section of the dataset with the provided query "q".

trained = clf.fit( train_features, train_label)

predict = clf.predict(q)

Explanation:

The scikit-learn is a machine learning package in python used to create machine models from datasets. It has several classifiers and regressions algorithms.

The naive baye algorithm is a machine learning class in python used in supervised machine learning to create models used to predict a label given a set of features using a classifier.

In everyday life, we use numbers based on a combination of digits between 0 and 9.
This counting system is known as decimal, or ?
•Denary
•Binary
•Hexidecimal
PLEASE ANSWER I WILL GIVE U BRAINLY!!

Answers

Answer:

denary is the answer thank you

how can a search be narrowed to only search a particular website????
plzzzzzzzzzzzz ill give brainliest

Answers

Answer:

There are a variety of ways to narrow down your search results in a library database. The two most direct ways are to focus your search with more specific keywords and/or to limit by various criteria before or after searching. The more specific you are with your search terms, the more relevant your results will be

Hope it helped!!!

Process of sending signals, interpreting received signals, and adjusting through signals is called

Answers

Answer:

TCP The Transmission Control Protocol

Explanation:

System.out.print();

System.out.print("Enter a number less than
100: ");

num = Expo.enterInt();


for (int i=1; I <= num; I++){

if(num %2!=0)

System.out.println(num + " is odd");
else

System.ouy.println(num +"is even")

}

System.out.println();
}
}

Say I enter 5. The loop makes 5 show up 5 times instead of the numbers 1-5 saying if it's even or odd​

Answers

Answer:

write 2:4$+8*

Explanation:

Other Questions
what is the area of each triangle 24 ft 20 ft When graphing an inequality what two signs are an open circle Number 6 as soon as u can please why chilli has a dicotyledonous root Joseph took out a loan from the bank to purchase a new car. The initial loan amount was for $25,000 with an interest rate of 3.5%. If Joseph takes 5 years to pay off the loan, what is the total amount he will have paid for the car? Prepare a ledger using the three-column form of account. Enter the trial balance amounts into the balance column and then post the adjusting entries. (Post entries in the order of journal entries posted in the previous part of the question. Round answers to 0 decimal places, e.g. 5,275.) Compute the average rate of change of f(x) = 2x - 1 from x1 = 1 to X2 = 3. Describe how ions , water and sugar are obtained and transported through plants y varies Directy withthe squareof x. ify=24 when x=2Find y whenX= 5 The radius, r, of the base is 16 cm. The height, h, is 25 cm. What is the length of the slant height, l, in centimeters? Which of the following would not be the best heading for the subheading "Chocolate cream pie"? A. Desserts B. Chocolate C. Appetizers D. Pies and tarts Simplify 4 to the seventh power over 5 squared all raised to the third power. If the radius is 1/2 of the diameter, what is the circumference of each wheel if "Circumference = 2 x 3.14 x radius" need the help asap please! Someone who can solve all 3 correct gets BRAINLY!!! PLZ HELPP PLZ HELP ILL MARK YOU BRAINLIEST what is the value of the expression?4= 1/8A)1 over 32 B) 1 over 2c) 32D)2 Find the distance between the points (5, 7) and (1, 10). Maya buys a 5-pound bag of sugar. She uses 1 4/8 pounds of the sugar baking cookies. How much sugar does Maya have left? What paragraph is included in an argumentative essay that is not found in an informational essay? introduction conclusion or counterclaim evaluate x2 when x=-2