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
- Java
- C
- PHP
- Swift
- COBOL
- C#
- Ruby
- JavaScript
- Python
- FORTRAN
- Pascal
- Visual Basic
- C++
- Perl
- Ada
- Kotlin
Low Level Language Examples
- Machine language
- 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | .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
- Low-level and high-level languages MCQs
- Procedural and non Procedural languages MCQs
- C++ STANDARD LIBRARY MCQs
- Array MCQs
- Arrays MCQs 2
- Pointers Solved MCQs
- Inline Function MCQs – C++
- Top 50 Programming C++ MCQs
- MCQs of introduction to programming
- Past Papers 2022 C++ MCQs
- Past Papers 2021 C++ MCQs
- Past Papers 2020 C++ MCQs
- Past Papers 2019 C++ MCQs
- Highly Recommended C++ Important MCQs with Explanation
- OOP
- OOP intro & examples MCQs
- Classes and Inheritance MCQs
- Friend Function MCQs
- Virtual Function MCQs
- Polymorphism MCQs
- Polymorphism MCQs 2