C
Describe the scope of the variables in this code.
class cholesterol:
low Density = 0
highDensity = 0
class patient:
definit__(self, firstName.lastName,id Num):
self.firstName = f[rstName
self.lastName = lastName
self.id Num = idNum
def str (self):
return self.firstName +""+self.lastName + " + self.id Num
The scope of high Density is limited to the patient class
The scope of firstName is limited to the cholesterol class

CDescribe The Scope Of The Variables In This Code.class Cholesterol:low Density = 0highDensity = 0class

Answers

Answer 1

Answer:

The scope of highDensity  is accessible by the entire program .

The scope of firstName  is limited to the patient class .

Explanation:

Correct answer edge 2020

Answer 2

The scope of highDensity is limited to the cholesterol class and the scope of the firstName is limited to the patient class.

Variable scope

The accessibility of a program is described by the scope of a variable.

To put it another way, it's the part of the program where the variable is identified.

The place you declared a variable determines the scope. There are two major scopes of variables in python.

Global variablesLocal variables

Therefore, the scope of highDensity is limited to the cholesterol class and the scope of the firstName is limited to the patient class.

learn more on variable scope here: https://brainly.com/question/21065208

#SPJ2


Related Questions

What is the definition of a nested function?
O a cell that is used in two different functions
O arguments defined inside of two functions
O arguments defined inside of arguments inside of a function
O a function defined inside of another function

Answers

Answer:

d

Explanation:

Answer:

D. a function defined inside of another function

Explanation:

hope this helps :)

While Angela is making modifications to Katie’s Word document, she would like to inform Katie of the reasoning for the change.

Which feature should Angela use?

Track Changes
email
Comments
Save File

Answers

Answer:

i think it's comments

Not too sure

While Angela is making modifications to Katie’s Word document, the feature that Katie should use is comments. The correct option is c.

What is a Word document?

Microsoft Office is thought of as including Microsoft Word. Word, PowerPoint, Excel, Outlook, and a number of other programs are included in the Office suite of Microsoft tools.

These may be used on Windows or macOS and are suitable for both personal and professional use. They are not the same thing; Microsoft Word is merely one of such app.

A comment is a section or tool that can be used by the editor of the Word document. Comments can be added to correct the document and to give information that can be specified, and comments can be removed.

Therefore, the correct option is c. Comments.

To learn more about Word documents, refer to the below link:

https://brainly.com/question/26695071

#SPJ5

Write a program that outputs a subtraction practice problem for a student, outputting the larger random number
first and the smaller random number second.

this is in C++ and i cant figure it out

Answers

Answer:

#include <stdio.h>

#include <stdlib.h>

#include <time.h>

int main(void)

{

   srand(time(NULL));

   int num1, num2;

   int val;

   while (true)

   {

       num1 = rand() % 100 + 1; //Random number between 1-100

       num2 = rand() % 100 + 1; //Random number between 1-100

       if (num1 >= num2)

       {

           printf("%d - %d = ", num1, num2);

           scanf("%d",&val);

           if (val == num1-num2)

           {

               printf("Correct!\n");

           }

           else

           {

               printf("Incorrect!\n");

           }    

       }

       else

       {

           printf("%d - %d = ", num2, num1);

           scanf("%d",&val);

           if (val == num2-num1)

           {

               printf("Correct!\n");

           }

           else

           {

               printf("Incorrect!\n");

           }

       }    

   }

}

Explanation:

First, we create two random numbers and save the values.  Then we check to see which value is larger.  Based on that, we change how we display the format to the user.  Then we check to see if the user input number is equivalent to the subtraction problem.  If it is, we display Correct!  Else, we display Incorrect!

Cheers.

Look at the slide.

An example of a slide. There is a title. There is one main bullet entry with 3 subentries below it. There is a lot of text on the slide. There is no image. The background is dark red and the text is black.

How could the slide best be improved?

by choosing a better font
by providing more information
by using a lighter background
by enlarging the heading

Answers

Answer:

c

Explanation:

Answer:

the answer is c

Explanation:

100%

How does Python recognize a tuple?

You use brackets around the data values.
You use parentheses around the data values.
You declare myTuple to be a tuple, as in "myTuple = new tuple".
You use tuple when you create it, as in "myTuple = tuple(3, 5)".

