Programming MCQs Feed

📊 C#
Q. Why does Visual Studio.NET use XML as a data storage technology?
  • (A) XML works best for the single PC user.
  • (B) XML restricts the number of applications that can interface with Visual Basic.NET.
  • (C) XML is optimized for sharing data across the Internet.
  • (D) XML is easier to understand than Visual Basic.NET.
💬 Discuss
✅ Correct Answer: (C) XML is optimized for sharing data across the Internet.
📊 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