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. Function ________ is used to set the random number seed to randomize a program.






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






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






4. 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.






5. The _________ begins the body of every function and the _________ ends the body of every function.






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






7. A pointer is a variable that contains as its value the____________ of another variable.






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






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






10. A type of pointer that can point at objects of any data type.






11. Header file that contains commonly performed mathematical functions






12. Allows the programmer to store a value in a variable






13. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






14. If a member initializer is not provided for a member object of a class the object's __________ is called.






15. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






16. Words that are used for special purposes in a program






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






18. A C++ statement that makes a decision is ______.






19. = & | are examples of ____________.






20. Symbol that denotes an action to be performed






21. The elements of an array are related by the fact that they have the same name and ___________.






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






23. A function that can be used to read character data including whitespace






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






25. C++ programs are normally typed into a computer using a(n) ________ program.






26. Operator with two operands






27. Smallest individual unit of a programming language - special symbols or word symbols or identifiers






28. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






29. newline






30. The sign you use for pointers






31. In inheritance the ____________ is the class that supplies the inherited members.






32. int namespace include using return examples of ___________






33. 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


34. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.






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






36. Associate an identifier with a memory location






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






38. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






39. Preprocessor directive syntax






40. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






41. directive A statement that starts with a # is called a ____________.






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






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






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






45. The three values that can be used to initialize a pointer are 0 - __________ and an address.






46. * / % + -






47. All C++ Variables are_________.






48. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






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






50. Identifier or expression that is part of the calculation to be performed







Sorry!:) No result found.

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