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
KengaRu [80]
3 years ago
15

4. If d is a double variable with a value of 7.5, which of the following statements results in a (1 point) value of 7 being assi

gned to x?
int x = (int)d;
int x = d;
int x = int(d);
double x = d;​
Computers and Technology
1 answer:
nignag [31]3 years ago
7 0

Answer:

int x = (int)d

Explanation:

(int) means the largest integer value smaller than <value>.

which is 7.

Only the first choice has the correct syntax.

The second choice sets an int as a double, which does not work.

The third one shows int as a function, d as a parameter, which is not allowed, as int is a keyword in java

For the last choice, you are setting x to 7.5 not 7.

So int x = (int)d is correct.

You might be interested in
A ___________ organizes related commands together, under a tab.
notsponge [240]
A menu bar organizes related commands together, under a tab.
So the answer is <span>b. menu bar</span>
8 0
3 years ago
An array of integers can be assigned to a memory address in the ...
fenix001 [56]

Answer:

A :)

Explanation:

8 0
2 years ago
Which phrases in the passage provide clues that trifling means "silliness” or "insignificance”? Check all that apply.
Alla [95]

Answer:

a c e

Explanation:

8 0
3 years ago
The space that helps you organize your PowerPoint or Web Page is called ______.
sergeinik [125]

Answer:

the internet

Explanation:

cause I said

8 0
3 years ago
A person who breaks into a computer, network, or online site is called
dybincka [34]

Answer:

B: Hacker

Explanation:

literally anything else aren't even real things besides hacker.

5 0
3 years ago
Read 2 more answers
Other questions:
  • What are smart mobile devices?
    6·2 answers
  • Please draw a diagram of a complete graph with 5 vertices (K5), its adjacency matrix and adjacency list representations.
    5·1 answer
  • Which of the following would be considered a primary source of information?
    6·1 answer
  • Which of the following statements holds true for the term "html"? It refers to a system that connects end users to the Internet.
    10·2 answers
  • A(n) ________ is a specific type of computer program that manages all programs on a computer.
    8·1 answer
  • Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program n
    10·1 answer
  • Kris is the project manager for a large software company. Which part of project management describes the overall project in deta
    11·2 answers
  • Sebutkan contoh komputer analog, komputer digital, dan komputer hybrid
    9·1 answer
  • true Or False 1. Computer Time is located in Start Menu, b. Ms Word is developed by Adobe Corporation c. Ms-Excel is Presentatio
    9·1 answer
  • It would be at least two decades before some of
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!