Question
Easy
In C++, << operator used for shifting bits can also be used for:
1
Displaying values
2
Addition
3
Increment
4
Decrement
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Operating Systems & Software Concepts
Topic: Programming Languages
Correct Answer
Option A
Explanation
The correct option is (1): In C++, the double left-angle bracket symbol (\<\<) has a dual purpose due to a powerful feature called operator overloading. While its original, built-in function is the bitwise left shift operator, this operator is famously overloaded for use with stream classes, most notably std::cout, where it is known as the stream insertion operator. When this overloaded form is used in an expression like `std::cout <<…Read More
Similar Questions from HTET Exam - Level 3 - Year 2021
Question 1
Easy
Source :
HTET 2021
_______ transform the information from binary form to human acceptable form.
Chapter :
Computer System & Hardware Fundamentals
Topic :
Architecture
Question 2
Easy
Source :
HTET 2021
On clicking on a _______ opens another document/webpage.
Chapter :
Web Designing using HTML
Topic :
HTML Basics
Question 3
Easy
Source :
HTET 2021
Excel workbook is a collection of:
Chapter :
Office Automation Tools
Topic :
Spreadsheet (MS Excel)
Question 4
Easy
Source :
HTET 2021
Which of the following is the scope resolution operator in C++ language ?
Chapter :
Object-Oriented Programming (C++)
Topic :
Class & Object in C++