The concept of abstraction and abstract data types on computer programming is given below.
The use of abstraction to manage complexity is crucial. When anything is regarded abstractly, just the salient characteristics are highlighted. It is not necessary to recall or even notice the information that is left out.
What is abstraction?An abstraction of a data structure that merely provides the interface to which the data structure must conform is referred to as an abstract data type. No precise information about how something should be implemented or in what programming language is provided by the interface.
An object's behavior can be described by a set of values and a set of actions, and this behavior is known as an abstract data type (ADT). The definition of ADT merely specifies the actions that must be taken, not how they must be carried out.
Therefore, List data structures, stack data structures, and queue data structures are examples of abstract data types in data structures. The abstract data type defines a number of legitimate operations that can be performed on a specific data structure.
Learn more about abstraction from
https://brainly.com/question/7994244
#SPJ1
What is output if the user types in 7? Click all that apply.
Based on the code that is given below, the output if the user types in 8 is option C: C.
What is the line of code about?The code above is an if statement: A will not be printed since the user had specified x = 8, which does not satisfy the criterion x!= 8 (!= stands for not equal).
Since x must be greater than or equal to 10 in order to satisfy the criterion for "B" to be printed, "B" will not be printed because x does not meet the condition.
Also x is less than 10, the requirement of x10 is satisfied, and "C" will be printed as a result.
Learn more about coding from
https://brainly.com/question/20312196
#SPJ1
See correct question below
x = int (input ("Enter a number: "))
if (x != 8):
print ("A")
if (x >= 10):
print ("B")
if (x < 10):
print ("C")
if (x % 2 == 1):
print ("D")
What is output if the user types in 8? Click all that apply.
A
B
C
D
QUICK HELP PLEASE DUE IN 10 MIN!
HELP!
What is a central processing unit? Select two options.
the electronic circuitry that receives data and transforms it to human-readable form
the electronic circuitry that stores data and instructions so they can be processed
the electronic circuitry that handles all the instructions it receives from hardware
the electronic circuitry that stores information for immediate use by software
the electronic circuitry that handles all the instructions it receives from software
It is to be noted that a central processing unit is;
The central processing unit (CPU) directs the computer through the many processes of problem resolution.
Information enters the computer through an input unit, is analyzed by the central processing unit, and then outputs to the user via an output unit.
The CPU executes fundamental arithmetic, logic, controlling, and input/output (I/O) activities provided by program instructions. This is in contrast to external components like main memory and I/O circuits, as well as specialized processors like graphics processing units (GPUs).
Learn more about central processing units:
https://brainly.com/question/4558917
#SPJ1
Answer:
C and E
Explanation:
After the code that follows is executed, what is the value of discountAmount?
var discountAmount;
var orderTotal = 200;
if (orderTotal > 200) {
discountAmount = orderTotal * .3;
} else if (orderTotal > 100) {
discountAmount = orderTotal * .2;
} else {
discountAmount = orderTotal * .1;
}
An integer variable is defined and assigned an initial value of [tex]200[/tex].
There is an if-else block in the next part of the code. In the first part, a condition is defined in case the value of the defined variable is greater than [tex]200[/tex]. But since the value of our variable is [tex]200[/tex], we will proceed to the next block.
Since the value of our variable is greater than [tex]100[/tex], we will follow the commands in the second block.
The expression [tex].2[/tex] means multiplying the current number by [tex]0.2[/tex].
Therefore, we will multiply [tex]200[/tex] by [tex]0.2[/tex].
The program output will be therefore as [tex]40[/tex].Please help
Which action is not following the rules of netiquette?
A) Be respectful of human feelings and emotions.
B) Use proper grammar and spelling.
C) Avoid engaging in a negative way.
D) Use acronyms to make typing more efficient.
An action which does not follow the rules of netiquette is: D) Use acronyms to make typing more efficient.
What is netiquette?Netiquette is a short terminology for network etiquette or Internet etiquette and it can be defined as the set of behaviors, rules, proper manners, and customs that are considered to be polite (courteous) and should be followed by end users, especially when they are communicating through the use of an email, computer technology, and social media over the Internet.
This ultimately implies that, netiquette simply refers to the acceptable or correct way of using the Internet for respectful, polite (courteous) and appropriate communication.
In this context, we can reasonably infer and logically deduce that making use of acronyms or abbreviations does not follow the rules of netiquette.
Read more on netiquette here: https://brainly.com/question/27372890
#SPJ1
The process of preparing a floppy diskette for use is called_____?
A. process
B. data
C. byte
D. bit
PLEASE FILL IN THE BLANK
With a bit depth of __ I can support 8 grayscale variations of black and white images.
Answer: Thre correct answer is 3 bit
Explanation:
Using binary, a 3-bit value can support 8 variations in grayscale:
1 000
2 001
3 010
4 011
5 100
6 101
7 110
8 111
The given program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented. The program fails and throws an exception if the second input on a line is a string rather than an integer. At FIXME in the code, add try and except blocks to catch the ValueError exception and output 0 for the age.
Ex: If the input is:
Lee 18
Lua 21
Mary Beth 19
Stu 33
-1
then the output is:
Lee 19
Lua 22
Mary 0
Stu 34
# Split input into 2 parts: name and age
parts = input().split()
name = parts[0]
while name != '-1':
# FIXME: The following line will throw ValueError exception.
# Insert try/except blocks to catch the exception.
try:
age = int (parts [ 1 ]) + 1
print('{ }{ }'.format(name, age))
# Get next line
parts = input().split()
name = parts[0]
except ValueError:
print ('Invalid value!')
# Get next line
parts = input().split()
name = parts[0]
Using the knowledge of computational language in python it is possible to write a code that program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented.
Writting the code:# Split input into 2 parts: name and age
parts = input().split()
name = parts[0]
while name != '-1':
# Insert try/except blocks to catch the exception.
try:
age = int(parts[1]) + 1
# printing name and age
print('{} {}'.format(name, age))
except ValueError:
# printing name and age as 0
print('{} {}'.format(name, 0))
# Get next line
parts = input().split()
name = parts[0]
See more about python at brainly.com/question/18502436
#SPJ1
4. Some programs add extra characters,
called a(n)________, to
a file name.
Answer:
big letters
Explanation:
in order for the file to be more impacable
This is the building which spy uses for information transmission.
He use the opened and closed windows for encoding the secret password. The code he
uses is ASCII. What is the password? HELPPPPP
Based on the given question that a spy stays in a building and transmits information using the opened and closed windows for encoding the secret password which he uses in ASCII, the password is 01.
Step by step explanationsStep 1
In digital electronics, the information is processed in form of binary data either 0 or 1.
This binary data 0 or 1 is known as Bit. To turn on the switch binary data used is 1 and binary data 0 is used for the turn off.
A byte is a combination of 4 bits. Here only the switch is turned on and turned off. Hence, the system processed the information in terms of the Bit.
What is ASCII?This refers to the acronym that means American Standard Code for Information Interchange and is a character encoding standard for electronic communication.
Read more about ASCII here:
https://brainly.com/question/13143401
#SPJ1