0% found this document useful (0 votes)
66 views3 pages

C++ Programming Assignment Guide

The document contains an assignment for an M.Sc. course in C++ programming. It lists 10 questions to answer, with each question worth 20 marks. The questions cover various topics in C++ including features of C++, its history, error handling, symbolic constants, IDE features, operators, variables, escape sequences, type casting, and programs to calculate volumes, averages, prime numbers, temperatures conversions, time conversions and student grades.

Uploaded by

Tst Person
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views3 pages

C++ Programming Assignment Guide

The document contains an assignment for an M.Sc. course in C++ programming. It lists 10 questions to answer, with each question worth 20 marks. The questions cover various topics in C++ including features of C++, its history, error handling, symbolic constants, IDE features, operators, variables, escape sequences, type casting, and programs to calculate volumes, averages, prime numbers, temperatures conversions, time conversions and student grades.

Uploaded by

Tst Person
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD

(Department of Mathematics)
Assignment No. 1
Class: [Link]. (Course code: 1520)

Note: Each question has 20 marks.

=======================================================

Question No. 1(a)


Write a detailed note on the Features of C++?

Question No. 1(b)


Write a note on the history of C++?

Question No. 2 (a)

What type of errors can occur while writing a C++ Program?

Question No. 2 (b)

Write a note on Integer overflow and Integer Underflow. Explain with some C++
Program.

Question No. 3 (a)

Write a note on Symbolic constants. Explain it with some C++ program.

Question No. 3 (b)

Write a program in C++ that takes a number from user and tell whether the number
is even or odd?

1
Question No. 4 (a)

How an Integrated Development Environment (IDE) helps a programmer to edit,


Compile and execute a program?
Discuss the features of the IDE you are using for program development.

Question No. 4 (b)

Write a program in C++ to calculate Volume of a cylinder.

Question No. 5 (a)

Write a note on Operator Precedence in C++. Explain with some program.

Question No. 5 (b)

Write a program in C++ that calculates the average of 10 integers entered by user.

Question No. 6 (a)

Write a note on keywords in C++.

Question No. 6 (b)

What are rules for declaring variables in C++.

Question No. 7 (a)


Write a note on Escape sequences. Explain any 5 with some C++ program.

Question No. 7 (b)


Explain increment operator with some C++ program. Explain difference between
Prefix and postfix increment.

2
Question No. 8 (a)
What is Type Casting in C++. Explain in detail with some example.
Question No. 8 (b)
What is use of “sizeof” Operator in C++?

Question No. 9 (a)


Write a program that gets temperature from user in Celsius and converts it into
Fahrenheit.

Question No. 9 (b)


Write a program in C++ that inputs time in seconds and converts it into
“HH:MM:SS” format.

Question No. 10 (a)


Write a program in C++ to determine that a number entered by a user is a Prime
number or not.

Question No. 10(b)


Write a program in C++ to display the grades of a student using switch statement.

You might also like