Home / MCQ Bank / Computer
Computer Control Structures In Ruby Difficulty: Medium

What is the output of the given code? if 79>78 puts "True".upcase if 9>8 puts "True".reverse if 7==7 puts "equal".downcase end end end

Select the correct option to test your answer:

More Computer Questions

Which of the following is the probability calculus of beliefs, given that beliefs follow certain rules? What is the output of the following code snippet? int x = 5; if (x > 3) { System.out.println("Hello"); } What will be the output of the following C# code? static void Main(string[] args) { int const p = 0; switch (3 * 5 / 6) { case p: Console.WriteLine("A"); break; case p * 1: Console.WriteLine("B"); break; case p - 2: Console.WriteLine("C"); break; default: Console.WriteLine("D"); } } What does the lengths() function do in R? What will be the error (if any) in the following C code? #include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char *p; *p = (char)calloc(10); strcpy(p, "HELLO"); printf("%s", p); free(p); return 0; }