ternary operators of computer

please explain. ​

Answers

Answer 1

Answer:

It's a compact way of doing an if-else statement.

General Format is

<condition> ? <if condition is true> : <else>;

Example:

I could rewrite:

  if(a==1) temp = 1;

  else     temp = 999;

as

  temp = (a==1) ? 1 : 999;


Related Questions

write a program to check whether the number is odd or even using 'if' statement in python

Answers

Answer:

Python Program to Check if a Number is Odd or Even :

num = int(input("Enter a number: "))

if (num % 2) == 0:

print("{0} is Even number". format(num))

else:

print("{0} is Odd number". format(num))

Help me why did my desktop erase every app I need that please

Answers

Answer:

Your computer is affected by a polymorphic or trojan horse virus, so install avast antivirus. Set your computer into safe mode, then open the antivirus

Answer:

your pc has virus

Explanation:

Which decimal value (base 10) is equal to the binary number 1012?

Answers

Answer:

The decimal value of 101₂² base 2 = 25 base 10

Explanation:

The number 101₂² in decimal value is found as follows;

101₂ × 101₂ = 101₂ + 0₂ + 10100₂

We note that in 101 + 10100 the resultant 2 in the hundred position will have to be converted to a zero while carrying over 1 to the thousand position to give;

101₂ + 0₂ + 10100₂ = 11001₂

Therefore;

101₂² =  11001₂

We now convert the result of the square of the base 2 number, 101², which is 11001₂ to base 10 as follows;

Therefore converting 11001₂ to base 10 gives;

11001₂= 1 × 2⁴ + 1 × 2³ + 0 × 2² + 0 × 2 ¹ + 1 × 2⁰

Which gives;

16 + 8 + 0 + 0 + 1 = 25₁₀.

The decimal value in base 10 that is equal to the binary number 101_2 is; 5

We want to convert 101_2 from binary to decimal.

To do this we will follow the procedure as follows;

(1 × 2²) + (0 × 2¹) + (1 × 2^(0))

>> (1 × 4) + (0 × 2) + (1 × 1)

>> 4 + 0 + 1

>> 5

In conclusion, the decimal value we got for the binary number 101_2 is 5

Read more about binary to decimal conversion at; https://brainly.com/question/17546250

Marcus White has just been promoted to a manager. To give him access to the files that he needs, you make his user account a member of the Managers group, which has access to a special shared folder. Later that afternoon, Marcus tells you that he is still unable to access the files reserved for the Managers group. What should you do

Answers

Answer:

log off of his account and log back in

Explanation:

The first thing that Marcus should do would be to log off of his account and log back in. This is so that the new changes to his permissions can take effect. This should solve his problem and grant him access to all the permissions available in the Managers Group. If this does not work, then it is most likely that he is still in the previous group which has the Manager level permissions blocked. In this case he would need to leave the previous group that he is in because the blocking permissions overrides the access allowed from the Managers group.

You are in charge of installing a remote access solution for your network. You decide you need a total of four
remote access servers to service all remote clients. Because remote clients might connect to any of the four
servers, you decide that each remote access server must enforce the exact same policies. You anticipate that
the policies will change frequently.
What should you do? (Select two. Each choice is a required part of the solution.)
A. Configure network policies on the RADIUS server.
B. Make each remote access server a member of the RemoteServers group.
C. Configure the exact same network policies on each server.
D. Configure one of the remote access servers as a RADIUS server, and all other servers as RADIUS clients.
E. Use Group Policy to configure network policies in the default Domain Controllers GPO.
F. Configure each remote access server as a domain controller.

Answers

Answer: configure one of the remote access servers as a RADIUS server and all other servers as RADIUS clients

configure network access policies on the RADIUS server

Explanation:

List out analog computer​

Answers

Answer:

1. Wall clocks.

2. Analog watches

3. Measuring instruments with callibration

Explanation:

Barbara, an employee, has properly connected her personal wireless router to a network jack inside her office. The router is unable to get a DHCP address even though her corporate laptop can get a DHCP address when connected to the same jack. Barbara checked the router's configuration to ensure it is setup to obtain a DHCP address. Which of the following is the MOST likely reason that the router is not getting a DHCP address

Answers

Answer:

because something is wrong with the jack

Explanation:

What type of camera is a cell phone camera? A.) DSLR B.) manual C.) compact D.) zoom

Answers

Answer:

The correct option is;

D.) Zoom

Explanation:

