


















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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An exam preparation material for an introductory programming course using c++ and unix. It consists of multiple-choice questions covering fundamental concepts such as memory types, operators, data types, control structures, and input/output operations. The questions test understanding of c++ syntax, program structure, and basic algorithms. This material is designed to help students review and reinforce their knowledge of the core principles of programming in c++ and unix, preparing them for their exam. It covers topics like variables, operators, loops, and conditional statements, providing a comprehensive review of the course content. The questions are structured to assess both theoretical knowledge and practical application of programming concepts.
Typology: Exams
1 / 26
This page cannot be seen from the preview
Don't miss anything!
Unix) Exam 3 Prep
Unix) Exam 3 Prep
D) flowchart E) None of these: hierarchy chart
Unix) Exam 3 Prep
Unix) Exam 3 Prep
Unix) Exam 3 Prep
C) result = 1 D) result = 3 E) there will be no output: result = 3
Unix) Exam 3 Prep
} else funny = 1; serious = 1; } cout << funny << " " << serious << endl; A) 10 10 B) 0 0 C) 1 1 D) 7 15 E) None of these: 1 1
Unix) Exam 3 Prep
C) 7 D) 0: 6
Unix) Exam 3 Prep
D) a for loop E) None of these: a function call
Unix) Exam 3 Prep
4: 4 2
Unix) Exam 3 Prep
Unix) Exam 3 Prep temp = num2; num1 = temp; C) int temp = num1; num2 = num1; num1 = num2; D) num1 = num2; num2 = num1; E) None of these: int temp = num2; num2 = num1; num1 = temp;
Unix) Exam 3 Prep
Unix) Exam 3 Prep
C) declare the pointer value again in the function call D) not dereference the pointer in the function's body E) None of these: None of these
Unix) Exam 3 Prep
A) uppercase z B) a compiler error C) lowercase z D) a lowercase z followed by an uppercase z E) None of these: lowercase z