Select all that apply to Enums: Group of answer choices While mainly a readability feature, we can technically use Enum to do things like spoof a boolean type in C allowing us some level of functionality Enums let us build a series of any kind of constant Enums allow us to print names for integers instead of numbers Enums are great for representing states and other common constants like colors Enums let us specifically value each constant we create Flag question: Question 59 Question 59

Answers

Answer 1

Answer:

-- While mainly a readability feature, we can technically use Enum to do things like spoof a Boolean type in C allowing us some level of functionality.

-- Enums are great for representing states and other common constants like colors.

-- Enums let us specifically value each constant we create.

Explanation:

Enums is a part of a programming language which helps a developer or a programmer to defined a set of the named constants. Using the enums will help in making it easier to document the intent and also to create set of distinct cases.

Option 1 is applicable as in the Boolean there are only TRUE and FALSE values. By using enum one can add more state like that of being difficult or normal or easy.

Option 4 is applicable because enums are used to represent various states and also other constants.

Option 5 is also applicable they allow the developer to create each value constant.


Related Questions

Consider a file system using the indexed allocation. The block size is 512 bytes and the pointer to a block takes 2 bytes. The largest file size that a one level indexed allocation method could handle is ___________ KB. Recall that 1KB is equal to 210 bytes. Answer -1 if there is no limit based on the provided information.

Answers

Answer:

128 KB      

Explanation:

Given data :

The block size = 512 bytes

Block pointer size = 2 bytes

In an indexed allocation, a special block named Index Block contains all the pointers to the blocks that the file had occupied.

Therefore, the maximum number of block pointer in 1 block :

[tex]$=\frac{\text{block size}}{\text{pointer size}}$[/tex]

[tex]$=\frac{512}{2}$[/tex]

= 256

Thus, a block can hold maximum 256 pointers.

It is given the level of indexing is one. So,

Maximum size of the file =  maximum number of block pointers in 1 file x block size

                                          = 256 x 512

                                          [tex]$=2^8 \times 2^9$[/tex]

                                          [tex]$=2^{8+9}$[/tex]

                                           [tex]$=2^{17}$[/tex]

                                          [tex]$=2^7 \times 2^{10}$[/tex]

                                          [tex]$=128 \times 2^{10}$[/tex]

                                          = 128 KB   (∵ 1 KB = [tex]2^{10} \ B[/tex] )

Therefore, the largest file that 1 level if indexed allocation method can handle is 128 KB.

what are the different steps while solving a problem using computer? explain​

Answers

Explanation:

The following six steps must be followed to solve a problem using computer.

Problem Analysis.

Program Design - Algorithm, Flowchart and Pseudocode.

Coding.

Compilation and Execution.

Debugging and Testing.

Program Documentation.

Which XXX declares a student's name. public class Student { XXX private double myGPA; private int myID; public int getID() { return myID; } } Group of answer choices String myName; public String myName; private myName; private String myName;

Answers

Question:

Which XXX declares a student's name.

public class Student {

   XXX

   private double myGPA;  

   private int myID;

   public int getID() {

        return myID;

   }

}

Group of answer choices

a. String myName;

b. public String myName;

c. private myName;

d. private String myName;

Answer:

private String myName;

Explanation:

To declare a student's name, the following should be noted.

i. The name of the student is of type String

ii. Since all of the instance variables (myGPA and myID) have a private access modifier, then myName (which is the variable name used to declare the student's name) should be no exception. In other words, the student's name should also have a private access.

Therefore, XXX which declares a student's name should be written as

private String myName;

Option (a) would have been a correct option if it had the private keyword

Option (b) is not the correct option because it has a public access rather than a private access.

Option (c) is not a valid syntax since, although it has a private access, the data type of the variable myName is not specified.

Option (d) is the correct option.

01 Describe all the possible component of a chart​

Answers

Answer:

Explanation:

1) Chart area: This is the area where the chart is inserted. 2) Data series: This comprises of the various series which are present in a chart i.e., the row and column of numbers present. 3) Axes: There are two axes present in a chart. ... 4)Plot area: The main area of the chart is the plot area

2. 5s is a Chinese principle adapted for use in the workplace.
True or False​

Answers

Answer:

A. true

Explanation:

because 5s is the.................

what is a microscope ​

Answers

Answer:

an optical instrument used for viewing very small objects, such as mineral samples or animal or plant cells, typically magnified several hundred times

Answer:

A microscope is a laboratory instrument used to examine objects that are too small to be seen by the naked eyes.

LAB: Warm up: Drawing a right triangle This program will output a right triangle based on user specified height triangle_height and symbol triangle_char. (1) The given program outputs a fixed-height triangle using a character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt) (2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or* Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts) Example output for triangle_char = % and triangle_height = 5: Enter a character: Enter triangle height: 5 273334.1408726 LAB ACTIVITY 16.6.1: LAB: Warm up: Drawing a right triangle 0/3 main.py Load default template... 1 triangle_char - input('Enter a character:\n') 2 triangle_height = int(input('Enter triangle height:\n')) 3 print('') 4 5 print ('*') 6 print ("**') 7 print ("***') 8

Answers

Answer:

The modified program in Python is as follows:

triangle_char = input('Enter a character:\n')

triangle_height = int(input('Enter triangle height:\n'))  

for i in range(triangle_height):

   print(triangle_char * (i+1))

Explanation:

This gets the character from the user

triangle_char = input('Enter a character:\n')

This gets the height of the triangle from the user

triangle_height = int(input('Enter triangle height:\n'))  

This iterates through the height

for i in range(triangle_height):

This prints extra characters up to the height of the triangle

   print(triangle_char * (i+1))

Here's the modified program that incorporates the requested changes:

python

Copy code

triangle_char = input('Enter a character:\n')

triangle_height = int(input('Enter triangle height:\n'))

print('')

for i in range(1, triangle_height + 1):

   line = triangle_char * i + ' ' * (triangle_height - i)

   print(line)

This program uses a loop to iterate from 1 to triangle_height. In each iteration, it creates a line by concatenating triangle_char repeated i times with spaces (' ') repeated (triangle_height - i) times. The resulting line is then printed.

For example, if the user enters % as the character and 5 as the height, the output will be to make sure to maintain the indentation properly in your code for it to work correctly.

Learn more about python on:

https://brainly.com/question/30391554

#SPJ6

Other Questions
A + B + C = 4 step by step please Drag the numbers to label the points plotted on the number line. The situation in the photograph Let me see you pass was a result of the effect of what? Witch part of an atom is mostly empty space? Please help me with this geometry question why would a culture find the sociopathic doctor so fascinating? each of the boys____ here on time yesterday.fill it (06.02) Eric plotted the graph below to show the relationship between the temperature of his city and the number of cups of lemonade he sold daily: A scatter plot is shown with the title Lemonade Sales. The x-axis is labeled High Temperature, and the y-axis is labeled Cups of Lemonade Sold. Data points are located at 30 and 4, 40 and 6, 40 and 8, 50 and 2, 55 and 10, 65 and 14, 70 and 16, 75 and 14, 85 and 19, 90 and 20. Part A: Describe the relationship between the temperature of the city and the number of cups of lemonade sold. (2 points) Part B: Describe how you can make the line of best fit. Write the approximate slope and y-intercept of the line of best fit. Show your work, including the points that you use to calculate the slope and y-intercept. (3 points) Jack had 3bags of golf balls with b balls in each bag; then his friend gave him 6 more golf balls. How many golf balls does Jack have now? Demographers have added a fifth stage to the classic four-stage transition theory.Namely, when birth rates fall below replacement and death rates exceed birth rates,a country can be said to have entered Stage 5. As mentioned in the course, all ofthese countries are now considered to be at Stage 5 excepta) Argentina.b) Greece.c) Germany.d) Portugal. I can't believe it, said Wiley Coyote, I am the president of Acme enterprises and we make $200,000 a year profit with me working my tail off. Our distributor, Road Runner Representatives, made over $800,000 in commissions. I don't understand why they are making all of that money when all they do is run around all day and say beep-beep to customers. I think we should lower the commission rate to bring their income down to a more reasonable level. This is an example of Read the following paragraph and respond to the questions below.(1) Frequently, department managers and supervisors recruit applicants without working through our corporate human-resources office. (2) Our human-resources departments at all of our locations across the country have experienced this problem. (3) Recently, the manager of our tool-design department met with a recent industrial design graduate to discuss an opening for a tool designer. (4) The graduate was sent to the human-resources department, where she was told that no such position existed. (5) When the tool-design manager asked the director of human resources about the matter, the manager learned that the company president had ordered a hiring freeze for two months. (6) Im sure that our general employment situation will get better. (7) As a result of the managers failure to work through proper channels, the applicant was not only disappointed but bitter.a. Which number sentence is the topic sentence?b. Which number sentence does not contribute to paragraph unity?c. What is the writer providing in sentences 3 through 7 to help the reader understand his/her point?d. Why is that helpful, or why is the message better by adding sentences 3 through 7? Which of the following represents an element ? H2O H2 NaCl CaCO3 The photograph below shows the East African Rift Valley in Africa. Which tectonic movementof Earths crust is most likely responsible for this feature? Select all the numbers that are solutions to the inequality 4,5,,6>5,5.2>5,5.01>5,0.5Plzzz answer Ill give you 10 points Whats the ratio of 20 to 3 words pull words. you can form new words use the indicated endings to form derived words importance of critical listening How do I do this?? Help plse! I need help!!!! :))))