NEW
Font size
WorksheetsChapter 3 - FOP 0725
Total questions: 10
Worksheet time: 3mins
Which of the following is a VALID identifier?
2024Room
Room 2024
RooM2024
Room2024@
They are identifiers whose value does not change during program execution.
statements
constants
variables
comments
Which one is NOT the keywords for data type?
int
loop
float
char
Which one is the example of the data types int?
A
28.02
19
aliya@yahoo.com
What is the type of the temp variable?
var temp = 14.55;
float
boolean
int
string
Which of the following is NOT an example of reserved word?
return
class
int
FLOAT
Which of the following is a correct comment?
*/ Comments */
** Comment **
/* Comment */
{ Comment }
Which of the following is called insertion/put to operator?
<<
>>
>
<
What will be the output of following?
int x = 3.56;
cout << x << endl;
3.56
3
3.560000
3.56000
What is the output of this program?
Welcome Ali.
Enjoy your Day.
Welcome Ali.
Enjoy your day.
Welcome Ali.Enjoy your day.
