Answer:
Are there supposed to be answer choices with this question?
Child labor laws are basically laws placing restrictions and regulations on the work of minors.
Answer & Explanation:
To print 10 on a line and each number separated by space; you make the following modifications.
print(str(i)+" ",end=' ')
str(i)-> represents the actual number to be printed
" "-> puts a space after the number is printed
end = ' ' -> allows printing to continue on the same line
if(count == 10):
print(' ')
The above line checks if count variable is 10;
If yes, a blank is printed which allows printing to start on a new line;
The modified code is as follows (Also, see attachment for proper indentation)
count = 0
for i in range(100,201):
if(i%6 == 0 and i%5!=0) or (i%5 ==0 and i%6!=0):
print(str(i)+" ",end=' ')
count = count + 1
if(count == 10):
print(' ')
count = 0
Answer:
"Binary scope resolution operator" is the correct answer to the following question.
Explanation:
The following answer is correct because the Binary scope resolution operator is represented by the double colon(::).
The Binary scope resolution operator is used in many ways in different programming languages. In C++, the Binary scope resolution operator is used to call the global variable if the name of both global and local variables is the same and also use when we want to define method from the external side of the class and we also used to access any static data type variable.
Answer:
Java Code given below with appropriate comments for better understanding
Explanation:
1.
public String whatAmI(E e) {
//.getClass() returns the runtime class of an object
//.equals() determines whether two objects are equivalent
//by calling a new static instance of a wrapper object we can analyze
//it's class type and compare it to the variable passed in
if(e.getClass().equals(new Integer(1).getClass())) {
return "Integer";
}
else if(e.getClass().equals(new String("1").getClass())) {
return "String";
}
else if(e.getClass().equals(new Double(1.0).getClass())) {
return "Double";
}
else {
return "Who knows!";
}
}
2.
public String reverseWord(String word) {
Stack<Character> stack = new Stack<Character>();
for (int i = 0; i < word.length(); i++) {
stack.push(word.charAt(i));
}
String result = "";
while (!stack.isEmpty()) {
result += stack.pop();
}
return result;
}
Answer:
Microsoft word and power point
Explanation:
In a Microsoft Word you can make multilevel list and can select different theme and name the buttons to make the customization. Similarly in Microsoft Power Point you can make multilevel list and customize it by Home tab in paragraph group, there are many options to add your customization level.