Test your basic knowledge |

C++ Programming Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. When a value of one data type is implicitly (automatically) changed to another data type






2. An operator that can only be used with int values. result will always be an int.






3. The number used to refer to a particular element of an array is called its ________.






4. This is used to mark the end of a complete C++ programming statement.






5. Function ________ is used to produce random numbers.






6. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






7. These are data items whose values do not change while the program is running






8. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






9. Whole numbers - no decimals and no commas included






10. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






11. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






12. This manipulator causes the field to be left-justified with padding spaces printed to the right.






13. A program that finds and attaches to your program the indicated libraries for compilation






14. Operator with only one operand






15. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






16. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






17. The only integer that can be assigned directly to a pointer is_____________.






18. The symbol for the binary scope resolution operator






19. The __________ operator reclaims memory previously allocated by new.






20. Program components in C++ are called functions and ________.






21. A variable declared outside any block or function is a ________ variable.






22. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






23. Class members specified as _________ are accessible anywhere an object of the class is in scope.






24. A function that calls itself






25. A filestream variable that represents the default output device






26. This manipulator is used to establish a field width for the value immediately following it.






27. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






28. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






29. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






30. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






31. Compares two strings and returns 0 if they are equal.






32. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






33. data types that refer to numbers with decimals






34. The sign you use for references






35. The address-of operator. it is used to assign pointers and to print the address of variables.






36. Used for function calls and local variables






37. A __________ data member represents class-wide information.






38. The process of determining if an array contains a particular key value is called _________ the array.






39. All ______ must be declared before they are used.






40. int namespace include using return examples of ___________






41. Every C++ program begins execution at the function _________.






42. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


43. Every C++ statement ends with a(n) _________.






44. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






45. Two slash marks ( // ) indicate __________ of a comment






46. A ________ program executes before the compiler's translation phase begins.






47. The ________ program combines the output of the compiler with various library functions to produce an executable image.






48. A variable that holds the address of another variable.






49. All C++ Variables are_________.






50. The ________ statement in a called function passes the value of an expression back to the calling function.






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests