Answer:
The correct option is option 3 which is The code segment works as intended but only when the sum of the three lengths is an integer or the decimal part of the sum of the three lengths is greater than or equal to 0.5.
Explanation:
As the variable minLength is defined as an integer thus the value is being truncated although the value of 0.5 is being added however if the decimal portion of the length is less than 0.5, the portion is truncated.
Answer:
while True:
number = int(input("Enter a number: "))
product = number * 10
if product > 100:
break
print(str(product))
Explanation:
Create a while loop that iterates until a specific condition is created inside
Ask the user for the input
Multiply the input and put the result in product
Check if the product is greater than 100. If it is, stop the loop using break keyword
When the loop is done, print the product
Answer:
The correct answer is letter "A": Engage.
Explanation:
Social media has gained importance not only as an informative medium but as a means for marketing. The 4E framework states the four basic characteristics social media advertisement should fulfill. Those components are:
- Excite.<em> Provide customers attractive offers.</em>
- Educate.<em> Give consumers information about the product and the offering.</em>
- Experience.<em> Allow direct or indirect interaction with the good.</em>
- <u>Engage</u>.<em> Involve customers in activities related to the product that transcend the simple buying of the good.</em>
Answer:
3
Explanation:
The function floor() is used to give the integer which is smaller than or equal to the provided decimal value.
for example:
let a=5.8
floor(a);
the function provides the value 5 (smaller than or equal to 5.8).
In the given code:
variable num assigns the number 3.14.
then, floor(3.14) gives the value 3 (smaller than or equal to 3.14).
then, the echo print the value on the screen.
Therefore, the correct answer is 3.
66,73 73-66=7
13,21 21-13=8
10,20 20-10=10
the missing no. is 9 so
52+9=61.
the pattern is
66,73,13,21,52,61,10,20