Next: Review questions Up: A simple C++ program Previous: Summary

Multiple Choice Questions

Simple C++ Programs


Try to answer as many of the following Multi-choice questions as you can.

Do not panic if you make any errors. You can always start again by clicking on the "Restart" button, located at the bottom.


Your Details


Please enter your full name :


The Questions


Q1.

Which of the following are valid C++ identifiers?

const
y=z
xyz123
Bill
ThisIsALongOne
Sue's
two-way
int
so_is_this_one
_amount
2ndclass

Q2.

Values can be input to variables in the program using the stream

cin
cout

Q3.

Comments in C++ are started with

//
{
;


Once you have completed all the questions, and are quite happy with your answers. Then click on the "Submit Answers" button.

Clicking the "Restart" button will clear all your answers, ready to re-enter them.


Please send any comments about this page



Next: Review questions Up: A simple C++ program Previous: Summary