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
Degger [83]
3 years ago
9

including how it can be stored and what types of operations we can perform. For example, we can write a program that squares num

bers, but it wouldn’t be able to square a word.
Computers and Technology
1 answer:
ASHA 777 [7]3 years ago
6 0

Answer:

The solution code is written in Python:

  1. def square(num):
  2.    if type(num).__name__ == 'int':
  3.        sq_num = num * num
  4.        return sq_num  
  5.    else:
  6.        return "Invalid input"
  7. print(square(5))
  8. print(square("Test"))

Explanation:

To ensure only certain type of operation can be applied on a input value, we can check the data type of the input value. For example, we define a function and name it as <em>square</em> which take one input number, <em>num </em>(Line 1).

Before the <em>num</em> can be squared, it goes through a validation mechanism in by setting an if condition (Line 2) to check if the data type of the input number is an integer,<em> int.</em> If so, the<em> num </em>will only be squared otherwise it return an error message (Line 6).

We can test our function by passing value of 5 and "Test" string. We will get program output:

25

Invalid input

You might be interested in
___ allow users to select controls by keyboard shortcuts. (Points : 3) Alternative keys
PtichkaEL [24]

Answer: Alternative key

Explanation:

 The alternative key is the type of shortcut key in the keyboard that allow the users for selecting the control or shift key. It is also considered as the modifier key. For using the alternative key we must ensure that the lock num is ON in the keyboard.

The alternate key is basically provide the various alternative input and the operation. The short name of the alternate key in the keyboard is denoted as "Alt key". The function of the alternative key may vary from one application to another.    

3 0
3 years ago
Horizontal scaling of client/server architecture means _____.
aalyn [17]
<span>Horizontal scaling of client/server architecture means that more machines or more client workstation are added in the network. The impact on the network should be small and negligible. 
Vertical scaling on the other hand means that more power (processing units) are added in the network. </span>
4 0
3 years ago
Most internet connections use what transmission
Orlov [11]
Most internet connections use full-duplex transmissions. (Please give brainliest answer :) :D )
7 0
2 years ago
Read 2 more answers
You have installed a wireless network at your house but all of a sudden, your computer and devices are unable to connect to the
vladimir1956 [14]

The steps that you need to take to troubleshoot the problem and correct it so that connectivity is restored is

  • First Unplug or power off one's  router.
  • Then stay for about two to five minutes before one can plug it back in.
  • The stay for five more minutes and do retry the connection.

<h3>What troubleshooting meaning?</h3>

Troubleshooting is known to be a kind of a systematic method that is often used to problem-solving and this is known to be one that is often used in order to see, find and correct problems that are known to be with complex machines, computers, software systems and others.

Troubleshooting is said to be a kind of problem solving, often used to repair what we call a failed products or processes.

Therefore, The steps that you need to take to troubleshoot the problem and correct it so that connectivity is restored is

  • First Unplug or power off one's  router.
  • Then stay for about two to five minutes before one can plug it back in.
  • The stay for five more minutes and do retry the connection.

Learn more about wireless network from

brainly.com/question/26956118

#SPJ1

7 0
8 months ago
Graphics you can select to reinforce the goal of your document include ____.
Tanya [424]
The answer would be D all of the above.
8 0
2 years ago
Other questions:
  • Choose the sentences that describe techniques of formatting text.
    12·1 answer
  • What date does GTA 6 come out<br> A. 2020<br> B. 2019<br> C. 2021<br> D. 2022
    10·2 answers
  • Question 4 of 20 :
    14·2 answers
  • Why must a mobile application be easily customized and personalized?
    14·2 answers
  • Could someone please help me with this?
    8·1 answer
  • Yeoo check dis out!!!!!! wait my full vid dont show hol on
    7·2 answers
  • What is the primary way that social networks work? Multiple Choice providing a security system for communication online connecti
    5·1 answer
  • Which of the following statements is correct? User data cannot be combined and shared among authorized users. In a nondatabase,
    6·1 answer
  • Plagiarism is considered
    6·1 answer
  • [100 points] Fill in the missing word.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!