Q1. Who was developer of C++?

Q2. What was the original name given to C++? Who gave the name ”C++”?

Q3. What is meant by token? Name the tokens available in C++.

Q4. What are keywords? Can keywords be used as identifiers?

Q5.  What is an identifier? What is the identifier forming rule of C++?

Q6. Is C++ case sensitive? What is meant by the term ‘case sensitive’?

Q7. Which of the following are valid identifiers and why/why not:

Data_rec, _data, 1data, data1, my.file, asm, switch, goto, break.

Q8. What are literals? How many types of integer literals are available in C++?

Q9. What is an integer constant? Write integer forming rule of C++.

Q10. How many types of integer constants are allowed in C++? How are they written?

Q11. What kind of program elements are the following? 13, ‘a’, 4.38925, “a”, main().

Q12. What kind of constants are the following? 14, 011, 0X2A, 17, 014, 0XBC1.

Q13. What is a character constant in C++?

Q14. How are non-graphic characters represented in C++?

Q15. Why are characters \, ‘, “ and ? typed using escape sequences?

Q16. Which escape sequences represent the newline character and null character? An escape sequence represents how many characters?

Q17. Which of the following are valid character constants in C++?

‘c’, ‘abc’, “abc”, my, ‘main’s’, ‘”’, ‘char, ‘\\’.

Q18. What is meant by a floating point constant in C++? How many ways can be floating constant be represented into?

Q19. Write the following real constants into exponent form:

23.197, 7.214, 0.00005, 0.319


write the following real constants into fractional form:

0.13E04, 0.417E-04, 0.4E-05, 0.123E02.

Q20. What are string-literals in C++? What is the difference between character constants and string literals in terms of size?

Q21. Which character is automatically added to strings in C++?

Q22. What is the significance of null (/0) character in a string?

Q23. What header file must you include with your source file to use cout and cin?

Q24. Name the I/O library of C++.

Q25. Name the standard input, output and error devices.

Q26. How are files actually treated in C++?

Q27. How is data at user level different from that of data at implementation level?

Q28. Who is responsible for interface between user level and lowest implementation level?

Q29. Which component of C++ standard library predefines a set of operations for handling built-in data types?

Q30. What are predefined stream objects in C++?

Q31. If the file iostream.h is not included in a program, what happens?

Q32. Why is function main() special? What would happen if main() is not present in the program?

Q33. What kinds of program errors can you encounter during programming? Why do these occur?

Q34. Apart from pointing out errors, what is the other role of a compiler?

Q35. What do you understand by ‘code generation’? Can a program be executed before it?

Q36. What is the input operator “>>” and output operator “<<” called?

Q37. What is the difference between run-time error and syntax error? Give one example of each.

%d bloggers like this: