Answer:
The answer is "Option (i) and (ii)".
Explanation:
In the given java code an integer array that is "beta" defines that contains 3 elements. To insert element in by user input we use scanner class object that is "cin". In the given question two options are defined that is used for inserting elements in array but there is a minor difference between them that can be described as:
- In option (i), To insert an element in array we use index value. It is time taking.
- In option (ii), In this option use a loop, inside a loop we write only one line, and this line inserts elements in array automatically.
Answer:
projector
Explanation:
The output device that would be used would be a projector. From the available options, this is the only option capable of showing a movie to the class. A projector "projects" (in other words sends an image) the movie that was inputted into the machine onto a screen. This allows a video image to be shown on the screen which the entire class can see. Speakers only output audio, 3D printers output physical objects, and a braille embosser only outputs braille onto paper.
Answer:
A DNS Server
Explanation:
DNS (Domain Name Server) is a server or a computer that holds the records of IP addresses on the internet or any network with their associated names of hosts, the job of the DNS is to resolve the domain name to an ip address that corresponds to the requested name everytime there is a request on a particular domain name.
Answer:
Select the text and then press Shift + F3 until the case you want is applied.
Answer:
import random
arr=[]
for i in range(100):
arr.append(i)
while True:
answer=random.choice(arr)
guess=int(input("enter your guess number between 0-100: "))
if answer is guess:
print("right guess\ncongratulations.....")
print("the answer was: "+str(answer))
break
elif guess < answer-20:
print("you guessed too low....\ntry again")
print("the answer was: "+str(answer))
elif guess > answer+20:
print("you guessed too high....\ntry again")
print("the answer was: "+str(answer))
else:
print("incorrect guess\ntry again")
print("the answer was: "+str(answer))
Explanation: