# What will the output of the following pseudocode

## What is the output of the pseudocode?

OUTPUT – indicates that

**an output will appear on the screen**.**WHILE**– a loop (iteration that has a condition at the beginning) FOR – a counting loop (iteration) REPEAT – UNTIL – a loop (iteration) that has a condition at the end.## What will be the output of the following pseudocode for N 7 *?

T should

**be 28**. It will loop till m>7 (since n=7) and in each iteration T adds m to itself, since T is 0 initially it is only summing up m after incrementing it by 1 in each iteration.So if you add 1+2+3…..## What will be the output of following pseudocode for input 4?

Answer:

**64**is the answer.## What will be the output of the following pseudo code statements integer A 984 B 10 Float is a data type to store real numbers float CC a B?

// float is a data-type to store real numbers. In the code a and b are integers. When a is divided by b,

**a/b**= 984/10 = 98.4 Integer value will consider only the rational part and hence value will be 98.## What will be the output of the following pseudo code input M 9 N 6?

What will be the output of the following pseudo code? option D is correct First the m=9, n=6 then the statement is

**m=m+1**that is 9+1=10 then the statement is n=n-1 that is 6-1=5 then m=m+n-> 10+5=15 then the if statement if true that is (m>. n) = 15>5; true. so print m, that is 15.## What will be the value of S if N 127?

What will be the value of s, if n=127? The above code is converting an octal number into its decimal representation. Here we are treating 127 as an octal input and converting it into its decimal representation, that is

**87**. So, answer will be 87.## Which of the given options is not a data type?

Option 4)

**arr**is not a data type.Option 1) boolean is a data type or a primitive data type and it has only two values, one is the ‘true’ condition and the other is the false condition and it is used in the representation of Boolean algebra and the logics of the truth table.

## What will be the value of if if N 127 07 n sample function int n while RN zero P 8 is SP <UNK> RI ++ nn 10 end?

**i=0**.

**s=0**.

**n = 127**. Function Sample(int n)

## What is pseudocode data structure?

In computer science, pseudocode is

**a plain language description of the steps in an algorithm or another system**. … It typically omits details that are essential for machine understanding of the algorithm, such as variable declarations and language-specific code.## What is the value of I at the end of the pseudocode?

What is the value of i at the end of the pseudo-code? After this condition becomes false. So,

**i = 5**, Option (B) is correct.