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.
TCP is a reliable protocol. Verification of the data (to an extent) is performed. UDP is an unreliable protocol. It's a "fire and forget" protocol. Since the verification ( packet counts, checksums ) isn't being done, the application[s] have to do it.
Answer:
Correct answer is D
Explanation:
open is a function in c++ programming language used to interact with files.The function takes two parameters as input
- File name
- mode
File Name
File name is a string name of file to be opened.This is a compulsory parameter for open method.
Mode
Mode is an optional parameter in open function.Following are the accepted values of mode parameter
Prefix ios:: is added to start of each
- in (Open file in input mode for writing data to file)
- out (Open file in output / read-only mode to read data from file)
- binary (Open file in binary format)
- ate (Set the starting point of file to the end of file. Default starting point of file is start of file)
- "trunc" (If file is opened multiple times all previous data is replaced with new data)
- app (All operations of output are performed the end of file)
Use | operator to use multiple modes at a time.
Answer:
You can answer this very easily by considering which of the circumstances affect the end user and which affect the developer:
1) Didn't use comments in the code
- affects developers
2) User complaints about language used in the program
- affects users
3) The variables have meaningless names
- affects developers
4) The program should have used a loop
- affects developers
5) The numeric results are incorrect
- affects users
Your answers then are 2 and 5, spoken languages and incorrect output will very much affect the user experience.