Site icon T4Tutorials.com

Which of the following is not an example of high level language?

1. Low level and high level languages MCQs

MCQ: Which of the following is not an example of high level language?

(a) Ada

(b) Java

(c) C++

(d) Boolean

Answer: Boolean

Boolean is not an example of high level language.

2. Which of the following language is less memory efficient?

(a) COBOL

(b) Low level language

(c) C++

(d)  both a and c

Answer: both a and c

3. Which of the following language is nearest to human language?

(a) High level language

(b) Low level language

(c) C++

(d)  both a and c

Answer: both a and c

4. Which of the following language is written in 0 and 1?

(a) ASP

(b) Low level language

(c) PHP

(d)  both a and c

Answer: Low level language

5. Which of the following language is more memory efficient?

(a) COBOL

(b) Low level language

(c) C++

(d)  both a and c

Answer: Low level language

6. Which of the following language is machine-dependent?

(a) PHP

(b) Assembly language

(c) ASP

(d)  both a and c

Answer: Assembly language

7. Which of the following language can be run on any platform?

(a) High level language

(b) Low level language

(c) assembly language

(d)  both b and c

Answer: High level language

8. Which of the following is an example of high level language?

(a) COBOL

(b) Ada

(c) C++

(d) All of these

Answer: All of these

9. Which of the following language needs assembler for translation?

(a) High level language

(b) PHP

(c) assembly language

(d)  C#

Answer: assembly language

10.Which of the following language needs compiler for translation?

(a) High level language

(b) C++

(c) C#

(d)  All of these

Answer: All of these

11. Which of the following is an example of low level language?

(a) Assembly language

(b) Ada

(c) C++

(d) All of these

Answer: Assembly language

Examples (Helpful for similar MCQs)

High Level Language Examples

  1. Java
  2. C
  3. PHP
  4. Swift
  5. COBOL
  6. C#
  7. Ruby
  8. JavaScript
  9. Python
  10. FORTRAN
  11. Pascal
  12. Visual Basic
  13. C++
  14. Perl
  15. Ada
  16. Kotlin

Low Level Language Examples

  1. Machine language
  2. Assembly language

Example of C# program as a high level language

Write a program in C# as a high level language to find the largest number among 3 numbers.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace T4Tuorials.com {
   class MyApplication {
      static void Main(string[] args) {
         int First_Number, Second_Number, Third_Number;
         // set the value of the three numbers
         First_Number = 7;
         Second_Number = 5;
         Third_Number = 88;
         if (First_Number > Second_Number) {
            if (First_Number > Third_Number) {
               Console.Write("Number one is the largest Number in all numbers!\n");
            } else {
               Console.Write("Number three is the largest Number in all numbers!\n");
         }
      }
      else if (Second_Number > Third_Number)
         Console.Write("Number two is the largest Number in all numbers!\n");
      else
         Console.Write("Number three is the largest Number in all numbers!\n");
      }
   }
}

Example of C++ program as a high level language

Write a program in C++ as a high level language to find the largest number among 3 numbers.

#include <iostream>
using namespace std;

int main() {
    float First_Number, Second_Number, Third_Number;

    cout << "Enter three numbers: ";
    cin >> First_Number >> Second_Number >> Third_Number;

    if((First_Number >= Second_Number) && (First_Number >= Third_Number))
        cout << "Larger number: " << First_Number;
    else if ((Second_Number >= First_Number) && (Second_Number >= Third_Number))
        cout << "Larger number: " << Second_Number;
    else
        cout << "Larger number: " << Third_Number;
    
    return 0;
}

Example of program in Assembly language as a high level language

Write a program in Assembly language as a high level language to find the largest number.

.MODEL SMALL
.STACK 100H
.DATA
ARRAY DB 7, 9, 4, 88, 99, 43, 91, 47, 79, 3
LARGEST DB ?
.CODE
MAIN PROC
    
    MOV AX, @DATA
    MOV DS, AX
    
    MOV BX, 0
    
    MOV AL, ARRAY[BX]
    
    MOV LARGEST, AL
    
    COMPARE:
    
    INC BX
    
    CMP BX, 10
    
    JE EXIT
    
    MOV AL, ARRAY[BX]
    
    CMP AL, LARGEST
    
    JG UPDATE_LARGEST
    
    JMP COMPARE
    
    UPDATE_LARGEST:
    
    MOV LARGEST, AL
    
    JMP COMPARE
    
    EXIT:
    
    MAIN ENDP
END MAIN

Programming C Plus Plus MCQs Homepage

Exit mobile version