MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What will be the output of the following code?#include <stdio.h>int main() { static int i=5; if( ____ i) { main(); printf("%d “, i); } }
A
4 3 2 1
B
1 2 3 4
C
4 4 4 4
D
0 0 0 0
Explanation: 

Detailed explanation-1: -Output (of code) is a compiled set of instructions from the computer, designed to perform one or more tasks. This may be to create a document, display graphics, run hardware peripherals (printer, access optical disks, network communication, etc).

Detailed explanation-2: -25 is the output. list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] is a list that consists 1 to 10 numbers within it.

Detailed explanation-3: -When we say Output, it means to display some data on screen, printer, or in any file. C programming provides a set of built-in functions to output the data on the computer screen as well as to save it in text or binary files.

Detailed explanation-4: -Print((4+8) /2) the output is 6.0. In Python, the “/” stands for floating point division, as opposed to the “//", which stands for integer division. whenever the division operator is calculated the result by default is in float form.

There is 1 question to complete.