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. Repeating a set of instructions a specific number of times is called_________repetition.






2. int namespace include using return examples of ___________






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






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






5. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






6. The _____ causes the contents of another file to be inserted into a program.






7. A memory location with a name and data type - its content may be changed during program execution






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






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






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






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






12. Returns the length of a string excluding the null terminator.






13. Lists and tables of values can be stored in arrays or __________.






14. Names of things that are used in a program - can apply to variables & constants and functions






15. Syntax for named constant declaration






16. A file must be ________ before data can be written to or read from it.






17. Used for dynamically allocated variables






18. Whole numbers - no decimals and no commas included






19. tab






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






21. Symbol that denotes an action to be performed






22. The process of placing the elements of an array in order is called ________ the array.






23. __________ can be used to assign an object of a class to another object of the same class.






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






25. A function ________ enables a single function to be defined to perform a task on many different data types.






26. Sets floating-point values to a fixed decimal format






27. Header file that contains commonly performed mathematical functions






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






29. The process of analyzing and designing a system from an object-oriented point of view is called ________.






30. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






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






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






33. Naming convention for C++ programs






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






35. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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






38. Message displayed to the screen asking user for input; generated with an output statement






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






40. The ________ qualifier is used to declare read-only variables.






41. Operator with two operands






42. Associate an identifier with a memory location






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






44. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






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






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






48. The size & shape & color and weight of an object are considered






49. Default name of executable file






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







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