Answers

Answer:

B) You use parentheses around the data values

Explanation:

It was C) on my end, but the answer is still the same :)

Python recognizes a tuple if you declare myTuple to be a tuple, as in "myTuple = new tuple". The correct option is C.

What is python?

Python is a popular computer programming language used to create software and websites, automate processes, and analyze data. Python is a general-purpose language, which means it may be used to make many various types of applications and isn't tailored for any particular issues.

Python is frequently considered as one of the simplest programming languages to learn for novices. Python is a wonderful place to start if you're interested in learning a programming language. In addition, it is one of the most popular.

Therefore, the correct option is C, You declare myTuple to be a tuple, as in "myTuple = new tuple".

To learn more about python, refer to the link:

https://brainly.com/question/18502436

#SPJ2

Which statement will remove 12:'uno' from the dictionary?

games = {8:'scrabble', 10:'xbox', 12:'uno'}

games.remove()

games.pop(12)

games.pop()

games.remove(12)

Answers

Answer: games.pop(12)

Explanation:

In a dictionary sequence, .pop() alone does not work as the variable needs to be defined. Adding 12 allows Python to identify this variable. .remove() does not work with or without a variable.

Answer:

games.pop(12)

Explanation:

The introduction of an academic paper must include a:

A) thesis statement

B)transition sentence

C) quotation

D) restatement

Answers

Answer:

A

Explanation:

The introduction of an academic paper must include a: Thesis Statement

Answer:

A.) Thesis Statement

Explanation:

You should start with a thesis statement that way your audience knows what your paper will be about. It makes a claim, directly answering a question.

Hope this helped♥

What is the next line?
>>> aDeque = deque('happy')
>>> aDeque.append('me')
>>> aDeque

deque(['happy', 'me'])
deque(['h', 'a', 'p', 'p', 'y', 'me'])
an error statement
deque(['happyme'])

Answers

Answer:

deque(['h', 'a', 'p', 'p', 'y', 'me'])

Explanation:

Answer:  B)deque(['h', 'a', 'p', 'p', 'y', 'me'])

Explanation:

Edge2021

Which of the following correctly describes the reason for quality customer service?

Answers

The correct answer is C. Keep existing customers and clients
Explanation:
Customer service refers to the interaction with customers and support employees in a company provide to customer to guarantee he or she has the best experience when buying one product or service. A high-quality customer service implies providing complete information to customers, and helping them before, during, and even after their process in buying or looking for information in a company. The main purpose of this is that customers feel the support from employees, and are loyal to the company which means they will go back if they need the same service or products. Thus, the reason for quality customer service is "Keep existing customers and clients".

Which are examples of basic text structures? Check all that apply.

chronological order
random order
order of importance
comparison and contrast
cause and solution

Answers

Chronological order
Comparison

Answer:

B, D, E.

Explanation:

Because all residential electrical outlets are never used at the same​ time, the NEC​® allows a diversity or____ nothing to be used when sizing the general lighting load for electric services.

Answers

Answer:

Conincident factor        

Explanation:

Coincident factor is derived as the Maximum Demand of System divided by the Sum of Individual maximum Demands.

Diversity factor is the proportion or percentage of the total of the peak demands of each unit within the various subdivisions of a system in relation to  the total demand of the  whole system, or any section of the system.

After calculating the diversity factor the result must be greater than 1.

Cheers

The coincident factor is calculated by dividing the system's maximum demand by the sum of constituent maximum demands.

This diversity factor is the percentage or proportion of peak demand of each unit within the various divisions of a system in proportion to the overall demand of the overall network or any segment of the network.This result of computing the diversification factor has to be higher than 1.Since all household plug sockets are seldom operated at the same time, the NEC enables a diversity or coincidental factor to be used when measuring the general illumination load for electric services.

Therefore, the final answer is "coincident factor".

Learn more:

brainly.com/question/12579961

what is the purpose of the domain name system

Answers

Answer:

