1.) narrative = a THATS all I can answer rn sorryyyy
Answer:
1/2000
Explanation:
import java.util.Scanner;
public class InputExample {
public static void main(String [] args) {
Scanner scnr = new Scanner(System.in);
System.out.print("Enter birth month and date:");//comment this line if not needed
int birthMonth=scnr.nextInt();
int birthYear=scnr.nextInt();
String output= birthMonth+"/"+birthYear+"\n";
System.out.println(output);
}
}
if using this code the out put should be 1/2000
Answer:
Destructor:-To free the resources when lifetime of an object ends.
Accessor:-To access private properties of the class.
Explanation:
The purpose of a destructor is to free the resources of the object that it has acquired during it's lifetime. A destructor is called once in the lifetime of the object that is also when the ifetime of the object ends.
The purpose of the accessors is to access private properties of the class.Accessor cannot change the value of the private members.They are also called getters.
Answer:
Option 4: Different programming languages are better for different functions, and new programming languages are being written all the time.
Explanation:
All programing languages are best in their own perspective. Some are easy to handle while other have a smart but tricky context. Therefore different languages are suitable for different functions.
Functional Programming is the term depicting the modularity of code. In actual, it deals the data and functions as immutable. Which means the program state is never changed, the data you pass into the function is returned in a transformed form but actual data is not changed. Not all languages offer functional programming, the top languages which are better with such features are:
- Java Script
- Python
- C++
Moreover, new programming languages are being written for more and more convenience and ease. They are being introduced day-by-day because:
- There is a need of new features.
- Flaws in previous languages.
- More functionality is needed in smaller time.
- Code needs to be more and more smaller.