Answer:
The answer to this question is given below in the explanation section.
Explanation:
The correct option to this question is:
.clr{color:blue;}
I write the complete code of HTML using this CSS style to execute this scenario as given below
<html>
<head>
<style>
.clr
{
color:blue;
}
</style>
</head>
<body>
<a href="pg.html" class="clr">click here</a>
<h2 class="clr">Home</h2>
</body>
</html>
The bold text is a complete code of this question. When you will run it it will execute a link and Home text on the page in blue color. So the correct option is .clr{color:blue;}
Answer:
short_names = ["Gus", "Bob", "Ann"]
print(short_names[0])
print(short_names[1])
print(short_names[2])
Explanation:
There are some typos in your code. In addition to the missing part of the code, I corrected the typos.
First of all, initialize the list called short_names. The list starts with "[" and ends with "]". Between those, there are must be the names (Since each name is a string, they must be written between "" and there must be a semicolon between each name)
Then, you can print each name by writing the name of the list and the index of the names between brackets (Index implies the position of the element and it starts with 0)
The answer to your question is a shot
Answer:
1) The value of x will be 6.
2) The value of y will be 7.
Explanation:
1) The value of x will be 6.
The enum values are labeled by default from 1. This means that Sun = 1, Mon = 2, Tue = 3 and so on.
So, x = Mon = 2 and y = Sat = 6
x increases up to y = 6 in the while loop.
and then y also increments by 1.
2)So the value of y = 7.
You will need actual printf("Sun") or printf("Mon") for printing the actual text for the enum.