What happens when an arithmetic operator is applied to non-arithmetic data types such as Boolean or character

Answers

Answer 1

Answer:

Following are the code to this question:

#include<iostream>//defining header file

using namespace std;

int main()//defining main method

{

bool a = true;//defining bool variable that holds true value

bool b = false;//defining bool variable that holds false value

cout<<a+b<<endl;//using print method to add bool value

cout<<a-b<<endl;//using print method to subtract bool value

cout<<a*b<<endl;//using print method to multiply bool value

return 0;

}

Output:

1

1

0

Explanation:

In this code, Firstly we import the header file, and in the next step, the main method is defined, in this, two bool variable "a, b" is declared, that holds true and false value respectively, and in the next step, three print method is declared that adds, subtract, and multiply the given value and use print its calculated value.


Related Questions

Importance of computer in 150 words and essay​

Answers

Answer: See explanation

Explanation:

A computer is simply referred to as an electronic device that can be used to store information and which can also make our work easier and faster.

The role of the computer in our daily lives nowadays cannot be understated as the computer is useful and used in every aspect of our lives. Computers are accurate, and makes our works easier.

Also, huge data's can be stores on the computer system. Computers are used in the education sector to tech students, in medical field as they aid treatments of patients etc.

Which two components are configured via software in order for a PC to participate in a network environment

Answers

Answer:

IP address and subnet mask.

Explanation:

The two components which are configured via software in order for a personal computer (PC) to participate in a network environment are;

I. IP address: it is an acronym for internet protocol address and can be defined as a unique number assigned to a computer or other network devices, so as to differentiate each device from one another in an active network system. Thus, an IP address is typically used to uniquely identify each computer or network devices connected to the internet or network.

In Computer networking, IP address are classified into two (2) main categories and these are; Local (internal) IP address and Global (external) IP address.

Also, the internet protocol (IP) address comprises of two (2) versions and these are; Internet protocol version 4 (IPv4) and Internet protocol version 6 (IPv6). An example of an IPv4 address is 192.168.1.0.

II. Subnet mask: this is a logical segmentation or subdivision of an internet protocol (IP) network so as to accommodate more hosts (computer systems). An example of a subnet mask is 255.255.0.0.

The analogy of a computer system is often used to illustrate the different parts of memory. The keyboard is where we encode new information, the hard drive is where we store information, and the monitor is where we retrieve information. Now create your own analogy and explain why each part of the memory system corresponds with the analogy you have selected.

Answers

Answer:

Different memory parts is used to provide an analogy of the computer system. In keyboard, we give new new information, we store the information in a hard drive and we retrieve information from the monitor.

Explanation:

The Encoding:  keyboard- encoding: we write something on a piece of a paper and then place it into a manila file folder.

Example: let a poem about Santa Claus

The Storage: Next CPU-Label of the folder and then put it into the file cabinets in the hanging file folder which is labeled with subject

Example: Label folder Santa Clause and put it into the present hanging file folder that is labeled "the Mythical winter figures"

The Retrieval: Now monitor-Open file cabinet, then flip to an appropriate hanging file, and then go to the specific file folder to get access to the paper.

Example: Flip to the "mythical winter figures" and then browse through the files until we locate the "Santa Claus,"  pull it out to read the poem. Then define and also give an example of the parallel processing.

products in which titanium is used

Answers

Answer:

It is used in jewelry, tennis rackets, scissors, bicycle frames, surgical tools, mobile phones and some other high-performance products.

Explanation:

Titanium is a familiar metal. Titanium is as strong as steel but weights about half as much.

It’s made in rings in necklaces it also is made for tennis rackets and tool in the medical field

When an antivirus program identifies a virus and quarantines this file, has the malware been eradicated

Answers

Answer:

NO

Explanation:

No, it's not, when a virus blocks a file stored in a sandbox, it does not affect the system. However, the virus program does not necessarily recognize other parts of the program. It still takes analysis to determine what. Also, the virus vault must be emptied to delete the original files

Write a function that takes two arguments, both integers, and prints the product. In the main part of your program (the part that isn’t inside a function), call your function to test it out.

Answers

Answer:

def multiply(a, b):

print(a*b)

multiply(2,3)

Explanation:

Using python3 :

The program is written using python 3 ;

def represent the statement used at the start of a function.

Multiply is the name given to our function (it could be any other name of interest)

(a, b) are the argument, which represents the two integers the function takes.

print(a * b) = What the function does is to print the product of a and b

multiply(2,3) is used to test out our function by call the name and Giving  it two integers to work on. The function will print 6

How many passes will it take to find the four in this list? 4, 5, 6, 7, 8, 9, 10 1 2 3 4

Answers

Answer:

10 passes

Explanation

just count the numbers in between the 2 4s :|

Answer:

3

Explanation:

got it right on edge

i'll give brainliest to whoever says Tom Clancy's: The Division 2 is a garbage game.

Answers

Tom Clancy the division 2 is garbage.

doubleUp Write a method doubleUp that doubles the size of a list of integers by doubling-up each element in the list. Assume there's enough space in the array to double the size. Suppose a list stores the values [1, 3, 2, 7]. After calling list.doubleUp(), the list should store the values [1, 1, 3, 3, 2, 2, 7, 7].

Answers

Answer:

The solution in Python is as follows:

class myClass:

     def doubleUp(self,myList):

           myList[:0] = myList[::2] = myList[1::2] = myList[:]

       

mylist =  [1, 3, 2, 7]

list = myClass()

list.doubleUp(mylist)

print(mylist)

Explanation:

To create a method in Python, the first step is to create a Class.

This is done in the following line:

class myClass:

Then this line defines the method

     def doubleUp(self,myList):

This line duplicates the elements of the list

           myList[:0] = myList[::2] = myList[1::2] = myList[:]

This defines the list        

mylist =  [1, 3, 2, 7]

This creates an instance of the class

list = myClass()

This passes the list to the doubleUp method

list.doubleUp(mylist)

This prints the duplicated list

print(mylist)

Write two lines of code to draw the following circles centered at 600,600. The radius of the smallest circle is 200. There are 50 points between the larger circle and the smaller circle.

Answers

Answer:

canvas.draw_circle((600, 600), 200, 3, "Black")

canvas.draw_circle((600, 600), 250, 3, "Black")

Explanation:

# include < conio.h>

# include < iostream.h>

int canvas.draw_circle,

namespace std

{

canvas.draw_circle((600, 600), 200, 3, "Black")

canvas.draw_circle((600, 600), 250, 3, "Black")

}

return,

Disney's first cartoon

Answers

Answer:

Mickey Mouse

Explanation:

Answer:

Oswald the Lucky Rabbit \(⋅⃘﹎᷊⋅⃘)

Explanation:

Oswald the Lucky Rabbit (also known as Oswald the Rabbit or Oswald Rabbit) is a cartoon character created in 1927 by Walt Disney and Ub Iwerks for Universal Pictures. He starred in several animated short films released to theaters from 1927 to 1938. 27 animated Oswald shorts were produced at the Walt Disney Studio.

Write a program that reads a list of words. Then, the program outputs those words and their frequencies.

Answers

Answer:

The program in Python is as follows:

mylist = []

nword= "y"

while(nword== "y"):

    word = input(": ")

    mylist.append(word)

    nword = input("New word: y/n: ")

for item in mylist:

    freq = mylist.count(item)  

    print(item, freq)

Explanation:

This creates an empty list

mylist = []

This is used to let the user input more word or stop input

nword = "y"

The following iteration lets the program read words from the user

while(nword == "y"):

This gets the user input

    word = input(": ")

This appends the inputted word into the list

    mylist.append(word)

This prompts if the user wants to input more word or not

    nword = input("New word: y/n: ")

This iterates through the list

for item in mylist:

This gets the frequency of each word in the list

    freq = mylist.count(item)  

This prints the word and the frequency

    print(item, freq)

Explain the development, design and implementation aspects of algorithms in the development of software.

Answers

Explanation:

Phases of software development are ;

1. Requirements analysis

2.Domain analysis

3.Client-oriented design

4.Implementation-oriented design

5.Implementation

6.Integration

7.Packaging.

Ongoing Activities in Software Development

1. Risk analysis

2. Planning

3.Verification

4.Documentation

Assume that programs spend about 25% of their time waiting for I/O operations to complete. If there are FOUR programs loaded into memory, what is the processor utilization

Answers

Answer:

0.9961

Explanation:

Given that:

Proportion of time waiting for I/O operation to complete = 25% = 0.25

Number of programs waiting in memory = 4

Using the CPU Utilization formula :

CPU Utilization = 1 - p^n

1 - 0.25^4

1 - 0.00390625

0.99609375

Which technology provides a solution to IPv4 address depletion by allowing multiple devices to share one public IP address

Answers

Answer:

Network Address Translation (NAT).

Explanation:

An IP address is an acronym for internet protocol address and it can be defined as a unique number assigned to a computer or other network devices, so as to differentiate each device from one another in an active network system. Thus, an IP address is typically used to uniquely identify each computer or network devices connected to the internet or network.

In Computer networking, IP address are classified into two (2) main categories and these are; Local (internal) IP address and Global (external) IP address.

Also, the internet protocol (IP) address comprises of two (2) versions and these are; Internet protocol version 4 (IPv4) and Internet protocol version 6 (IPv6).

Network Address Translation (NAT) is a technology that provides a solution to IPv4 address depletion by allowing multiple devices to share one public IP address.

This ultimately implies that, Network Address Translation (NAT) is a technology used by network engineers to translate IP addresses into a single IP address on a local area network.

Which of the following are all involved in the evaluation of the presentation of a speech?
Vocal technique, organization, body language
Body language, organization, visual aids
Visual aids vocal technique, body language
Organization, body language, visual aids

Answers

Answer:

C.

Explanation:

The elements involved in the evaluation of the presentation of a speech includes visual aids, vocal technique, and body language.

Adding vivid pictures in the presentation makes it graphic and proficient. The visual aids in presentation also provides the succinct and clear meaning of the message to the reader.

The vocal technique is another element that adds value in presentation. A speaker's confidence is reflected through his/her tone. It is the speaker's voice that becomes an influential tool that draws the audience's attention.

Body language, like vocal technique, helps in effective delivering of the speech. Body language is a non-verbal form of communicatin that communicates a lot to the audience than one can imagine.

Therefore, option C is correct.

Visual aids, voice technique, and body language are all factors considered when assessing how well a speech is presented.Thus, option C is correct.

What evaluation of the presentation of a speech?

Making use of colorful images in the presentation gives it a visual and professional feel. The reader can easily understand the material thanks to the presentation's visual aids.

Another aspect of presenting that adds value is voice technique. The tone of a speaker conveys his or her level of assurance. The voice of the speaker becomes a powerful tool for grabbing the audience's attention.

Similar to vocal technique, body language aids in effective speech delivery. Body language is a non-verbal type of communication that tells your audience more than you might think.

Therefore, Visual aids vocal technique, body language all involved in the evaluation of the presentation of a speech.

Learn more about speech here:

https://brainly.com/question/12453277

#SPJ3

Your network administrator asked you to change the IP for your first NIC to 206.206.206.138 so that users on the internet can reach the website you developed. What company do you work for

Answers

Answer:

Arizona State University

Explanation:

Internet Protocol address is a numerical means of identification assigned to each computer system that has access to the internet. It serves the function of identifying and communicating with other networks when connected to the internet.

When packets of information are exchanged over the internet, the incoming data contains a header which bears the internet protocol address of the sender as well as that of the receiver. The internet protocol address, 206.206.206.138, unique to Arizona State University.

Which type of table is the most commonly used in Access databases?
A. one-to-one
B. one-to-many
C. many-to-many
D. many-to-all

Answers

The table of one-to-many is used most commonly for the purpose of getting access to a database.

What is a database?

Any kind of data, record, or information, which is stored over a computer or network of computers with an intention to access such data as and when required is known as a database.

Hence, option B holds true regarding a database.

Learn more about database here:

https://brainly.com/question/6447559

#SPJ2

Write code that outputs variable numDays as follows. End with a newline. If input is 3, output is: Days: 3

Answers

Answer:

In C++:

#include<iostream>

using namespace std;

int main(){

int numDays;

cin>>numDays;

cout<<"Days: "<<numDays<<endl;

return 0;

}

Explanation:

This line declares numDays as integer

int numDays;

This line gets user input for numDays

cin>>numDays;

This line prints the required output and ends with a newline

cout<<"Days: "<<numDays<<endl;

write one for loop to print out each element of the list several things. then write another for loop

