Aspire Faculty ID #17554 · Topic: UGC NET Computer Science August 2024 (Paper II) · Just now
UGC NET Computer Science August 2024 (Paper II)

Which of the following are TRUE about constructors in C++ ?

(A) A constructor can be overloaded.
(B) A constructor does not have a return type.
(C) A constructor must be declared as a friend function.
(D) A constructor is called when an object is destroyed.

Choose the correct answer from the options given below :

Solution

(A) True

Constructors can be overloaded.


(B) True

Constructors do not have return type.


(C) False

Constructors are member functions, not friend functions.


(D) False

Destructor is called when object is destroyed.


Thus correct statements:


(A) and (B)

Previous 10 Questions — UGC NET Computer Science August 2024 (Paper II)

Nearest first
1
Which of the following are typical activities in the software process lifecycle ?(A) Requirement Analysis(B) System Des…
Topic: UGC NET Computer Science August 2024 (Paper II)
2
Match List - I with List - II. List - I (Algorithms)List - II (Characteristics)  (A) First Come First Se…
Topic: UGC NET Computer Science August 2024 (Paper II)
3
______ is a Self Balancing binary search tree, where the path from the root to the furthest leaf is no more than twice …
Topic: UGC NET Computer Science August 2024 (Paper II)
4
Let $G(V,E)$ be an undirected graph with $|E|$ edges. Then the sum of degree of all vertices is equal to ______.
Topic: UGC NET Computer Science August 2024 (Paper II)
5
Arrange the following stages of parsing in the correct order as they typically occur in the compilation process.(A) Lex…
Topic: UGC NET Computer Science August 2024 (Paper II)
6
Match List - I with List - II. List - IList - II  (A) HTML (I) Allow for dynamic and interactive we…
Topic: UGC NET Computer Science August 2024 (Paper II)
7
Consider the given number $(45)_y$ where $y$ is the base of the number. Some of the possible values of $y$ are given be…
Topic: UGC NET Computer Science August 2024 (Paper II)
8
A coin is tossed successively three times. Find the Probability $(P)$, Event $(E)$, Sample space $(S)$ of getting exact…
Topic: UGC NET Computer Science August 2024 (Paper II)
9
Fifth normal form is concerned with :
Topic: UGC NET Computer Science August 2024 (Paper II)
10
Consider the following relations on ${1,2,3,4}$. Which of the following relations are reflexive ?(A) $R_1={(1,1),(1,2),…
Topic: UGC NET Computer Science August 2024 (Paper II)

Next 10 Questions — UGC NET Computer Science August 2024 (Paper II)

Ascending by ID
1
Consider a schema $R(P,Q,R,S)$ and the following functional dependencies$P \rightarrow Q$$Q \rightarrow R$$R \rightarro…
Topic: UGC NET Computer Science August 2024 (Paper II)
2
Arrange the following phases of the Agile process in the correct sequence :(A) Design(B) Release(C) Testing(D) Developm…
Topic: UGC NET Computer Science August 2024 (Paper II)
3
A class B network on the Internet has a subnet mask of 255.255.248.0, what is the maximum number of hosts per subnet ?
Topic: UGC NET Computer Science August 2024 (Paper II)
4
#include<stdio.h>void main(){    int arr[]={1, 2, 3, 4, 5};    int *p = arr;    pri…
Topic: UGC NET Computer Science August 2024 (Paper II)
5
Which of the following properties correctly describe a Regular Grammar ? (A) All productions rules are of the form $A \…
Topic: UGC NET Computer Science August 2024 (Paper II)
6
Consider the function in C code :Cal(a, b){    if (b != 1)    {        if (a !=…
Topic: UGC NET Computer Science August 2024 (Paper II)
7
What is the output of code given below :#include<iostream.h>using namespace std;class Base {public:    …
Topic: UGC NET Computer Science August 2024 (Paper II)
8
If a software project has 2000 lines of code (LOC) and the average productivity rate is 10 LOC per person-hour, how man…
Topic: UGC NET Computer Science August 2024 (Paper II)
9
Consider the following if $p$ and $q$ are two statements.(A) $\sim (p \land q) = \sim p \lor \sim q$(B) $\sim (p \lor q…
Topic: UGC NET Computer Science August 2024 (Paper II)
10
Which of the following are context free language ?(A) ${w^i x^j y^k z^l \mid i + k = j + l,; i,j,k,l \ge 0}$(B) ${w^i x…
Topic: UGC NET Computer Science August 2024 (Paper II)
Ask Your Question or Put Your Review.

loading...