What is the outcome of the line of code "cout<<abs(-
16.5);"?




1) 16


2) 17


3) 16.5

Answer Posted / shankar

None of them

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain sub-type and sub class? atleast u have differ it into 4 points?

1822


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

614


What are the 5 oop principles?

590


What is constructor in oop?

576


What is encapsulation and abstraction? How are they implemented in C++?

626






What type of loop is a for loop?

671


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1378


How do you achieve polymorphism?

601


What is use of overloading?

598


what is graphics

2000


What is the difference between static polymorphism and dynamic polymorphism?

563


What is variable example?

588


What do you mean by variable?

564


Why is oop useful?

591


What are the advantages of polymorphism?

564