Answers

Question:

Write one for loop to print out each element of the list several_things. Then, write another for loop to print out the TYPE of each element of the list several_things.

Answer:

The solution in python is as follows:

for element in several_things:

    print(element)

   

for element in several_things:

    print(type(element))

Explanation:

The solution assumes that the list several_things has already been initialized.

So, the rest of the code is explained as follows:

This line iterates through the list, several_things

for element in several_things:

This line prints each element

    print(element)

This line iterates through the list, several_things for the second time    

for element in several_things:

This line prints the type of each element

    print(type(element))

Question # 3
Multiple Choice
What is the next line?

>>> grades = {100:'A', 75:'C', 89:'B', 80:'B'}
>>> grades[75]


1

2

'A'

'C'

Answers

Answer:

C is it

Explanation:

Answer:

its the 4th option 'C'

Explanation:

Think of a simple software project that requires your design skills. Specify the requirements needed on each design process

Answers

Answer:In this guide, we'll go over the basics of your software development ... I know which option I'd choose. ... Will you need to integrate with other tools or APIs? ... With the requirements in place, it's time to start designing what this ... In its most basic form, you can think of the Waterfall method as following each ...

Explanation:

These comprise fundamental elements such as the functions, features, and requirements, which are chosen after analysing user demands. Hardware and software specifications, maintainability, availability, and testability are a few design criteria.

What requirements needed on each design process?

Design specifications specify the conditions that a new good or service must fulfil to be deemed successful. In order for your team to design, create, and assess your solution, it is crucial to identify these requirements in the beginning.

Therefore, Criteria are the requirements that the design must meet in order to succeed. The design is limited by constraints. These could include the materials on hand, the cost of the supplies, the time allotted for developing the solution, etc.

Learn more about design process here:

https://brainly.com/question/28221020

#SPJ2

Which of the data repositories serves as a pool of raw data and stores large amounts of structured, semi-structured, and unstructured data in their native formats

Answers

Answer:

Data lakes.

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

Data lakes can be defined as data repositories which serves as a pool of raw data and stores large amounts of structured, semi-structured, and unstructured data in their native formats. These pool of raw or natural data allow data scientists to perform various tasks such as artificial intelligence (AI), machine learning, visualization, reporting, advanced analytical study, etc.

This Command to insert copied text anywhere in your document
Cut
Copy
Format painter
Paste

Answers

Answer:

Paste

Explanation:

Answer:

Please give me brainliest. The answer is paste

Explanation:

Define and describe PaaS. List the benefits of PaaS solutions. Describe potential disadvantages of PaaS. Describe how a cloud-based database management system differs from an on-site database. List the computing resources normally provided with a PaaS.

Answers

Answer:

PaaS has become a cloud technology that offers a way for consumers just to establish, successfully manage implementations without any of the sophistication of preserving but instead developing the technology related to the development and start-up of apps.

Explanation:

Benefits:

Not no need to purchase hardware as well as raise revenues throughout leisure time. There was no need to consider throughout configurations.

Disadvantages:

These have privacy concerns, during which data security contributes to the problem as well as monitored. These have problems with the portability of implementation.

Difference between Cloud base DBMS and On-site database:

On-site DBMS data couldn't be accessed from just about any location as either a cloud-based management solution.DBMS Cloud base documentation to ensure mostly with highly valued information collected to provide direct exposure to everybody else together whilst on-site DBMS functionalities such as SQL.

Computing recourses:

The architecture of web applications. Prebuilt techniques for developing, managing, and testing applications.

In the picture below

Answers

Answer:

The answer is "It is a public method in the Car class".

Explanation:

In this question, the fourth choice is correct because the accessor method will be public, and the incorrect choice can be defined as follows:

The first and second choice was wrong because the class name is "Car".In the third choice, it is wrong because the method will not be private.In the fifth choice, it is wrong because the object name "mustang".

What is the value of the count variable after the execution of the code snippet below? ArrayList somenum = new ArrayList(); somenum.add(1); somenum.add(2); somenum.add(1); int count = 0; for (int index = 0; index < somenum.size(); index++) { if (somenum.get(index) % 2 == 0) { count++; } }

Answers

Answer:

The answer is "1".

Explanation:

