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
Lisa [10]
4 years ago
13

Is the expression a || b the same as a && !b

Computers and Technology
2 answers:
mr_godi [17]4 years ago
8 0
Most definitely not! A || B is A OR B, if A is true OR B is true, the statement will be true. A && !B is A AND !B, only if A is true AND B is false will the statement be true. With OR, B can be true and the statement will pass.
Maru [420]4 years ago
4 0
You could test it
case (1)
a =true, b=false
true || false    = true
true && !false = true
PASSED! 

a=false b= true
false || true     = true
false && !true = false
FAILED!

also try a=true, b =true

so the it is not the same
You might be interested in
Which type of network medium is used by an integrated services digital network adapter?
user100 [1]
ISDN uses a two-wire telephone line.
8 0
4 years ago
Write the definition of a method printGrade, which has a char parameter and returns nothing.The method prints on a line by itsel
o-na [289]

Answer:

The answer to this question can be given as:

Method Definition:

void printGrade(char x) //declare method with parameter.  

{

 

//method body

System.out.println("Grade: "+x);

 //print value in new line.

}

Explanation:

In the above method definition, we define a method that's name is already given in the question that is printGrade. This method does not return any value because its return type is void. In this method, we pass a char variable as a parameter. Then we define the method body in the method body we print the value of the char variable in the new line. To print the value in the new line we use the println function in java.

5 0
3 years ago
Although “dog.jpg” and “dog.JPG” and “Dog.jpg” and “DOG.JPG” all appear to be the same file, they are not considered the same wh
bonufazy [111]
They are not considered the same when programming web pages on the Internet, because it depends on what opereting system you're using to create web-site. Every OS use different <span>character encoding capable. You can avoid that by entering utf-8 (or smth like that) in your html file.</span>
4 0
4 years ago
........... Is ready made button for defining hyperlink on a slide​
Gwar [14]
Action Buttons An action button is a ready-made button that you can insert into your presentation and define hyperlinks. Use action buttons when you want to include buttons with commonly understood symbols for going to the next, previous, first, and last slides.
4 0
3 years ago
Which of the following occupations is least likely to involve use of a computing device on a day-to-day basis?
aliya0001 [1]

Answer:

Janitorial duties

Explanation:

7 0
3 years ago
Other questions:
  • what is the goal of technology A. to understand how the natural world functions B. to study the natural world C. to improve the
    9·1 answer
  • What savings account has the best rate of return on his interest
    12·1 answer
  • How many license plates are there if a license plate contains 3 letters from the 26 available in the English alphabet followed b
    15·1 answer
  • Why is it difficult to enforce laws against intellectual theft?
    9·1 answer
  • Create a page using PHP for a business website that will ask the user to enter his or her name into text boxes and will display
    5·1 answer
  • Outline 3 computer system problem that could harm people and propose the way avoid the problem​
    12·1 answer
  • What are the missing words in the program?<br> divide(numA,numB):<br> numA/numB
    9·2 answers
  • From your analysis, do you think you’ve seen all of the servers and hosts that make up the Amazon e-commerce site? How does Amaz
    12·1 answer
  • What 3 types of data can be entered in a spreadsheet
    14·1 answer
  • Multiple Choice
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!