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
e-lub [12.9K]
3 years ago
15

Assuming that the user enters 45 and 62 as inputs for n1 and n2, respectively, what is the output of the following code snippet?

Computers and Technology
1 answer:
aev [14]3 years ago
8 0

Answer:

a) 4562

b) (a != b) || (a != c) || (b != c)

(a != b) && (a != c) && (b != c)

!((a == b) && (b == c) && (a == c))

Explanation:

a) The user input of 45 and 62 are received as a String (n1 and n2). Then result concatenate the value of 45 and 62 which is 4562. Result variable uses the concatenate operator '+'.

b)

(a != b) && (a != c) && (b != c) is correct as each of the individual condition must be true before it evaluate to true. Meaning a is not equals to b and a is not equals to c and b is not equals to c.

(a != b) || (a != c) || (b != c) is correct because it evaluate to true if at least one of the condition is satisfied.

!((a == b) && (b == c) && (a == c)) is correct because each individual condition is false and the logical combination of false and false and false equals false, then the negation of false is true

You might be interested in
In the legend of sleeping Hallow what does Ichabod Crane fear the most
ahrayia [7]

Ichabod Crane is terrified of the headless horsemen

3 0
4 years ago
Read 2 more answers
32.
qaws [65]

Answer:

a

Explanation:

hackers access your system unauthorized

5 0
3 years ago
List and describe 3 parts (often referred to as 'elements') of a web page?
Art [367]

Answer:

Content

Design

Development

Explanation:

The design and management of sites is internet explorer; it is the research that takes place over time to make a site look fantastic, work quickly and function well with a smooth user interface.

7 0
3 years ago
Which examples are credible sources that could be used for an essay on the environment? Pick all that apply.
ahrayia [7]

Answer:

article, website run by non profit, website for fed agency

8 0
3 years ago
Hamilton is the best
san4es73 [151]

Answer:

Yes he is

Explanation:

6 0
3 years ago
Other questions:
  • A. True
    6·1 answer
  • _____ rows indicate that there is different formatting for odd and even rows.
    14·1 answer
  • Principles of defensive driving include:
    15·1 answer
  • Translate the following MIPS code to C. Assume that the variables f, g, h, i, and j are assigned to registers $s0, $s1, $s2, $s3
    8·1 answer
  • James, a technician, needs to format a new drive on a workstation. He will need to configure read attributes to specific local f
    5·1 answer
  • In a system using the relocatable dynamic partitions scheme, given the following situation (and using decimal form): Job Q is lo
    5·1 answer
  • _______ is the protocol suite for the current Internet.
    9·1 answer
  • Which of the following is most likely to be considered plagiarism? Using materials from a source without proper citation. Adding
    5·1 answer
  • Vegetable farming is a good source of income explain this statement<br>​
    5·1 answer
  • You looked at the methods used to determine database requirements. Now, research and find a database requirements template. Choo
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!