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
Vika [28.1K]
3 years ago
14

Write down the result of each expression in the output column and specify the datatype of the result.Datatype should follow the

Java Standards. If the output is a String, surround it with " ";if the output is char surround it with ‘ ’. Floats should have an ‘f’ or ‘F’ at the end, longs should have an ‘L’ or ‘l’ at the end (generally avoid using lowercase ‘l’ because it can be confusing).
Computers and Technology
1 answer:
sergiy2304 [10]3 years ago
3 0

Answer:

Kindly check the explanation section.

Explanation:

Below are the expression given in the question and the corresponding output and Datatype.

(1). Expression = 7/2 + 9.2/2.

Output = 7.6, Datatype = double

(2). Expression = 3.4 + 2 5 f.

Output = 5.9, Datatype = double.

(3). Expression = "whale" . Substring (2,5).

Output = "ale" , Datatype = string.

(4). Expression= (int) 9.2 + 6.0 f.

Output = 15.0 f, Datatype = float.

(5). Expression = (2 <= 1) && (5! = 2) || (8 + 5!= 13).

Output = false, Datatype = boolean

(6) Expression =1.5 f == 1.5?.

Output: “false” , Datatype : “true ”

Output = “false”,

Datatype= String.

(7). Expression = “joey”.charAtt(4).

Output = error, Datatype = error“.

(8). Expression = madmax”.

indexOf(“a”) + 7.

Output: 8 , Datatype = int.

(9). Expression = 2 + 3 + “catdog” + 1 + 2.

Output = “5catdog12”, Datatype = String.

(10). Expression = String.format(“%3.3f”,7.89672).

output = “7.897”, datatype = String.

(11). Expression = “captain”.indexOf(“a”, 2).

Output = 4, datatype = int.

(12). true ? ++3: 3++.

Output = error, dataty = error.

(13). Expression = new String[]{“tony”,“josh”}[0].

Output = “tony”, Datatype = String.

(14). Expression = “patrick”.substring(2) +“lucky”.substring(4).

Output = “tricky”, Datatype = String.

(15). Expression = “popFizz”.indexOf(“o”) + 2.4+ 6L.

Output9.4, Datatype = double.

(16). Expression = “pizza”.indexOf(“z”).

Output = 2, Datatype = int.

You might be interested in
Exampels of semantic tags ?​
spayn [35]
A semantic element clearly describes its meaning to both the browser and the developer.Examples of non-semantic elements: and <span> - Tells nothing about its content. Examples of semantic elements: ,, and - Clearly defines its content.</span>
4 0
3 years ago
Interior gateway protocols are used by routers in order to share information within a single
jenyasd209 [6]
Interior gateway protocols (IGP)are used by routers in order to share information within a single autonomous system. IGP<span> is used for exchanging routing information between gateways (commonly routers). </span><span>An autonomous system (AS) is a network or a collection of networks that are all managed and supervised by a single entity or organization.</span>
6 0
3 years ago
Caleb is working on a simple logic-based program to simulate a game of tic-tac-toe. Which programming language would he use?.
noname [10]
The logic required to write a tic-tac-toe game can be achieved using any third-generation programming language, and there are many to choose from, for example, Python, Fortran, C++ etc. For a simple program where it is easy to add graphic objects, a fourth-generation programming language may be more suitable.
6 0
4 years ago
Read 2 more answers
The new Director of Information Technology has asked you to recommend a strategy to upgrade the servers on their network. Recomm
borishaifa [10]

Answer:

servers to be upgraded are : APPLICATION AND LOAD BALANCING SERVERS

servers still appropriate to use : DNS AND DHCP SERVERS

Explanation:

The recommendations to be made in line with what the new director of information is asking for includes :

1 ) For the servers to be upgraded : The servers that requires upgrades  includes the APPLICATION SERVER and LOAD BALANCING SERVER. this is because these two servers are critical to the growth/expansion of any business, and they handle large volume of data

Recommendations on the servers upgrade includes:

Hardware : 2.3 GHz Intel Xeon Gold 5118 12-Core

CPU chip set :  Socket: FCLGA3647, Type: NSBM

Speed : processor 3.2 GHz

caching:   > 100 Gb

2)  For servers that do not necessarily need to be upgraded : The servers that do not need immediate upgrade are DNS and DHCP

6 0
3 years ago
Philip is thinking about customizing his motorcycle. A paint job, saddlebags, and a radio would cost $600. His motorcycle is old
Vikki [24]

Answer:

He will temporarily have less money in his bank account is the correct answer.

Explanation:

Philip is considering customizing his motorcycle. A saddlebags, a paint job, and a radio will cost $600. His motorcycle is vintage, so he already realized maybe sometime in the past two years he would required to get any other bike. To analyze the options, he builds a cost-benefit analysis table. He considers this, he might have less funds at that moment in his banking account.

7 0
4 years ago
Other questions:
  • "which programming language is used within html documents to trigger interactive features?"
    10·1 answer
  • Use the worksheet _____ tools in the lower left-hand corner of the Excel screen to scroll through the sheet tabs.
    14·2 answers
  • ________ is a remote access client/server protocol that provides authentication and authorization capabilities to users who are
    10·1 answer
  • The following is the pseudocode for which type of algorithm? For start = each array subscript, from the first to the next-to-las
    6·1 answer
  • What does the action tool allow you to do in Microsoft Powerpoint?
    15·1 answer
  • Java: Programming Question: Reverse OrderWrite a program that reads ten integers into an array; define another array to save tho
    10·1 answer
  • Which statement describes a biotic factor interacting with the environment?
    5·1 answer
  • What technological development happened most recently?
    12·2 answers
  • It is used to loosen or tighten slotted screws. * 1 point A. Hex Driver B. Torx Screwdriver C. Philips Head Screwdriver D. Flat
    13·1 answer
  • Evaluation, formatting, expanding/decoding, distillation/reduction, and assessment are examples of ________ computing operations
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!