Site icon T4Tutorials.com

Which of the following is not a programming language?

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

<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

<?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

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

#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;
}

 

Exit mobile version