Skip to content
GK24
GK QuizComputer Awareness

Computer Awareness Quiz: Programming Languages

  • 10 questions
  • 10 minutes
  • Difficulty: Medium
Start Quiz

About this quiz

This Computer Awareness quiz on Programming Languages puts 10 multiple-choice questions to you, the verified MCQs published with GK24's note on the topic, 3 of them asked in real previous-year papers. Every question carries a full explanation of why the correct option is right and why the other options are wrong, so you learn the fact behind the answer rather than the letter. Attempt it right after reading the note, keep to the timer, and use the explanations at the end to mark what needs another look. Sit it again before the exam as a quick revision of the topic.

Questions in this quiz

10 questions with answers and explanations

Q2.Computer AwarenessEasy

The C programming language was developed by:

  1. A.James Gosling
  2. B.Bjarne Stroustrup
  3. C.Dennis Ritchie
  4. D.Guido van Rossum
Show answer
Correct answer: C. Dennis Ritchie

He created C at Bell Laboratories in the early 1970s and used it to rewrite the UNIX operating system, which is why C is called the mother of system programming languages and still underlies most operating systems.

Q3.Computer AwarenessAsked in: RRB JE · 30 Aug 2019Medium

What is the use of the 'javac' command?

  1. A.Execute a java program
  2. B.Debug a java program
  3. C.Interpret a java program
  4. D.Compile a java program
Show answer
Correct answer: D. Compile a java program

The command javac is the Java compiler: it takes a source file with the extension.java, checks its grammar and converts it into a class file containing bytecode, the intermediate code that any Java Virtual Machine can run.

Q4.Computer AwarenessEasy

Which translator converts a high-level program into machine language one statement at a time?

  1. A.Compiler
  2. B.Interpreter
  3. C.Assembler
  4. D.Loader
Show answer
Correct answer: B. Interpreter

An interpreter reads one statement of the source program, translates it and executes it immediately before moving to the next, so it stops at the first error it meets and tells the programmer about that error alone; this makes it convenient for learning and for testing small pieces of code…

Q5.Computer AwarenessAsked in: RRB JE · 30 Aug 2019Hard

Which of the following is NOT a java primitive type?

  1. A.short
  2. B.long
  3. C.long double
  4. D.boolean
Show answer
Correct answer: C. long double

Java has exactly eight primitive data types, namely byte, short, int, long, float, double, char and boolean, and long double is not among them; it belongs to C and C++, where it denotes an extended precision floating point number, so the option is a deliberate trap for candidates who have…

Q6.Computer AwarenessAsked in: RRB JE · 30 Aug 2019Medium

Which of the following is/are the rules to declare variables in Java?

  1. A.Java keywords cannot be used as variable names
  2. B.All of the options
  3. C.Variable names are case-sensitive
  4. D.The first character must be a letter
Show answer
Correct answer: B. All of the options

The correct answer is B, all of the options, because each of the other three statements is a genuine rule of the language and the question asks which of them apply.

Q7.Computer AwarenessEasy

Machine language, the first generation of programming languages, is written using:

  1. A.English words
  2. B.Mnemonics such as ADD and MOV
  3. C.The binary digits 0 and 1
  4. D.Query statements
Show answer
Correct answer: C. The binary digits 0 and 1

Machine language is the only language the processor understands directly, because each instruction is a pattern of electrical states that is written as a string of zeros and ones; a program in machine language therefore needs no translation and runs fastest, but it is tied to one processor and is…

Q8.Computer AwarenessMedium

Which of the following is NOT a programming language?

  1. A.Python
  2. B.HTML
  3. C.Java
  4. D.C++
Show answer
Correct answer: B. HTML

HyperText Markup Language uses tags to describe how the content of a web page is arranged, such as headings, paragraphs, lists, tables and images, but it has no variables, no conditions and no loops, so it cannot express logic or take decisions; for that reason it is called a markup…

Q9.Computer AwarenessMedium

The Python programming language was created by:

  1. A.Guido van Rossum
  2. B.Brendan Eich
  3. C.Niklaus Wirth
  4. D.John Backus
Show answer
Correct answer: A. Guido van Rossum

He designed Python in the Netherlands and released the first version in 1991, choosing a syntax with indentation instead of braces so that programs would be easy to read; the name comes from a television comedy series and not from the snake.

Q10.Computer AwarenessMedium

SQL, a fourth-generation language, is mainly used for:

  1. A.Designing web pages
  2. B.Working with databases
  3. C.Writing operating systems
  4. D.Editing images
Show answer
Correct answer: B. Working with databases

SQL stands for Structured Query Language, and it is used to create tables, insert rows, update and delete data and, above all, to ask questions of a relational database with statements such as SELECT; it is called non-procedural because the programmer states what result is wanted and the database system…

View all quizzes