The Domain Name System (DNS) is a central part of the internet, providing a way to match names (a website you're seeking) to numbers (the address for the website). Anything connected to the internet - laptops, tablets, mobile phones, websites - has an Internet Protocol (IP) address made up of numbers.

Explanation:

The Domain Name System (DNS) is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates more readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the underlying network protocols. By providing a worldwide, distributed directory service, the Domain Name System has been an essential component of the functionality of the Internet since 1985.

The Domain Name System delegates the responsibility of assigning domain names and mapping those names to Internet resources by designating authoritative name servers for each domain. Network administrators may delegate authority over sub-domains of their allocated name space to other name servers. This mechanism provides distributed and fault-tolerant service and was designed to avoid a single large central database.

What can you do with python on a Chromebook

I am on a Chromebook and lately I have been leaning python on my PC at home, I had saw a video on how you could make python bots but that was on window OS and i am just asking if there is any thing cool i could be doing on my Chromebook and if possible only need a google chrome tab to work..

Answers

A Chromebook runs ChromeOS as its operating system and historically running anything other than a web app–such as Python–was challenging. However, that is no longer the case! You can now run Linux apps on ChromeOS which opens the door to using MiniConda to install Python 3.

If a song is public domain, that means:

Check all that apply.

Portions of the song may be used at will.

The song may be recreated without fee.

No fee is owed for using the original song in its entirety.

None of the above.

Answers

Answer: C

Explanation:

Public Domain mean public owns it and it don’t belong to an individual author or artist. Anyone can use a public domain without obtaining permission but can’t ever own it

Answer:

It’s actually A,B, and C

Explanation:

Catherine purchased dried herbs from the grocery store. Which structure would she use if wanted to create a mixture of powdered herbs by pounding them repeatedly using a mortar and pestle?

A.

looping structure

B.

selection structure

C.

sequence structure

D.

conditional structure

Answers

Answer: C. sequence structure

Explanation:

Catherine would use the sequence structure to achieve her results of powdered herb after pounding the herbs.

In a sequence structure, an action, or event, tends to lead to the next action in an order which has been predetermined. The sequence can contain any number of actions, but no actions can or must be skipped in the sequence.

This means she has to go through the pounding process to achieve the powdered state.

Answer:

A. Looping structure

Explanation:

I just took the test

i’m failing this class and i’m stuck on this one, this is the code from the last lesson:

def GPAcalc(grade, weighted):
grade = grade.lower()
dictionary = {"a":4, "b":3, "c":2, "d":1, "f":0}
if weighted == 1 and grade in dictionary:
return "Your GPA score is: " + str(dictionary[grade] + 1)
elif weighted == 0 and grade in dictionary:
return "Your GPA score is: " + str(dictionary[grade])
else:
return"Invalid"

print(GPAcalc(input("Enter your Letter Grade: "), int(input("Is it weighted? (1 = yes, 0 = no) "))))

Answers

lst=([])

def avgGPA(lst1):

   total = 0

   count = 0

   for x in lst:

       if type(x) == int:

           total += x

           count += 1

   return total/count

def GPAcalc(grade, weighted):

   grade = grade.lower()

   dictionary = {"a": 4, "b": 3, "c": 2, "d": 1, "f": 0}

   if weighted == 1 and grade in dictionary:

       lst.append(dictionary[grade]+1)

       return "Your GPA score is: " + str(dictionary[grade] + 1)

   elif weighted == 0 and grade in dictionary:

       lst.append(dictionary[grade])

       return "Your GPA score is: " + str(dictionary[grade])

   else:

       lst.append("Invalid")

       return "Invalid"

classes = int(input("How many Classes are you taking? "))

i = 0

while i < classes:

   print(GPAcalc(input("Enter your Letter Grade: "), int(input("Is it weighted? (1 = yes) "))))

   i += 1

print("Your weighted GPA is a "+str(avgGPA(lst)))

If you need me to change any code, I'll do my best. I hope this helps!

Write at leaat 20 shortcuts on the Microsoft word.​

Answers

Answer:

Open a document: Ctrl + O.

Create a new document: Ctrl + N.

Save the current document: Ctrl + S.

Open the Save As window: F12.

Close the current document: Ctrl + W.

Split the window: Alt + Ctrl + S.

Copy: Ctrl+C

Paste: Ctrl+V

Cut the current selection: Ctrl + X

Copy the current selection: Ctrl + C

Paste the contents of the clipboard: Ctrl + V

Bold: Ctrl + B

Italics: Ctrl + I

Underline: Ctrl + U

Underline words only: Ctrl + Shift + W

Center: Ctrl + E

Make the font smaller: Ctrl + [

Make the font bigger: Ctrl + ]

Change text to uppercase: Ctrl + Shift + A

Change text to lowercase: Ctrl + Shift K

Insert a page break: Ctrl + Enter

Add a hyperlink: Ctrl + K

Explanation:

What are the key components to planning a presentation?
Check all that apply:
audience
conclusion
methods
purpose
thesis
title
topic

Answers

1,3,4,7 just took on edge

Answer:

1 3 4 7

Explanation:

Macro photographs are what type of photographs? A. Close-up B. Telephoto C. Abstract D. All of the above

Answers

Answer:

A

Explanation:

they are close up. they are not telephoto or abstract

marco can be telephoto, but it is not nessacarily always telephoto. marco is by definition a close up photo

what is the output of this program ? Assume the user enters 3,6 and 11​

Answers

Answer:

C++

Explanation:

C++ Standards

C++ is standardized as ISO/IEC 14882. Currently, there are two versions:

C++98 (ISO/IEC 14882:1998): First standard version of C++.

C++03 (ISO/IEC 14882:2003): minor "bug-fix" to C++98 with no change to the language. Commonly refer to as C++98/C++03 or First C++ standard.

C++11 (ISO/IEC 14882:2011): Second standard version of C++. Informally called C++0x, as it was expected to finalize in 200x but was not released until 2011. It adds some new features to the language; more significantly, it greatly extends the C++ standard library and standard template library (STL).

C++14: Infomally called C++1y, is a small extension to C++11, with bug fixes and small improvement.

C++17: informally called C++1z.

C++2a: the next planned standard in 2020.

C++ Features

C++ is C. C++ supports (almost) all the features of C. Like C, C++ allows programmers to manage the memory directly, so as to develop efficient programs.

C++ is OO. C++ enhances the procedural-oriented C language with the object-oriented extension. The OO extension facilitates design, reuse and maintenance for complex software.

Template C++. C++ introduces generic programming, via the so-called template. You can apply the same algorithm to different data types.

STL. C++ provides a huge set of reusable standard libraries, in particular, the Standard Template Library (STL).

C++ Strength and Pitfall

C++ is a powerful language for high-performance applications, including writing operating systems and their subsystems, games and animation. C++ is also a complex and difficult programming language, which is really not meant for dummies. For example, to effectively use the C++ Standard Template Library (STL), you need to understand these difficult concepts: pointers, references, operator overloading and template, on top of the object-oriented programming concepts such as classes and objects, inheritance and polymorphism; and the traditional constructs such as decision and loop. C++ is performance centric. The C++ compiler does not issue warning/error message for many obvious programming mistakes, undefined and unspecified behaviors, such as array index out of range, using an uninitialized variable, etc, due to the focus on performance and efficiency rather than the ease of use - it assumes that those who choose to program in C++ are not dummies.

Ha Yoon sees funny quotes on top of images frequently in her social media feed. One day, she has an idea for one of her own. Which of these websites would be most likely to help her create what she wants? Group of answer choices a PDF generator an infographic template a meme generator a digital image editor

Answers

Answer:

Digital Image Editor

Explanation:

Ha Yoon is not trying to create a meme, or a text document (PDF), so the answer must be Digital Image Editor.

Which of the following would most likely be the target audience for a product
advertised on TV during Saturday morning cartoons?
A. Young adults between the ages of 17 and 25
B. Children between the ages of 5 and 12
C. Men over the age of 65
D. Women over the age of 50

Answers

Answer:

B

Explanation:

They are saturday morning cartoons. Saturday morning cartoons are meant towards an audience of young children.

I think its b if i get wrong i sorry

Let's review. What can be stored in a
variable? Why is using a meaningful
name for the variable important?

Answers

Answer:

In this lesson students work with partners to investigate several versions of the "Thermostat App" to understand how variables store and update information. To begin, students examine a version of the app where the temperature displayed changes each time a button is clicked. The next two versions of the app demonstrate how variables can store strings. Students learn about the patterns they are observing, specifically "Counter Pattern with Event" and "Variables with String Concatenation Pattern". To conclude the lesson, students review and discuss the programming patterns that they will make use of in the programs they write.

Explanation:

basta isagot mo

An array is another name for a list.

True or false. With explanation.

Answers

Answer:

True

Explanation:

An array could state a particular or indefinite number of items in order. The word is also synonymous to list

Answer:

True

Explanation:

HELP ME PLSSSS
Why are peripherals added to computers????
15 points!

Answers

A piece of computer hardware that is added to a computer in order to expand its abilities. ... Subsystem that transfers data between computer components inside a computer or between computers. Unlike a point-to-point connection, it can logically connect several peripherals over the same set of wires.

Answer:

Expand their capabilities

Explanation:

Which of the following is a category of authentication tools. A something you have B something u see c something you hear d something you want

Answers

Answer:

Explanation:

Something you have.

Answer:

something you have

Explanation:

The code below is repetitious. What is the output of this program?
num = 3
num = num + 1
num = num + 1
num = num + 1
print(num)

Answers

Answer:

6

Explanation:

Answer:

6

Explanation:

Edge 2021

Which are some examples of transitional words?

look, prepare, send
next, then, finally
can't, won't, wouldn't
if, even, all

Answers

Answer:

then,next,finally

.............

Next,then,finally :).

