11.A user opens an existing file for editing by issuing the 'vi my_file' command and moves the cursor to the 70th line. The editor is not in INSERT mode. Which of the following statements correctly describe the results of executing a?^a.*d$?-1 command? O It will search backwards (from the cUrent cursor position) for a word that begins with 'a' am ends with 'd'. O If the search is successful the cursor will move to the line before the line containing the seam string. O It will search backwards (from the line above the current line) for a word that begins with 'au and ends with 'd. O It will search backwards (from the line above the current line) for a line that begins with 'a' and ends with 'd. O If the search is successful the cursor will move to the line containing the search string. 12.A user opens an existing file for writing by issuing the 'vi my_file' command and has not performed any editing actions. Which of the following statements are correct? O The :1,2w my_old_file command will always save the first two lines in file my_old_file . O The :w $.zz command will attempt to copy to file my_file to file my_file.zz. O The :e# command will cause the editor to reread the file. O The zz command will cause the editor to be excited. O the :ws command will share the file currently being edited 15. Which of the following statements are correct regarding std:weak ptr in C++ O Each instance does not increase the reference count of the pointer object being shared. O The object being referenced by the std:weak_ptr instance must be checked to see if it still exists before it can be accessed. O Access to an instance's contained pointer is via operator-0. O An instance can transfer ownership of its contained pointer if assigned to an object of std: unique_ptr. O E An instance must be initialized by either an object of std:shared_ptr or another std::weak_ptr.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Please answer all the below McQ questions....

11.A user opens an existing file for editing by issuing the 'vi my_file' command and moves the
cursor to the 70th line. The editor is not in INSERT mode. Which of the following statements
correctly describe the results of executing a?'a.*d$?-1 command?
O It will search backwards (from the curent cursor position) for a word that begins with 'a' and
ends with 'd'.
O If the search is successful the cusor will move to the line before the line containing the search
string.
O It will search backwards (from the line above the current line) for a word that begins with 'a'
and ends with 'd'.
O It will search backwards (from the line above the current line) for a line that begins with 'a'
and ends with 'd'.
O If the search is successful the cursor will move to the line containing the search string
12.A user opens an existing file for writing by issuing the 'vi my_file' command and has not
performed any editing actions. Which of the following statements are correct?
O The :1,2w my_old_file command will always save the first two lines in file my_old_file
O The w $.zz command will attempt to copy to file my_file to file my_file.zz .
O The :e# command will cause the editor to reread the file.
O The zz command will cause the editor to be excited.
O the :ws command will share the file currently being edited
15. Which of the following statements are correct regarding std:weak ptr in C++
O Each instance does not increase the reference count of the pointer object being shared.
O The object being referenced by the std:weak_ptr instance must be checked to see if it still
exists before it can be accessed.
O Access to an instance's contained pointer is via operator->0.
O An instance can transfer ownership of its contained pointer if assigned to an object of
std::unique_ptr.
O E. An instance must be initialized by either an object of std::shared_ptr or another
std::weak_ptr.
Transcribed Image Text:11.A user opens an existing file for editing by issuing the 'vi my_file' command and moves the cursor to the 70th line. The editor is not in INSERT mode. Which of the following statements correctly describe the results of executing a?'a.*d$?-1 command? O It will search backwards (from the curent cursor position) for a word that begins with 'a' and ends with 'd'. O If the search is successful the cusor will move to the line before the line containing the search string. O It will search backwards (from the line above the current line) for a word that begins with 'a' and ends with 'd'. O It will search backwards (from the line above the current line) for a line that begins with 'a' and ends with 'd'. O If the search is successful the cursor will move to the line containing the search string 12.A user opens an existing file for writing by issuing the 'vi my_file' command and has not performed any editing actions. Which of the following statements are correct? O The :1,2w my_old_file command will always save the first two lines in file my_old_file O The w $.zz command will attempt to copy to file my_file to file my_file.zz . O The :e# command will cause the editor to reread the file. O The zz command will cause the editor to be excited. O the :ws command will share the file currently being edited 15. Which of the following statements are correct regarding std:weak ptr in C++ O Each instance does not increase the reference count of the pointer object being shared. O The object being referenced by the std:weak_ptr instance must be checked to see if it still exists before it can be accessed. O Access to an instance's contained pointer is via operator->0. O An instance can transfer ownership of its contained pointer if assigned to an object of std::unique_ptr. O E. An instance must be initialized by either an object of std::shared_ptr or another std::weak_ptr.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY