ExamVeda
Login
Home
41
What is the output of the given code?
counter = 1
while counter < 11
  puts counter
  counter+=1
  end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
42
What is the output of the given code?
a=10
b=9
if(a>b)
    print ("a greater than b")
else 
    print "Not greater"
end
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
43
Boolean opeartors are also known as logical operators.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
44
Which of the following is a valid assignment operator?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
45
What will the following expression evaluate to?
true | | false
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
46
What will the following expression evaluate to?
(true && false) | | (!true)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
47
What will the following expression evaluate to?
true && false
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
48
What is the output of the given code?
if(a==10 && b=9)
    print "true"
else
    print "false"
end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
49
What is the output of the given code?
test_1 = 17 > 16
puts(test_1)
test_2 = 21 <= 30
puts(test_2)
test_3 = 9 >= 9
puts(test_3)
test_4 = -11 > 4
puts(test_4)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
50
What will the following expression evaluate to?
!true && !false
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board