Answer:
Written in Python
filenm = input("File name: ")
myfile = open(filenm+".txt")
for i in range(10):
line = myfile.readline()
print(line)
print("End of file")
Explanation:
This line prompts user for file name
filenm = input("File name: ")
This line creates an instance of the file
myfile = open(filenm+".txt")
This line iterates through the 10 lines
for i in range(10):
This line reads the line
line = myfile.readline()
This line prints each line
print(line)
This line prints a message indicating that all possible lines have been printed
print("End of file")
You should state the language you're using in these types of questions; here's an example in C++.
bool isQuad;
int sides;
std::cout << "How many sides does the shape have?";
std::cin >> sides;
if (sides == 4)
isQuad = true;
else
isQuad = false;
***Correction: <em>Options of the question have mistakes in them. The correct options are given in the comment section under the question above</em>***
Answer:
The correct answer is Option (1) three_com
Explanation:
There are a few rules you need to keep in mind while naming any variable, which are as follows:
- The first letter of any variable name should be either a letter of an alphabet or an underscore. For example, helloWorld or _helloWorld.
- No special characters (except underscore obviously) or spaces in between the name are allowed. For example, <em>hello&world</em> or <em>hello world</em> are not valid names.
- The first letter of the variable name should not be a number.
Now look at all the options given:
Option-1 (three_com): The name starts with the letter <em>t</em> of an alphabet and there are no spaces or special characters in it except an <em>underscore</em> (which is acceptable). Therefore, this option is correct.
Option-2 (3com): The name starts with a number. Not allowed.
Option-3 (3_com): The name starts with a number. Not allowed.
Option-4 (ampersand&): The name has a special character <em>&</em> in it, which is not allowed as per the aforementioned rules.
Hence, the correct answer is option (1) <em>three_com</em>.
Answer: A database management system tends to support administration, development, and use of the platforms. A Relation Database Management System (RDBMS) is referred to as a type of Database Management System (DBMS) that consists of a structure(row-based table) that tends to connect data elements and also involve functions that are supposed to maintain accuracy, security, consistency and integrity of the data.
Answer:
The answer is a on edge2020.
:D have a great day and stay safe <3.