Which of the following is something that an Information Technology (IT) professional would do?


Collect and utilize data


Create and improve software


Manage grades and enrollments


Build and repair computers

Answers

Answer:

Probably the last one, build and repair computers.

Choose the correct item. Check your answers in the text.
3​

Answers

Answer:

You should do that

Explanation:

You didnt say anything

Other Questions
Michelle has a balance of $950 in a savings account that pays 3% interest compounded annually. If Michelle makes no deposits or withdrawals, how much money will be in her savings account after 2 years? Roman Civilization began in 509 B.C. and ended in 476 A.D. How long did Roman Civilization last? Show your work Can someone help me solve for y. Please make sure to explain how you got that answer. THANKS What is the value of X D=XF=103A. 51.5B. 128.5C. 77D. 38.5 Kite LMNO is shown below. What is the measure of angle M Railroad companies all over the nation began setting the same prices, not competing for the lower price. What is this called? How is this unfair to the average customer? can you guys help me please ? Activity 2Directions: Compose inverted sentences by adding a verb and a subject to thefollowing phrases. Make sure that the subject and verb agree.Out of the caveOut of the cave fly millions of fruit bats.VerbSubject1. Inside the chest2. Seated beside me3. Scattered along the beach4. There5. Above the hill Draw the structures of cyclohexane and benzene. Show all hydrogen atoms. Cyclohexane, C6H12 (six C in a ring) Benzene, C6H6 (six C in a ring) Dilemma: You worked very hard and saved a lot of money to buy an Xbox gameyou wanted. Now your friend wants to borrow some money from you to buy apresent for his mom. You can't give him money because you need it but you wantto help your friend. What do you do?1.What is the dilemma?2. Identify the contradicting values.3. What would you do? brain pop commas with clauses i need answers Which is the verb in this sentence? Becca finds a quarter on the street. Draw a force diagram of a 23kg box of eel tails being pulled with a rope horizontally across thebumpy floor A child on roller skates undergoes as acceleration of 0.6m/s^2 due to a horizontal net force of 24N . What is the mass of the child? BRAINLY PLS I NEED HELP WITH THE RIGHT ANSWER APS !HELP!! Order the 9 ( yes 9 including Pluto )planets from smallest to biggest according to volume Stanley is running a 5 mile race. He runs 1 mile every 6 minutes. Stanley's distance from the finish line after x minutes is represented by the function x+6y=30 explain logic circuit The organs involved in digestion contain what to make their walls move? A) muscles B) nerves C) proteins D) carbohydrates How was the Mexican war perceived in big cities such as New York and Philadelphia? Select the correct answer.Read the excerpt from a speech by US Secretary of Education Arne Duncan. What is the speechs purpose?A.to inform the country what students are learning in their local schoolsB.to gain support for a law that would improve student achievementC.to explain the roles of teachers in creating a better learning environmentD.to support a law that requires children to begin learning at a very young age