Question
Easy
Which of the following is invalid C++ comment statement ?
1
/*//Comment/*/
2
//*Comment*/
3
/*Comment*\
4
//Comment
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Python Programming Fundamentals
Topic: Operators & Expressions
Correct Answer
Option C
Explanation
The correct option is (3): The statement /Comment\\ is an invalid C++ comment because it attempts to use a multi-line, C-style comment but fails to provide the correct closing delimiter. A valid C-style comment must start with the sequence /\* and be terminated by the exact sequence \/. In the given option, the comment is closed by \, which is not recognized as a comment terminator. This missing \*/ sequence…Read More
Similar Questions from HTET Exam - Level 3 - Year 2018
Question 1
Easy
Source :
HTET 2018
Which of the following is not supported in C++?
Chapter :
Computer System & Hardware Fundamentals
Topic :
Computer System
Question 2
Easy
Source :
HTET 2018
Which of the following operations requires two tables as input having a least one common column ?
Chapter :
Database Management System (DBMS) & SQL
Topic :
MS Access
Question 3
Easy
Source :
HTET 2018
URL stands for:
Chapter :
Computer Networks & Internet
Topic :
Internet Fundamentals
Question 4
Easy
Source :
HTET 2018
Consider the following SQL query: SELECT title, name FROM Employee ORDER BY title, name DESC; In output of above query the different titles are listed…
Chapter :
Database Management System (DBMS) & SQL
Topic :
SQL