Answer:
- All variable names must begin with a letter of the alphabet or an. underscore( _ ).
-After the first initial letter, variable names can also contain letters and numbers.
-Uppercase characters are distinct from lowercase characters.
-You cannot use a C++ keyword as a variable name.
Answer:
\n
Explanation:
readline() method is used to read one line from a file. It returns that line from the file.
This line from the file is returned as a string. This string contains a \n at the end which is called a new line character.
So the readline method reads text until an end of line symbol is encountered, and this end of line character is represented by \n.
For example if the file "abc.txt" contains the lines:
Welcome to abc file.
This file is for demonstrating how read line works.
Consider the following code:
f = open("abc.txt", "r") #opens the file in read mode
print(f.readline()) # read one line from file and displays it
The output is:
Welcome to abc file.
The readline() method reads one line and the print method displays that line.
Answer:
Multiprogramming will be extremely difficult to be achieved.
Explanation:
If every byte of data read or written is handled by the CPU the implications this will have for multiprogramming are not going to be satisfactory.
This is because, unlike before, after the successful completion of the input and output process, the CPU of a computer is not entirely free to work on other instructions or processes.
Answer:
To calculate the total interest paid for the first year of a mortgage, the formula M = [P.r (1+r)n] / [(1+r)n-1] × 12 can be used.
Explanation: