1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nataly [62]
4 years ago
6

Which of the following code correctly registers a handler with a button btOK?a. btOK.setOnAction(e -> System.out.println("Han

dle the event"));b. btOK.setOnAction((e) -> System.out.println("Handle the event"););c. btOK.setOnAction((ActionEvent e) -> System.out.println("Handle the event"));d. btOK.setOnAction(e -> {System.out.println("Handle the event");});
Computers and Technology
1 answer:
Bad White [126]4 years ago
4 0

Answer:

The correct answer is C:

btOK.setOnAction((ActionEvent e) -> System.out.println("Handle the event"));

Explanation:

The button produces an action once clicked. The setOnAction method indicates what will happen when the button is clicked. Action Event is a type of event that gets processed by EventHandler, which provides the action to be performed by clicking the button (printing out "Handle the event").

You might be interested in
Janice is making her resume in which section should she include information about her previous employers , positions held , and
Volgvan

Generally, Janice should post information about her past employment in the Experience section, also often called as Professional Experience. The information that she should include is the name of the organization or company which previously employed her, her positions there, length of each position, and a description of what she did in the position.

4 0
3 years ago
In programming languages, ____ is used as a mnemonic representation for the program instruction’s memory address.
Alecsey [184]

Answer:

Assembly language

Explanation:

Assembly language writes instructions in human letters. Every machine language instruction has a corresponding assembly language instruction that means exactly the same thing. Assembly language uses a symbolic form of a program which are capable of:

- readable by human beings (+/-)

- constants, addresses, and names of symbolic instructions

- arithmetic during assembly - calculations of addresses, constants

- synthetic instructions (not supported by our assembler)

- expansion of macroinstructions (not supported by our

assembler)

- assembly instructions (pseudo-instructions)

• memory allocation

• memory initialization

• conditional assembly (not supported by our assembler)

3 0
3 years ago
The Learning Journal is a tool for self-reflection on the learning process. The Learning Journal will be assessed by your instru
eimsori [14]
Any song recommendations u got for me? Thanks for the points!!!!
5 0
3 years ago
Using a while loop, create an algorithm extractDigits that prints the individual digits of a positive integer.
sergiy2304 [10]

Answer:

The algorithm is as follows

1. Start

2. Declare Integer N

3. Input N

4. While N > 0:

4.1    Print(N%10)

4.2   N = N/10

5. Stop

Explanation:

This line starts the algorithm

1. Start

This declares an integer variable

2. Declare Integer N

Here, the program gets user input N

3. Input N

The while iteration begins here and it is repeated as long as N is greater than 0

4. While N > 0:

This calculates and prints N modulus 10; Modulus of 10 gets the individual digit of the input number

4.1    Print(N%10)

This remove the printed digit

4.2   N = N/10

The algorithm ends here

5. Stop

<u>Bonus:</u>

The algorithm in Python is as follows:

<em>n = 102</em>

<em>while n>0:</em>

<em>     print(int(n%10))</em>

<em>     n= int(n/10)</em>

<em>    </em>

8 0
3 years ago
There is no reason to put comments in our code since we knew what we were doing when we wrote it. TRUE
Citrus2011 [14]

Answer:

False: There are reasons to put comments in our code. We should have the habit of that.

Explanation:

  • sometimes when we start to debug our program due to some error in execution, we don't recognize properly which code we have written for what purpose.
  • if we distribute the code to others as a team, others get the intention of our code more clearly due to comments.
  • The code can be reused taking it's sections to form an other program, where the comments has a vital role.
6 0
3 years ago
Other questions:
  • Which three of the following are requirements for receiving federal financial aid for college education?
    14·2 answers
  • numbers that the user inputs. You must use JoptionPane to input the three numbers. A first method must be called and used to dev
    13·1 answer
  • Caroline has been asked to find a standard to guide her company’s choices in implementing information security management system
    13·1 answer
  • Which of the following is least likely checked by the comprehensive component monitor?
    7·1 answer
  • A(n) _____ is essentially a flash-based replacement for an internal hard drive.
    13·1 answer
  • Which can be inserted using the insert panel in dreamweaver cc?
    9·1 answer
  • What is the film format that many filmmakers feel is superior to any other format?
    13·1 answer
  • Write a program that prompts the user to enter the center and a point on the circle. The program should then output the circle’s
    9·1 answer
  • Create a parent class called Shape with width and height parameters of type double and a function that returns the area of the s
    12·1 answer
  • Dispositivo de computo
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!