Institute of Petroleum Technology, Gandhinagar B.Tech - in Semester Exam-1 Computer Programming
Institute of Petroleum Technology, Gandhinagar B.Tech - in Semester Exam-1 Computer Programming
Institute of Petroleum Technology, Gandhinagar B.Tech - in Semester Exam-1 Computer Programming
Q.1. State whether the following statements are true or false. [5]
1. Continue is a keyword.
2. Const is used to declare those variable whose value can not be changed.
3. Keyword return is used to return a value from the called function and to
return to calling function.
4. Double variable occupies 10 bytes in the memory.
5. With short-cut key “Alt+F9” user can compile & run the program.
6. EBCDIC represents 64 different combinations.
7. The range of int is -32767 to 32768.
8. In C++, the size of character array should be one larger than the number
of characters in the string.
9. In Switch statement, default is compulsory.
10. In C++, the statement x = (y = 10); is a valid statement.
Page 1 of 2
INSTITUTE OF PETROLEUM TECHNOLOGY, GANDHINAGAR
B.TECH - IN SEMESTER EXAM-1
COMPUTER PROGRAMMING (161)
Roll No. _____ Batch No. ____
Q.4. What will be the output of the following expression and show their
hierarchy. [2]
Q.6. Write whole C++ programs for the following USING FUNCTION(S)
only. [5]
Page 2 of 2