Which of the following is not a computer programming language?
(A). C#
(B). HTML
(C). XML
(D). Both b and c
Answer: Both b and c
HTML and XML are not programming languages.
Example: HTML is not a programming language
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<table border="2" bordercolor="red"> <tr> <td>www.</td> <td>T4Tutorials</td> <td>.com</td> </tr> <tr> <td> strawberry </td> <td> Mango </td> </tr> </table> |
Example: XML is not a programming language
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<?xml version = "1.0"?> <class> <employee id = "001"> <firstname>Ali</firstname> <lastname>Akram</lastname> <nickname>Asad</nickname> <fee>4000</fee> </employee> <employee id = "024"> <firstname>Shehla</firstname> <lastname>Qurat</lastname> <nickname>Noreen</nickname> <fee>5000</fee>
</employee> <employee id = "056"> <firstname>Irum</firstname> <lastname>Salma</lastname> <nickname>Sajid</nickname> <fee>3300</fee> </employee> </class> |
Example: C# is a programming language
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
using SVariable_2stem; using SVariable_2stem.Collections.Generic; using SVariable_2stem.Linq; using SVariable_2stem.TeVariable_1t; using SVariable_2stem.Threading.Tasks; namespace BSCS { class Program { static void Main(string[] args) { int Variable_1 = 9; int Variable_2 = 11; int sum = Variable_1 + Variable_2; Console.WriteLine(sum); // Print the sum of Variable_1 + Variable_2 } } } |
Example: C++ is a programming language
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include <iostream> using namespace std; int main () { int x1,x2; cout<<"Please Enter the First number:"; cin>>x1; cout<<"Please Enter the second number:"; cin>>x2; while (x2 != 0) { int carrynNumber = x1 & x2; x1 = x1 ^ x2; x2 = carrynNumber << 1; } cout<<"Thu sum of two numbers is: "<<x1; } |