tailieunhanh - C++ Lab 4 Review, Summary & Building Skill Dr. John Abraham Professor, UTPA

You learned quite a bit over the last three weeks. It is important that you have a solid foundation before adding new topics. This session will allow you to practice what you learned through a series of questions and . What is the purpose of /* */ at the beginning of each of the program? . This program has one line that starts with a #, and other programs have several lines that start with #. Explain their purpose. What happens if they are not included in the program? . int main () . These three parts of a function heading have specific purposes. Explain them. Does. | Lab 4 Review Summary Building Skill Dr. John Abraham Professor UTPA You learned quite a bit over the last three weeks. It is important that you have a solid foundation before adding new topics. This session will allow you to practice what you learned through a series of questions and answers. ------------------------------lab1-------------------------------- In lab one you learned how to work in the Microsoft dot net environment by writing a Hello program. Answer the following questions about that program. Say Hello program By Dr. John Abraham Created for 1370 students Teaching objective program structure include iostream using namespace std int main cout See mom I wrote my first C program n getchar return 0 . What is the purpose of at the beginning of each of the program . This program has one line that starts with a and other programs have several lines that start with . Explain their purpose. What happens if they are not included in the program . int main . These three parts of a function heading have specific purposes. Explain them. Does return 0 have any relation to the function heading Explain. . Differentiate between procedure oriented and object oriented programming. . Show two ways a line-feed can be added to the output. . The source code is written using an editor. What would be the file extension of the source code Explain the stages it must go through until it becomes an executable program. What happens at each stage . Define a variable as related c . What are the rules about variable identifier names look in the ppt slides for answers . Why is there a type associated with each variable . Answer the questions associated with integer operations. int a 10 b 3 c c a b What would be stored in c C a b What would be stored in c What happened to the previous value . double d e e d b What would be stored in d Why Is the following operation legal Explain. e d b lab2 Program Calculate area and perimeter of a Circle By Dr. John Abraham

TỪ KHÓA LIÊN QUAN