Answer:
li=list(map(str,input().strip().split()))#taking input of the string.
#swapping first and last element.
temp=li[0]
li[0]=li[-1]
li[-1]=temp
print(li)#printing the list.
Explanation:
I have taken the list li for taking the input of strings.Then after that swapping first and last element of the list.Then printing the list.
Answer:
public class Main
{
public static void main(String[] args) {
int carYear = 1995;
if(carYear < 1967)
System.out.println("Probably has few safety features.");
if(carYear > 1971)
System.out.println("Probably has head rests.");
if(carYear > 1992)
System.out.println("Probably has anti-lock brakes.");
if(carYear > 2002)
System.out.println("Probably has tire-pressure monitor.");
}
}
Explanation:
The code is in Java.
Initialize the carYear
Use if statements to handle year before 1967, after 1971, after 1992 and after 2002.
Print the required message for each if statement
The correct option to this question is class interface.
The class interface is the portion of a class that is visible to the application’s programmer. Class interfaces mean implementation of public methods of the class. These class interfaces of the class are easily visible to the application’s program either the one who is developing the application program or the one who is reading the application’s code.
Class interface can be seen by the other classes as its public face. Class interfaces separate the class’s implementation and its interaction with other classes. That way the implementation of the class can be modified easily without being known by other classes. Basically, the programmer who is developing the program, all the portions of the programm is visible to that programmer.
For example, the class is written below:
class class-name
{
private members;
public method()
{
//method defination
}
}
when the class object is created, the code of the object to the programmer is visible.
<u>While the other options are incorrect:</u>
- Form: the form is used to collect information from the user. It can be build using front-end development tools
- Design: Design is a term used in computer or software engineering to make something from scratch or beginning. It can be methodologies, standards, or techniques etc.
- Control: Control is the mechanism or a term used in software development to control the program or execution of the program.
You can learn more about class interface at
brainly.com/question/13089781
#SPJ4
The complete question is found while searching over internet:
"
<em>The class ________ is the portion of a class that is visible to the application's programmer.</em>
- <em>Interface</em>
- <em>Form</em>
- <em>Design</em>
- <em>Control </em>
"