Aspire Faculty ID #18609 · Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II) · Just now
UGC NET Computer Science Dec 2022 Shift II (Paper II)

If a constructor 'Date' is declared explicitly and has to be defined outside the class, which of the following is correct?

Solution

In C++, the keyword $\text{explicit}$ is used only while declaring the constructor inside the class.

When the constructor is defined outside the class, $\text{explicit}$ is not written again.

So, the correct definition is:

$ \text{Date::Date(int dd) { /* ... */ }} $

Previous 10 Questions — UGC NET Computer Science Dec 2022 Shift II (Paper II)

Nearest first

Next 10 Questions — UGC NET Computer Science Dec 2022 Shift II (Paper II)

Ascending by ID
1
Which one of the following allows the session to continue?
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
2
Overfitting is expected when we observe that?
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
3
Identify the incorrect statement(s).
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
4
Consider the two relations below. The primary keys are underlined. Identify all possible foreign key(s) from the option…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
5
Which of the following statements is correct, according to the following instance of the relational schema R(X, Y, Z)?&…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
6
In Linux Operating System, when __________ is invoked, it is passed a set of flags that determine how much sharing is t…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
7
The main function of the microkernel is to provide a communication facility between the __________ program and the vari…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
8
Consider an operating system capable of loading and executing a single sequential user process at a time. The disk head…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
9
For the following set of processes scheduled using FCFS policy, determine the average waiting time. Assume that the pro…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
10
Which of the following is not a Non-functional requirement?
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
Ask Your Question or Put Your Review.

loading...