The value of the count variable after the code snippet execution is 1 because we're using three in the array list, instead, take one of these for a loop of 0 to the array list size but now the ArrayList size is 3, as well as the loop size, operates from 0 to 2:

In the index =0:

We get somenum.get(index)=somenum.get(0)=1%2 not 0, so we go on to the next index.

Index: = 1

We get a somenum.get(index) =somenum.get(1) = two percent 2 comparable to 0, so the count variable is increased to 1 and switch to just the following index.

count=1  

Index: = 2

They have a somenum.get(index) = somenum.get(2)=1 percent 2 not equivalent to 0.

Index= 3:

The index =3 <somenum.size()=3.

It isn't valid, and the loop breaks out and prints out the value of a count variable which is 1. so this becomes 3 < 3.

What certificate authority user role is tasked with the approval of requests for certificate enrollment and revocation

Answers

Answer:

Certificate manager.

Explanation:

Certification can be defined as a recognition given for completing a course of study or passing an examination. This is to certify that the individual is a professional in that course of study. Some examples are CCNA, Comptia A+, HSE I and II

Certificate manager is the certificate authority user role that is tasked with the approval of requests for certificate enrollment and revocation.

This ultimately implies that, the individual who is saddled with the responsibility of approving requests for certificate enrollment and revocation is a certificate manager.

Hence, a certificate can be revoked by a certificate manager if a person issued the certificate contravenes the set rules, requirements and standard binding on the certificate.

A sandbox is known as a holding area for website or .

Answers

Answer:

blog

Explanation:



..........answer is above or below me lol

Write a program for determining if a year is a leap year. In the Gregorian calendar system you can check if it is a leaper if it is divisible by 4 but not by 100 unless it is also divisible by 400.

Answers

Answer:

def leap_year_check(year):

return if int(year) % 4 == 0 and (int(year) % 100 != 0 or int(year) % 400 == 0)

Explanation:

The function is named leap_year_check and takes in an argument which is the year which we wish to determine if it's a new year or not.

int ensures the argument is read as an integer and not a float.

The % obtains the value of the remainder after a division exercise. A remainder of 0 means number is divisible by the quotient and a remainder other wise means it is not divisible by the quotient.

If the conditions is met, that is, (the first condition is true and either the second or Third condition is true)

the function leap_year_check returns a boolean ; true and false if otherwise.

Other Questions
Mixtures can be separated chemically / physically while compounds canonly be separated chemically / physicallya. physically, chemicallyb. chemically, physicallyc. chemically, chemicallyd. physically, physically What is 35x78?And 56x31? Where is Medellin located?1. near the coast2. in the highlands3. in the mountains4. in the lowlands Which expression is equivalent to 15(15 + 10x - 5)? 2 + 2x 2 - 2x -2 + 2x -2 - 2x Explain why it is possible that a unitary government might be either democratic or dictatorial in form. iris has $240 in the bank and she withdraws $25 every week. An equation for this relation is C = 240 - 25w, where c represents the amount of money , in dollars, in iris' account and w represents the number of weeks. How much does iris have in her account after 4 weeks Prove that the sum of five consecutive natural numbers is even Fnd the missng side length give me the most interesting best facts about ancient Greece dice for a BRAINLY (MAKE SURE YOU MAKE IT EXCITING AND INTERESTING AND IT HAS TO BE TRUE FACTS) NEED Help ASAP and please explain your answer (7i 5i + 12) (3i+ 6i 9)simplify All countries have this type of economic system today Which verb best completes this sentence? Para cocinar el pollo, tienes que ________ en agua por veinte minutos.A. frerloB. hervirloC. mezclarloD. verterlo help ..3(x+2)=5x+1-2x+5 Part A : How does the author use structure to convey a sense of tension in the passage?so the first part A i put C- by utilizing flashback to capture the soldiers dreams of home.now you have to answer part B i put in the photo below In a particular spreadsheet, the data in each cell is password protected. When cells are selected, the formula is visiblein the formula bar. Which is true?O The cells are locked and hidden.The cells are locked and unhidden.The cells are unlocked and hidden.O The cells are unlocked and unhidden. Calculate the slope of the line passing through the two points: (3,-3) & (1,-7) How long would it take to travel 315 mi at the rate of 45 mi/h? I really need help ASAP How do I find if it does work. If it does explain or if It doesnt