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

The output of the following C++ Program is:
#include <stdio.h>
int main(void)
{
    int x, *p;
    x = 30;
    p = x;
    printf("%d", *p);
    return 0;
}

Solution

p is a pointer variable and must store the address of x, written as:


p = &x;


But the program assigns:


p = x;


which means an integer is assigned to a pointer, causing a compilation error (type mismatch).

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

Nearest first
1
Arrange in appropriate order, the construction of a finite automata:A. Minimum State DFAB. Regular ExpressionC. NFA-εD.…
Topic: UGC NET Computer Science June 2024 (Paper II)
2
The ratio of error found before software delivery and to the total errors (before and after) is called:
Topic: UGC NET Computer Science June 2024 (Paper II)
3
In Genetic Algorithm’s cross over operation, mask is used in?
Topic: UGC NET Computer Science June 2024 (Paper II)
4
Match List-I with List-II:&nbsp;List-I&nbsp;List-II&nbsp;A. Batch MultiprogrammingI. allows more efficient use of main …
Topic: UGC NET Computer Science June 2024 (Paper II)
5
The following code:stmt → if expr then stmt else stmt&nbsp; &nbsp; &nbsp; | if expr then stmtsuffers from:
Topic: UGC NET Computer Science June 2024 (Paper II)
6
Arrange the steps of Mathematical Modeling:A. Solution fitting with dataB. Formulation mathematicallyC. Solve mathemati…
Topic: UGC NET Computer Science June 2024 (Paper II)
7
The chairs of an auditorium are to be labelled with a letter followed by a positive two digits integer where labelling …
Topic: UGC NET Computer Science June 2024 (Paper II)
8
How much time does an algorithm using $2^{50}$ bit operations need if each bit operation takes $2^{-38}$ second?
Topic: UGC NET Computer Science June 2024 (Paper II)
9
Match List-I with List-II.&nbsp;List-I&nbsp;List-II&nbsp;A. Thread spawn&nbsp;I. to convert a blocking system call into…
Topic: UGC NET Computer Science June 2024 (Paper II)
10
Which of the followings are true for a complete binary tree?A. It always has odd number of vertices. B. With $n$ intern…
Topic: UGC NET Computer Science June 2024 (Paper II)

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

Ascending by ID
Ask Your Question or Put Your Review.

loading...