Computer Language Questions with Solutions
A computer language is a formal language used to write instructions for a computer. This topic covers the levels of programming languages: machine language (binary code the CPU runs directly), assembly language (which uses short mnemonics such as ADD and MOV), and high-level languages such as C, C++, Java and Python, which are closer to human language. It also covers language translators (assemblers, compilers and interpreters), generations of programming languages from 1GL to 5GL, programming paradigms (procedural, object-oriented, functional and logic programming), and basic concepts such as source code, object code, syntax errors and logical errors. Exam questions often ask which translator is used for which language level, which language is machine-dependent, and the main features of object-oriented programming (encapsulation, inheritance, polymorphism and abstraction). Practise the computer language questions below. Each answer includes an explanation.
- Q1.
Which of the following is a correct way to declare a variable in C?
A. int x;B. x int;C. int x = "10";D. float x = '10';easyAsked in MAH MCA CET 2025View solution › - Q2.
Which statement is true about compilers?
A. They execute the code line-by-line.B. They generate machine code for the entire program at once.C. They are faster than interpreters in error detection.D. They are used to execute scripts dynamically.easyAsked in MAH MCA CET 2025View solution › - Q3.
What is the purpose of the 'break' statement in C?
A. End the programB. Skip the next one statementC. Exit a functionD. Exit a loopeasyAsked in MAH MCA CET 2024View solution › - Q4.
__ are used to compare two quantities and, depending on their relation, take certain decisions for that comparison.
A. Logical operatorsB. ExpressionC. Relational operatorsD. Arithmetic operatorseasyAsked in MAH MCA CET 2024View solution › - Q5.
What is the correct syntax for declaring a variable in C?
A. int variable_name;B. variable_name = 5;C. variable_name;D. int = variable_name;easyAsked in MAH MCA CET 2024View solution › - Q6.
Library function getch() belongs to which header file in C language?
A. conio.hB. stdio.hC. stdil.hD. stdlibio.heasyAsked in MAH MCA CET 2024View solution › - Q7.
FORTRAN is called:
A. Formula TranslatorB. Format TranslatorC. File TranslatorD. Floppy TranslatoreasyAsked in TCS ExamView solution › - Q8.
Which among the following is the name given to the cursor for the computer language "LOGO"?
A. RobotB. FrogC. SpiderD. TurtleeasyAsked in TCS ExamView solution › - Q9.
Which language is directly understood by the Computer without translation programme?
A. BASIC languageB. C languageC. Machine languageD. High Level languageeasyAsked in TCS ExamView solution › - Q10.
An explicit process of converting a data from one type to another is called
A. type castingB. automatic type conversionC. data overloadingD. exception handlingeasyAsked in TCS ExamView solution › - Q11.
Which of the following is not a High Level Programming Language?
A. COBOLB. PascalC. Assembly languageD. FORTRANeasyAsked in TCS ExamView solution › - Q12.
Which of the following is not a computer programming language?
A. C++B. Objective-CC. C#D. C@easyAsked in TCS ExamView solution › - Q13.
Which one of the following is NOT an object oriented or Object Based Programming language?
A. PerlB. RubyC. PythonD. CeasyAsked in TCS ExamView solution › - Q14.
Java is referred to as a(n)
A. High level languageB. Complex languageC. Hardware device driverD. Low level languageeasyAsked in TCS ExamView solution › - Q15.
________is a set of program that transforms source code written in a programming language into another computer language.
A. Machine CodeB. User CodeC. CompilerD. Operating systemeasyAsked in TCS ExamView solution › - Q16.
Which of the following is a programming language?
A. PascalB. D+C. HTMLD. CSSeasyAsked in TCS ExamView solution › - Q17.
A program written in high level language is referred to as
A. Source CodeB. Object CodeC. Machine CodeD. Assembly CodeeasyAsked in TCS ExamView solution › - Q18.
The symbols used in an assembly language are
A. CodesB. MnemonicsC. AssemblerD. LiteralseasyAsked in TCS ExamView solution › - Q19.
Process of writing computer instruction in programming language is known as
A. AssemblingB. CompilingC. ExecutingD. CodingeasyAsked in TCS ExamView solution › - Q20.
First generation programming language used
A. TranslatorB. Machine level languageC. CompilerD. AssemblereasyAsked in TCS ExamView solution ›