Aspire Faculty ID #15022 · Topic: UGC NET Computer Science 26 June 2025 (Paper II) · Just now
UGC NET Computer Science 26 June 2025 (Paper II)

void main() {
    int *i, a = 12, b = 2, c;
    c = (a = a + b, b = a / b, a = a * b, b = a - b);
    i = &c;
    printf("%d", -(*i));
}

Solution

Step-by-step explanation:
a = 12, b = 2
a = a + b → a = 14
b = a / b → b = 7
a = a * b → a = 98
b = a - b → b = 91
→ c = 91
Hence, -(*i) = -91
Output: 91 (negative of c printed as -(-91) → 91)

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

Nearest first
1
Arrange the following types of testing in the order they are usually performed in the Software Development Life Cycle (…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
2
Which of the following is NOT a parent selection technique used in genetic algorithm implementations?
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
3
Identify the correct statement(s) from the following with respect to Spinlock Semaphores:A. The name refers to busy wai…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
4
CB84000D001C001C is the content of a UDP header in hexadecimal format. The source port number is:
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
5
In a Stop-and-Wait system, the bandwidth of the line is 1 Mbps, and 1 bit takes 30 milliseconds to make a round trip. T…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
6
Binary equivalent to $(A0F)_{16}$ is:
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
7
Match List I with List II List I (Hashing Collision Handling Method)List II (Strategy) A. ChainingI. Check next slot …
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
8
In a relational database, which one of the following is CORRECT:
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
9
Consider the following steps involved in the application of Genetic Algorithm for a problem:A. Select a pair of parents…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
10
A positive integer is selected at random from the set of positive integers not exceeding 200. What is the probability t…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)

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

Ascending by ID
1
Which of the following gates do not give output 1 when both inputs are 0?A. NAND gateB. NOR gateC. XOR gateD. XNOR gate
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
2
Match List I with List II List I (Grammar Type) List II (Production Form) A. Type 3 Grammar …
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
3
int x = 128, y = 110;do {    if (x > y) x = x - y;    else       y = y - x;}…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
4
Which of the following is not a requirement elicitation technique?
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
5
Which of the following cohesions are better than the Procedural Cohesion?A. Functional CohesionB. Sequential CohesionC.…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
6
Consider the following steps used by a knowledge base designer to represent a world:A. Selects atoms to represent propo…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
7
Only legal pointer operations:A. pointer + number → pointerB. pointer – number → numberC. pointer + pointer → pointerD.…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
8
Which of the following statements are TRUE about encryption techniques?A. In symmetric key cryptography, the secrecy/pr…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
9
Consider the following statements regarding Agent systems:A. Agent system comprises of an agent and an environment on w…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
10
Which of the following algorithms use the Greedy strategy?A. Dijkstra’s algorithmB. Kruskal’s algorithmC. Huffman codin…
Topic: UGC NET Computer Science 26 June 2025 (Paper II)
Ask Your Question or Put Your Review.

loading...