You are on page 1of 1

Programming Fundamentals

Case Study II

Registration # ________________ Name_______________________

Instructions:
1. Follow the instructions.
2. This is an open book and open notes and open internet case study.
3. No Submission.
4. University has a zero tolerance policy towards cheating/plagiarism.
5. Any student found violating the above instruction may require to leave the
room and may be deemed to have failed examination

Question 1(CLO1)

1. What are Reserved words? Give some examples of reserved words


2. What are identifiers? Give some examples of identifiers
3. Why are there so many categories of datatype?
4. What are the key properties of following datatypes in terms of range, size and storage
type?
int, long, bool, char, short, long, unsigned int, unsigned long, unsigned char
5. What is the difference between unary and binary datatype?
6. What is the order of precedence of following operators?
+ - * / %
7. What is associativity of arithmetic operators in c++?
8. What is type casting?
9. What is difference between implicit and explicit type casting? Elaborate with examples?
10. What is constant in c++? Elaborate with example and syntax?
11. What are ASCII characters? What are ASCII code for following?
A a P q Z z 0 9
12. What are following operators?
+= *= -= +-
13. What are escape sequences? What is the difference between following?
\n \t \b \r \\ \’ \”

14. What are Enum datatypes? Give 2 examples

_________________________________________________________________________________________________
Department of Computer Science and Engineering, UET Lahore

You might also like