







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Questions and answers on C++ and Linux, covering vim, C++ syntax, data structures, and basic Linux operations. The questions test understanding of fundamental concepts and practical skills in programming and system administration. Useful for students learning C++ and Linux, it helps assess knowledge and prepare for exams. Topics include array manipulation, function definitions, memory management in C++, and common Linux commands. A valuable resource for self-assessment and exam preparation in computer science, offering a comprehensive review of essential topics and concepts. Structured to facilitate learning and retention, it's effective for students and professionals. The questions cover a wide range of topics, ensuring a thorough understanding.
Typology: Exams
1 / 13
This page cannot be seen from the preview
Don't miss anything!








What key is used to enter insert mode in Vim?
How can you save changes to a file and exit Vim?
What does the command :q! Do?
Suppose there is a class called Card which is a playing card and suppose I have a vector of cards called deck. Consider the following code segment: Vector
Suppose I have a file numbers.dat with the number 1 through 1000 sorted, one number per line. What will be printed on the screen if I typed this command sequence: $ more numbers.dat | tail - 100 | head
Consider the following code segment in C++ Int A [] = {0, 1, 2, 3, 4, 5}; Int *ptr = A; How would I print 5 to the screen?
Consider the following C++ code: int a = 10; Int *ptr = &a; cout << ptr; What is printed out?
Consider the following segment of code in C++: Int nums[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; Printarray(nums); Also consider this function: Void printarray(int n[]) { For(int i = 0, int < n.size(), i++) cout << n[i]; } How many numbers will the printarray() function actually print out?
Assume the following code segment: Struct student { String name; int age; char grade; }; Student s1, *sptr; sptr = &s1; S1.name = "mastergold"; What code would you use to set Master Gold's grade to A?
Consider the following C++ code segment: Char world[10] = "matrix"; cout << strlen(word);
The function pthread_create() allows a program to have multiple threads running concurrently.
What is the error int the following function definition? Int doubler(int old_value) { Double new_value = old_value * 2; }