Programming MCQs Feed

πŸ“Š HTML
Q. HTML is a subset of ___________
  • (A) SGMT
  • (B) SGML
  • (C) SGME
  • (D) XHTML
πŸ’¬ Discuss
βœ… Correct Answer: (B) SGML
πŸ“Š Linux
Q. Any shell script begins with the line______to denote the name of theshell to be used for interpretation.
  • (A) #!/bin/sh
  • (B) #!/bin/csh
  • (C) #!/bin/ksh
  • (D) any one of them
πŸ’¬ Discuss
βœ… Correct Answer: (D) any one of them
πŸ“Š JAVA
Q. Java source files are compiled and converted to
  • (A) Object code
  • (B) machine code
  • (C) Bytecode
  • (D) executable file
πŸ’¬ Discuss
βœ… Correct Answer: (C) Bytecode
πŸ“Š Python
Q. What will be the output of the following code snippet?
Code:
print(2**3 + (5 + 6)**(1 + 1))
  • (A) 129
  • (B) 8
  • (C) 121
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) 129
πŸ“Š HTML
Q. ASCII is _____________
  • (A) 3-bit character set
  • (B) 6-bit character set
  • (C) 7-bit character set
  • (D) 9-bit character set
πŸ’¬ Discuss
βœ… Correct Answer: (C) 7-bit character set
πŸ“Š JAVA
Q. Choose the right statement about Java Data types.
  • (A) Integer data types are short, int and long
  • (B) Real number data types are float and double
  • (C) The character data type is char.
  • (D) All the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All the above
πŸ“Š JAVA
Q. What is a Loop in Java programming language?
  • (A) A Loop is a block of code that is executed repeatedly as long as a condition is satisfied.
  • (B) A Loop is a block of code that is executed only once if the condition is satisfied.
  • (C) A Loop is a block of code that is executed more than 2 times if the condition is satisfied.
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) A Loop is a block of code that is executed repeatedly as long as a condition is satisfied.
πŸ“Š C Programming
Q. What is the Priority among (*, /, %), (+, -) and (=) C Operators.?
  • (A) (*, /, %) > (+, -) < (=)
  • (B) (*, /, %) < (+, -) < (=)
  • (C) (*, /, %) > (+, -) > (=)
  • (D) (*, /, %) < (+, -) (+, -) == (=)
πŸ’¬ Discuss
βœ… Correct Answer: (C) (*, /, %) > (+, -) > (=)
πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$n = 0x6db7;
print $n<<8;
?>
  • (A) Error
  • (B) 0
  • (C) 7190272
  • (D) 0x6db7
πŸ’¬ Discuss
βœ… Correct Answer: (C) 7190272
πŸ“Š HTML
Q. Which of the following statement is not true?
  • (A) SVG is used to define graphics for the Web
  • (B) SVG is a W3C recommendation
  • (C) SVG doesn’t support event handlers
  • (D) SVG stands for Scalable Vector Graphics
πŸ’¬ Discuss
βœ… Correct Answer: (C) SVG doesn’t support event handlers