Company: Accenture_japan_2dec_MCQ
Difficulty: medium
Choose the correct statement regarding the following C++ code snippet: int main(void) { while (1) { string s; cin >> s; if (s == "yes") { cout << "clinic"; } else { break; } } return 0; } Entering the string "Yes" will exit the program. Entering "yessir" will return the string "clinic". If you enter "yes" once, it outputs "clinic" and the program exits. The program will only terminate if the input is exactly "yes". In a UNIX-like OS, file authority varies depending on the user. Which of the following descriptions is correct? There is one owner in the file, and authority is given only to that user. There are multiple owners in the file, and privileges are granted only to those users. There is one owner and one group for the file, and different authorities are given to the owner, users belonging to the group, and others. There are multiple owners and groups in the file, and two types of users: owner and users belonging to the group. Which of the following databases are classi