Computer Programming (3310701) MCQs

MCQs of Flowchart and Algorithm

Showing 31 to 39 out of 39 Questions
31.

If n1=5,n2=34,n3=9.2 then guess the output = ___________ .
(જો n1=5,n2=34,n3=9.2 તો આઉટપુટ = ___________ .)

(a)

12.45

(b)

16.66

(c)

15.56

(d)

16.066

Answer:

Option (d)

32.

Step 1: Start
Step 2: Initialize r<-0
Step 3: Read d
Step 4:
Step 5: Print radius
Step 6: Stop

In the given algorithm, What will be the missing step?

આપેલા અલ્ગોરિધમ માં missing સ્ટેપ શું હશે?

(a)

2d

(b)

d/2

(c)

2*3.14*d

(d)

3.14*d/2

Answer:

Option (b)

33.

Step 1: Start
Step 2: Initialize sum<-0,num<-1
Step 3: Calculate sum<-sum+num
Step 4: Increment num by 1, num<-num+1
Step 5: If num <= 13, goto 7
Step 6: goto 3
Step 7: Print sum
Step 8: Stop

What will be the output of the given algorithm?

આપેલા અલ્ગોરિધમનું આઉટપુટ શું હશે?

(a)

81

(b)

91

(c)

89

(d)

99

Answer:

Option (b)

34.

Step 1: Start
Step 2: Read num
Step 3: If _______ , goto step 5
Step 4: Print num is Positive, goto step 6
Step 5: Print num is Negative
Step 6: Stop

In the given algorithm, Fill in the blank?

આપેલ અલ્ગોરિધમ માં ખાલી જગ્યા પૂરો?

(a)

num<0

(b)

num>0

(c)

num<=0

(d)

num>=0

Answer:

Option (b)

35.

This is the flowchart of Finding centimeter from the meter, then what will be the missing step?
(આ મીટરથી સેન્ટિમીટર શોધવા માટેનો ફ્લોચાર્ટ છે, તો missing સ્ટેપ શું હશે?)

(a)

cm<-m/100

(b)

m<-cm/100

(c)

cm<-m/12

(d)

m<-cm/12

Answer:

Option (a)

36.

Step 1: Start
Step 2: Initialize f<-0
Step 3: Read c
Step 4: Calculate f<- c*1.8+32
Step 5: Print f
Step 6: Stop

This is the algorithm of Finding Celsius to Fahrenheit, then if celsius, c=5 then what will be output?

આ અલ્ગોરિધમ સેલ્સિયસ થી ફેરનહિટ માં કન્વર્ટ કરવા માટેનો છે, જો સેલ્સિયસ, c=5 હોય તો આઉટપુટ શું હશે?

(a)

46

(b)

76

(c)

45

(d)

41

Answer:

Option (d)

37.

Step 1: Start
Step 2: Initialize kg<-0
Step 3: Read g
Step 4:
Step 5: Print kg
Step 6: Stop

This is the algorithm to convert gram into kilogram, then what will be the missing step?

આ અલ્ગોરિધમ ગ્રામને કિલોગ્રામમાં કન્વર્ટ કરવા માટેનો છે, તો missing સ્ટેપ શું હશે?

(a)

kg<-g/1000

(b)

kg<-g*1000

(c)

kg=g/1000

(d)

kg=g*1000

Answer:

Option (b)

38.

Given flowchart is used to print even numbers between 1 to N.
(આપેલ ફ્લોચાર્ટ નો ઉપયોગ 1 થી N ની વચ્ચેના ઇવન નંબર પ્રિન્ટ કરવા માટે થાય છે. )

(a)

TRUE

(b)

FALSE

Answer:

Option (b)

39.

If a=1,b=1,c=1 then what will be the output?
(જો a=1,b=1,c=1 તો આઉટપુટ શું હશે?)

(a)

r1=2,r2=4

(b)

Roots not Possible.

(c)

r1=1.54,r2=1.2

(d)

r1=0,r2=0.3

Answer:

Option (b)

Showing 31 to 39 out of 39 Questions