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...


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

Extracted 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.
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here