The six types of camera found on smart phones includes the monochrome, macro camera, ultra-wide camera, periscope zoom camera, the main phone camera, and the depth sensor camera

The zoom cameras on smart phones can be found mainly in the top range models of smart phones due to the costs of the camera components including the sensor.

Smart phones also have digital zooming that make use of the high mega pixels that come with the phone.

what do you mean by HDML coding ​

Answers

Answer:

hdml coding is a standard markup language for documents designed to be displayed in a web browser.

Explanation:

it can be assisted using things like CSS or JS

how to print the output of "WELCOME" by using python codes with arrays.

Answers

Answer:

Following are the code to this question:

arr=['WELCOME']#defining list arr and assign string value

print (str(arr)[2:-2])#use print method that uses slicing to remove bracket and quotes

Output:

WELCOME

Explanation:

The Array data type is used to store the same type of value, but in python, the array is not used, instead of using an array we use the list, that stores multiple data types.

In the above code "arr", that is list is declared, that store a string value.    

To print its value, we use the print method, inside this, we use slicing to remove brackets and quotes.

write a python program to calculate the compound interest

Answers

Answer:

initialPrincipal = float(input("Please enter your initial principal:"))

interestRate = float(input("Please enter your interest rate:"))

timePeriod = float(input("Please enter your number of times interest applied per time period:"))

elapsedPeriod = float(input("Please enter your number of time period elapsed:"))

finalAmount = initialPrincipal*(1 + interestRate/timePeriod)^(timePeriod*elapsedPeriod)

print("Your final amount would be:", finalAmount)

Which of the following is an accurate definition of a computer system? A computer system consists of the operating system that tells the computer how to execute commands. A computer system is a network that allows computers, tablets, smartphones, etc. to connect to the Internet. A computer system is a collection of hardware and software components that work together to meet the needs of the user. A computer system is a group of hardware devices that work together.

Answers

Answer:

I believe it's  A computer system consists of the operating system that tells the computer how to execute commands.

Explanation:

Assume that strike Counter has already been declared to be a "pointer to int". Assume further that strike Counter has been initialized -- its value is the address of some int variable. Write a statement that adds 22 to the value of the variable that strikeCounter is pointing to.

Answers

Answer:

The statement to this question can be defined as follows:

*strike_Counter =*strike_Counter +22;//adds  value 22 in *strike_Counter

Explanation:

In the given question, it is already defined, that "strike_Counter" is an integer pointer variable, which means, it only holds the integer value in its address memory.

In the next step, it is defined, that it adds the value "22" in its variable, and for this, we declare the statement in the answer section, which adds the value.  

for example, if in the "strike_Counter" variable holds the integer value, that is 5 and after adding the 22 it will become 27.    

What tends to happen to the accuracy of our savings goals as our investment horizon becomes longer? A. It is not useful to have long-term savings goals. B. We are less able to accurately estimate the amount we will need. C. We can estimate the amount we need more accurately. D. The accuracy of our savings goals doesn't change.

Answers

Answer:

The answer is "Option B".

Explanation:

The Secured Goals are a part of your account, which is configured to just save your cash and also save it, and all the differences are good dividend savings accounts to shield this from accidental expenses. While opening the protected savings fund, the saving goal would be automatically created or loan rates invested only at the end of each month, that's why in this question "option B" is correct.

The less able to the accurate estimate of the amount we will require. Thus the option B is correct.

What is the saving goals of investment?

The saving or the secured Goal is a part of the account, it tells how to adjust and configure your save. When opening the protected saving fund the dating goal would be automatically to create the loan and rate the investment at the end of the month. Thus we can accurately estimate the amount we need.

Find out more information about the saving goals.

brainly.com/question/6903609

i need a computer science help.....and I rlly want it right now...this the question
calculate all multiples of 5 that are less than a randomly generated number between 12 and 45. for example the random number is 16. the output is then 5,10,15 python

so basically if type a number between 12 and 45 it shud give me all the multiples of 5 less than the number i typed......pls help;-;

Answers

Define, en tus propias palabras, lo que son los sistemas de información.

State what is meant by the terms: Parallel data transmission ......................................................................................................... ................................................................................................................................................... ................................................................................................................................................... Serial data transmission ........................................................................................................... ................................................................................................................................................... ...................................................................................................................................................

Answers

Answer:

parallel communication is a method where several binary digits are sent as a whole, on a link with several parallel channels.

serial communication conveys only a single bit at a time over a communication channel or computer bus.

What is the difference between Packaged and tailored soft ware?​

Answers

Answer:

Package software is developed by computer technicians. modified or changed if there is need because these software are custom-built. Tailored Software- Tailored software is the software that is developed as per the specifications and requirements of the users.

Explanation:

hpithlps.

Select the best answer for the ques
12. A business has a goal of communicating frequently with its customers to offer specials and increase sales. What element should it consider adding to its website
O A. Database
O B. Payment system
O C. Calendar
O D. Mailing list opt-in

Answers

The element that should consider adding to its website is Mailing list opt-in. Option D is the correct answer.

Adding a mailing list opt-in to the website would allow the business to collect email addresses from customers who are interested in receiving updates, specials, and promotions.

By building a mailing list, the business can communicate frequently and directly with its customers, informing them about new products, exclusive offers, and other relevant information.

Having a mailing list opt-in provides several advantages. Firstly, it gives the business a direct channel of communication with customers, allowing them to reach a targeted audience interested in their products or services.

Secondly, it helps to increase sales by sending promotional emails and offers to the subscribers, which can encourage them to make purchases. Lastly, it enhances customer engagement and loyalty as customers feel connected to the business and stay informed about its latest offerings. Option D is the correct answer.

For such more question on element:

https://brainly.com/question/4966688

#SPJ8

define analogue computer with any four features​

Answers

Answer:

hope it helps you

Explanation:

and pls mark as brainlist ans

General purpose computer can perform a single task, true or false​

Answers

Answer:

This is false.

Explanation:

General-purpose computers are desktop computers or laptops that can function in multiple ways. A special-purpose computer is usually designed to do one thing only.

8. Fill in the blanks.
a) A set of instructions that performs a particular task is called a ______
b) Machine invented by William Oughted is _____
d) A memory used by second generation computer _____
e) Cyber Nepal was established in ____​

Answers

Answer:

a)It is called a program

b)Machine invented by Williams Oughted was Slide rule

d)Magnetic cores were used

Computer hardware refers to: Group of answer choices the mechanism through which users interact with a computer. handheld computing devices meant largely for mobile use outside an office setting. a precise set of instructions that orchestrate the functioning of the computer. a program that fulfills the requests of a client. the physical components of information technology.

Answers

Computer hardware is referred to as: E. the physical components of information technology.

A computer refers to a programmable-electronic device that is designed and developed to receive data in raw form as an input and then processes these data into an output (information) that could be used by the end user.

Generally, the components of a computer is broadly classified into two (2) main categories and these include:

Software: such as operating system (OS).Hardware: it include speaker, keyboard, CPU, monitor, etc.

In conclusion, a computer hardware is simply the physical components of an information technology (IT) because they can be seen and touched.

Read more on computer hardware here: https://brainly.com/question/959479

Question 12 :A user complains that his computer is taking a long time to boot. During the boot process, you observe that the hard drive activity light is staying on. You discover that the hard drive is nearing its maximum capacity. The computer contains a single 150 GB hard drive. What should you do

Answers

Answer:

Delete unnecessary apps

Explanation:

If you don't need it and its installed it's just using up memory the system could be using for something else

50 POINTS TO WHOEVER CAN HELP ME! When your friend Sarah turns on his computer, she hears four beeps. The computer won’t fully boot. Sarah has a Dell computer with a quad-core processor and has recently upgraded her RAM. Apply the troubleshooting methodology to help her understand and resolve this problem; I have them listed below: Identify the Problem Internet Research Establish a Theory of Probable Cause Test the Theory Establish a Plan of Action Implement the Solution or Escalate Verify Full System Functionality Document Findings

Answers

Answer:

Unplug everything

unscrew and remove side panel

pop-out each memory card, blow on them and pop them back in (be sure the tabs lock back down)

Explanation:

Somehow one of the memory cards must have jiggled lose, even though they looked fine at first

Answer:

this is a memory card fail this could mean many different things like dust, but it ussualy isn't that serious if she has a new RAM, and if there is a problem she should have a warranty on her new RAM card  

Match the features of a word processing software to their corresponding functions.
Options
Replace
Change All
Explain
enables you to add or remove misspelled words
arrowRight
provides the description of grammar errors
arrowRight
changes all occurrences of the misspelled words
arrowRight
changes the behavior of the grammar checker
arrowRight

Answers

Answer:

Options - changes the behavior of the grammar checker

Replace - enables you to add or remove misspelled words

Change All - changes all occurrences of the misspelled words

Explain - provides the description of grammar errors

Explanation:

Let me know if this helps! :)

Payroll deductions are the same for all employees. True False

Answers

Answer:

The answer is "False".

Explanation:

The Payroll deductions are the amount of each pay period, that is paid out of the paycheck of the employee. It is also considered as the money, which is deducted from its employees' paychecks so, if paid by the employers.

All staff members are not identical. Workers' paychecks determine the amount individuals receive during each pay cycle. It also is referred to it as payroll retainers.

Which of the following is considered information? a. A single keystroke b. All the characters on a keyboard c. An individual test score d. Average of a series of test scores

Answers

Answer:

The correct option is;

d. Average of a series of test scores

Explanation:

Information is defined as the knowledge or news which has been sent by one person and received by another such as the reply for a request for the current weather at a specific geographical location

Information is data that has been interpreted, processed, organised, put into a structured and presented within a given context that can be intelligible, meaningful and useful to people.

difference between vacuum tube and transistor​

Answers

Answer:

I HOPE THE ABOVE INFORMATION WILL HELP YOU A LOT.

which country has the most common features of analogue and digital computer​

Answers

Explanation:

i don't think rhis question could be..

Question 13 (6.67 points)
Which of the following is NOT a benefit of a word processing application?
Provides automatic online backup
Offers professional document appearance
Allows easy sharing and collaboration
Saves time and increases efficiency

Answers

Answer:Offers professional document appearance

Explanation:

Other Questions
"What is the longest time (with extensions) a developer can have to file a final map after receiving tentative map approval?" How many minutes will it take a caterpillar to go seven feet if it travels 24 inches per minute? To travel seven feet, it will take the caterpillar a0 minutes. based on the information in paragraph 4, what is the likely reason why experts have found less plastic floating in the ocean than they expected? cite evidence from the text. common lit tiny plastic, big problem 1. Si tengo medio kilo de fruta y te doy un cuarto y t me das tres cuartos de kilo, cunto tengo? 2. Si en una carrera te queda por recorrer la mitad de la mitad de 1 km, cunto te falta? 3. Qu pesa mas, un kilo y medio de hierro o tres medios kilos de paja? porfavor es urgente. I need help! Answer as fast as you can. Marking brainlyiest A runner sprinted for 414 feet. How many yards is this? Frampton noodle is the second character introduced in 75 to 100 words describe him and list the words that convey his personality traits what type of description does the author use to build his character. The lac operon in Escherichia coli Group of answer choices promotes the expression of lactose-utilizing enzymes when lactose is absent from the environment. prevents lactose-utilizing enzymes from being expressed when lactose is absent from the environment. prevents lactose intolerance. prevents lactose-utilizing enzymes from being expressed when lactose is present in the environment. Write a formula by showing the relation among density mass and volume. Which are the five food groups shown in the MyPyramid diagram? take a square of arbitary measure assuming its area is one square unit.divide it in to four equal parts and shade one of them.again take one shaded part of that square and shade one fourth of it.repeat the same process continuously and find the sum area of shaded region What type of reaction is shown below:Ethanoic acid + propanol -> propyl ethanoate + waterA. PolymerizationB. Addition (water)C. EliminationD. Esterification Explain how productivity and specialization relate to you as you enter the free market. Math nation section 2 How to prepared sodium chloride solution in the laboratory. PLS HELP ME ON THIS QUESTION I WILL MARK YOU AS BRAINLIEST IF YOU KNOW THE ANSWER!!Edgar has test scores of 87, 92, 90, 84, 88, and 91. What is the lowest grade Edger can get on the next test to have an A average (90 or higher)?A. 94B. 96C. 98D. 100 A inicios del Siglo XX en Europa se desarrollaron diversas corrientes artsticas como el Expresionismo, el Dadasmo, Futurismo, entre otras. A pesar de que tenan estilos y formas distintas, todos fueron identificados con la idea de "Vanguardias Artsticas". Qu elemento comn tienen las vanguardias artsticas referidas? The technique used to help strategic managers choose among alternative choices by defining the task environment, developing a set of various forecasts, and using pro forma financial statements is called________.1. Decision trees.2. SWOT analysis.3. Industry scenarios.4. CAPM [Capital Asset Pricing Model]. Solve for p.19p2p+16p+12=18p= Fine the surface area