Answer:
Choose what you think based on this.
Explanation:
with a for loop:
>>> students = 3
>>> for student in range(students):
>>> print(student)
would output
>>> 0
>>> 1
>>> 2
with a while loop now:
>>> students = 3
>>> student = 0
>>> while student < students:
>>> student = student + 1
>>> print(student)
the for loop is more compact than the while loop. But there may be some times when a you cant do a for loop. The first question is more than likely definite but I don't know the second answer.
Answer:
B. style=text-align: right
Explanation:
text-align is a CSS property having 5 types of values. Each of values define below.
left - Aligns content to left.
right - Aligns content to right.
center - Centers the content.
justify - Depends on the width of the content, it will align itself to both left and righ
inherit - It specifies the the value of text-align should be taken from parent element.
Answer:
1.) One set of data or complete entry
Explanation:
In databases a record is an individual entity that has filled every column of information in the database which is a collection of related information,files, or data.
Answer:
True. A goal programming problem
Explanation:
Goal programming is an optimisation technique to solve problems with multiplicity of objectives, which are generally in commensurable and they often conflict each other in a decision making horizon.In a certain programming environment, optimisation of a set of objectives is involved there in the decision situation. Here, instead of optimising them directly, achievement of the assigned target values called aspiration levels of them is considered. In goal programming method, the unwanted deviations (under and / or over) from the aspired levels are minimised in the goal achievement function (objective function) to reach a satisfactory solution in a crisp decision environment
Answer:
N = [1,1,1,1,1],
[2,2,2,2,2],
[3,3,3,3,3],
[4,4,4,4,4]
def printIt(ar):
for row in range(len(ar)):
for col in range(len(ar[0])):
print(ar[row][col], end=" ")
print("")
N=[]
for r in range(4):
N.append([])
for r in range(len(N)):
value=1
for c in range(5):
N[r].append(value)
value=value + 1
printIt(N)
print("")
newValue=1
for r in range (len(N)):
for c in range(len(N[0])):
N[r][c] = newValue
newValue = newValue + 1
printIt(N)
Explanation:
I got 100%.