Answer:
Digital literacy means having the skills you need to live, learn, and work in a society where communication and access to information are increasingly through digital technologies like internet platforms, social media, and mobile devices.
Explanation:
Key signatures were used because simply by knowing how many sharps or flats there were, the tuning would be more uniform. Tuning systems were not developed yet during the Baroque era and the concept of key was not introduced by then.
<span> </span>
Answer:
I, II only
Explanation:
A computer program is a compilation of instructions and commands that can be executed by a computer to carry out a specific task. Most computer devices can only function optimally with the help of a program.
Programs can repeat simple instructions very quickly in order to assist individual users to recognize images and sound effortlessly and to get rid of the drudgery of repeating instructions and commands by hand
Answer:
<!DOCTYPE html>
<html>
<body>
<h2>My Webpage</h2>
<script>
console.log("hello");
</script>
</body>
</html>
Explanation:
The above written is the HTML code which contains a script tag in which javascript code is written to print hello on the javascript developer console.The script element contains the statement console.log("hello"); which is used to print the argument provided in the console.log on the console of the javascript.
To see hello on the console you have open javascript console in the browser.Otherwise it will not be visible to you.
Answer:
import random
def roll_dice(r):
score1 = 0
score2 = 0
for i in range(r):
for j in range(5):
score1 += random.randint(1,6)
score2 += random.randint(1,6)
avg1 = score1/5
avg2 = score2/5
if avg1 > avg2:
print("Player1 won the " + str(i+1) + ". round ")
elif avg1 < avg2:
print("Player2 won the " + str(i+1) + ". round ")
else:
print("Tie")
score1 = 0
score2 = 0
roll_dice(3)
Explanation:
Import the random module
Create a function called roll_dice that takes one parameter r
Initialize two scores as 0 for the players
Create a nested for loop. The outer loop will simulate the rounds and inner loop will simulate the each roll.
Inside the inner loop which iterates five times, generate random numbers for two players and add these numbers to their score.
When the inner loop is done, calculate the average score of the players. If the first average is greater, player1 wins the round. If the second average is greater, player2 wins the round. Otherwise, it is a tie. Also, set the scores to zero so that they start again.
Call the function with parameter 3, simulating 3 rounds