Answer:
yo im sorry eat my cookie
Explanation
doorkoeeworkwoeroewkrwerewrwe
Answer:
False.
Explanation:
When we declare a variable as reference type we have to initialize that variable otherwise the compiler will give error that the reference variable is not initialized.You also cannot initialize the variable Foo& with NULL value because it is a reference variable and we have to initialize it.
On the other there is no need to initialize the variable Foo * since it is a pointer it can also store NULL value.
So the answer is only Foo* can store NULL value not Foo &.
Answer:
Following are the code to this question:
list_val = input()#defining a integer variable for input value
test_grades = list(map(int, list_val.split()))#defining test_grades as a list
sum_extra = -999 #defining sum_extra that holds negative integer value
sum_extra = 0#defining sum_extra that holds value
for y in range(len(test_grades)):#defining a for loop to check range of list
if(test_grades[y] > 100):# defining if block that check list value is greater then 100
sum_extra = sum_extra + (test_grades[y] - 100)#use sum_extra variable to hold extra value and add this value
print('Sum extra:', sum_extra)#print value
Output:
101 83 107 90
Sum extra: 8
Explanation:
In the above code a, "list_val" variable is declared, that uses an input method to input the values and declared a "test_grades" variable that uses a list method to add all values in the list.
In the next step, the "sum_extra" variable is declared, which holds some values and defines a for loop to check the range of the "test_grades", and define a if block, that checks list value is greater than 100. If the condition is true, it will remove the extra value, and add it into the sum_extera variable and add its value, and at the last use, print variable to print its value.
Asyncronous is the answer I think
Answer:
(d) if (radius > 0) System.out.println(radius * radius * 3.14159);
Explanation:
Given
Code segment (a) to (d)
Required
Which is correct
Code segment (a): radius <=0
This means that radius is 0 or less, i.e. 0 or negative
Code segment (b): radius !=0
This means that radius is not equal to 0 i.e. it could be positive or negative but definitely not 0
Code segment (c): radius >=0
This means that radius is 0 or greater, i.e. 0 or positive
Code segment (d): radius >0
This means that radius is greater than 0 i.e. positive
<em>Hence, (d) is correct</em>