Answer:
B) nested if...else
Explanation:
In Computer programming, there are four (4) main types of statements used in the decision-making process and these are;
I. If statement.
II. If....else statement.
III. Else.....if statement.
IV. Nested if...else statement.
The nested if...else statement allows you to check for multiple test expressions and execute different codes for more than two conditions. It uses the other three (3) statements in its decision-making process.
However, only the first test expression would be executed when it is true and then the program is terminated. Otherwise, the program would continue to run until it gets to the breaking point (else statement) and then terminates.
nums = input("Enter your numbers: ")
lst = nums.split()
new_lst = ([])
for i in lst:
if int(i) >= 0:
new_lst.append(int(i))
new_lst.sort()
for x in new_lst:
print(x, end=" ")
The above code is in case the user enters the numbers.
def func(lst):
lst.sort()
for i in lst:
if i >=0:
print(i, end=" ")
lst = ([10,-7, 4, 39, -6, 12, 2])
func(lst)
The above code is in case you must input the numbers manually via a function.
I hope this helps!
Answer:
Key Driver
Explanation:
Its undoubtedly the information that is most important for any new business initiatives. All these decisions are taken by Board of directors, and are being executed by the Chief Executive of the company.However, these are higher officials and are well educated to take decision from given refined information. The data need to be more clean for the Board of Directors as compared to the CEOs. The data must be more precise and more accurate for the higher authority, and like more precise for management as compared to the technical team. The reason is shortage of time. Also what is information for technical team, is data for the management. And all this is made possible through IT, and subjects like Information Science, and various IT technologies.
Answer:
True
Explanation:
Portion Markings encompasses a necessary features such as the subject, title, paragraphs, sub-paragraphs, sections, tabs, attachments, the classified signature block, bullets, tables, and even pictures.
Under the current E.O. 13526, the standard markings are required for all documents that contain originally classified information and marking elements listed above.
Some computer engineering students decided to revise the LC-3 for their senior project. KBSR and the DSR into one status register: the IOSR (the input/output status register). IOSR[15] is the keyboard device Ready bit and IOSR[14] is the display device Ready bit can be done in LC-3.
LC-4 is a poor design.
Explanation:
LC-3, is a type of computer educational programming language, an assembly language, which is a type of low-level programming language.
It features a relatively simple instruction set, but can be used to write moderately complex assembly programs, and is a theoretically viable target for a C compiler. The language is less complex than x86 assembly but has many features similar to those in more complex languages. These features make it useful for beginning instruction, so it is most often used to teach fundamentals of programming and computer architecture to computer science and computer engineering students.
The LC-3 specifies a word size of 16 bits for its registers and uses a 16-bit addressable memory with a 216-location address space. The register file contains eight registers, referred to by number as R0 through R7. All of the registers are general-purpose in that they may be freely used by any of the instructions that can write to the register file, but in some contexts (such as translating from C code to LC-3 assembly) some of the registers are used for special purposes.
When a character is typed:
- Its ASCII code is placed in bits [7:0] of KBDR (bits [15:8] are always zero)
- The “ready bit” (KBSR[15]) is set to one
- Keyboard is disabled -- any typed characters will be ignored
When KBDR is read:
- KBSR[15] is set to zero
- Keyboard is enabled
- Alternative implementation: buffering keyboard input