Answer:
Following are the code to this question:
def is_question(input_string): # defining method is_question
output = '?' in input_string # checking question mark symbol in value
return output #return value
input_string = input('Enter any string value: ') # defining variable input_string to input value
print (is_question(input_string)) # call method and print return value
Output:
Enter any string value: what is your name?
True
Explanation:
In the given python program code, a method "is_question" is declared, which accepts an "input_string" value in its parameter.
- Inside the method, an output variable is used, that search question symbol in the parameter value and return its value.
- In the next step, the input_string variable is declared, which uses the input method to accepts string value and passes into method calling time and print its return value.
The code segment makes use of conditional statements.
Conditional statements in programming are used to make decisions
The code segment in C++ is as follows
if (score > 90) {
grade = 'A';
}
else if (score >= 80 && score < =90) {
grade = 'B';
}
else {
grade = 'C';
}
The above code segments take the score, make comparison, and then determine the appropriate letter grade.
Read more about code segments at:
brainly.com/question/20475581
Answer:
The “Information poor” are consumers who use traditional mass media information such as television, DVDs, radios and magazines. ... On the opposite “information rich” stands for a new elite within the information society.
Answer:
Logic error.
Explanation:
Logic error is that type of error in the programming language in which the outcome of the program is incorrect due to the fault on implementing the logic in the program by the programmer, it gives output but that output is incorrect.
<u>For example</u>:
If the programmer wants to create the program of the greater than and he implements wrongly '>' to '<' then the following program returns output but that output is incorrect.
your answer is c hope this helps