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;
}
1000+ Programming C Plus Plus MCQs
Highly Recommended C++ Important MCQs with Explanation
- Which symbol is used to create multiple inheritances?
- If a derived class object is created, which constructor is called first?
- Which of the following is not a type of constructor?
- a ____ is a member function that is automatically called when a class object is __.
- What is the output of the following code in C++?
- How many times will the following code print?
- Which of the following is a procedural language?
- Which of the following is not a programming language?
- Which of the following is not an example of high-level language?
- While declaring pointer variables which operator do we use?
- To which does the function pointer point to?
- Which of these best describes an array?
- Which of the following is a Python Tuple?
Other important MCQs
Data Structure
Which of the following is not the type of queue?
Database
If one attribute is a determinant of the second, which in turn is a determinant of the third, then the relation cannot be
Python
Which of the following is a Python Tuple?