Question

C++

Which of the following user-defined header file extension used in c++?
a) hg
b) cpp
c) h
d) hf

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: c
Explanation: .h extensions are used for user defined header files. To include a user defined header file one should use #include”name.h” i.e. enclosed within double quotes.

answered by: Farahasaad
Add a comment
Know the answer?
Add Answer to:
C++
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C++

     Which of the following is the correct syntax of including a user defined header files in C++?a) #include [userdefined]b) #include “userdefined”c) #include <userdefined.h>d) #include <userdefined>

  • In this assignment, you will demonstrate your ability to write simple shell scripts. This is a...

    In this assignment, you will demonstrate your ability to write simple shell scripts. This is a cumulative assignment that will challenge you to pull together a variety of lessons from throughout the course. 2 The Assignment Every now and then, I find myself with a large number of files that have inappropriate extensions (the set of characters in the file name after the last :') that need to be changed. For example, a complicated C++ program, developed by someone on...

  • 1. Which one of the following commands will update the PATHEXT environment variable to include it...

    chapter 11 1. Which one of the following commands will update the PATHEXT environment variable to include its original contents plus the file extension RUN? a. SET PATHEXT-YPATHEXT%; RUN b. SET PATH+.RUN c. SETX PATHEXT5%PATHEXT%.RUN d. SETX PATH %PATHEXT%,RUN display the default command used to open a spe- cific file type? a. SETX b. ASSOC c. PATHEXT d. FTYPE 3. What command-line utility is used to display the file type linked to a specific file extension a. SETX b. ASSOC...

  • 3.1 9780131971097 3. Fil in the blanks in each of the following: a) A house is to a blueprint as a(n) b) Every class definition contains keyword is to a class followed immediately by the ass s name f...

    3.1 9780131971097 3. Fil in the blanks in each of the following: a) A house is to a blueprint as a(n) b) Every class definition contains keyword is to a class followed immediately by the ass s name filename extension c) A class definition is typically stored in a file with the d) Each parameter in a function header should specify both a(n) _ and a(n) When each object of a class maintains its own copy of an attribute, the...

  • Write a C++ program that includes the following: Define the class Student in the header file Stu...

    Write a C++ program that includes the following: Define the class Student in the header file Student.h. #ifndef STUDENT_H #define STUDENT_H #include <string> #include <iostream> using namespace std; class Student { public: // Default constructor Student() { } // Creates a student with the specified id and name. Student(int id, const string& name) { } // Returns the student name. string get_name() const { } // Returns the student id. int get_id () const { } // Sets the student...

  • Write a complete C++ program that defines the following class: Class Salesperson { public: Salesperson( );...

    Write a complete C++ program that defines the following class: Class Salesperson { public: Salesperson( ); // constructor ~Salesperson( ); // destructor Salesperson(double q1, double q2, double q3, double q4); // constructor void getsales( ); // Function to get 4 sales figures from user void setsales( int quarter, double sales); // Function to set 1 of 4 quarterly sales // figure. This function will be called // from function getsales ( ) every time a // user enters a sales...

  • COSC 1437 C++2 Project Assignment 3 Description: Computer Science Department is evaluating its professors to see...

    COSC 1437 C++2 Project Assignment 3 Description: Computer Science Department is evaluating its professors to see which professor has the highest rating according to student input. You will create a ProfessorRating class consisting of professor Name and three ratings. The three ratings are used to evaluate easiness, helpfulness, and clarity. The value for each rating is in the range of 1 to 5, with 1 being the lowest and 5 being the highest. Your program should contain the following functionalities:...

  • Write a C++ program that does the following : Define a class myInt that has as...

    Write a C++ program that does the following : Define a class myInt that has as its single attribute an integer variable and that contains member functions for determining the following information for an object of type myInt: A. Is it multiple of 7 , 11 , or 13. B. Is the sum of its digits odd or even. C. What is the square root value. D.Is it a prime number. E. Is it a perfect number ( The sum...

  • Part 1 of 1 Question 1 of 5 2Points Constant types defined under classes need to...

    Part 1 of 1 Question 1 of 5 2Points Constant types defined under classes need to be encapsulated. True False Reset Selection Question 2 of 5 2Points A user defined Java class usually is meant to be a template. True False Reset Selection Question 3 of 5 2Points Which of the following statements should be used to declare a variable under a Java class? O A. String name; OB. public int age; C. public static double PI; D. private char...

  • C++ project we need to create a class for Book and Warehouse using Book.h and Warehouse.h header ...

    C++ project we need to create a class for Book and Warehouse using Book.h and Warehouse.h header files given. Then make a main program using Book and Warehouse to read data from book.dat and have functions to list and find book by isbn Objectives: Class Association and operator overloading This project is a continuation from Project 1. The program should accept the same input data file and support the same list and find operations. You will change the implementation of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT