0

programming languages Online Quiz - 293

Description: programming languages Online Quiz - 293
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

APL is a legacy programming language that quickly fell out of favor due to its unusual characteristics. What was it about APL that made it so strange by today's standards?

  1. You couldn't type APL code using the characters on an ordinary typewriter keyboard

  2. As a Mac OS-only language you couldn't program in APL without using a GUI editor

  3. APL had no concept of strings; text had to be processed and output one character at a time

  4. As the world's only Albanian Programming Language all APL's keywords were based on Albanian


Correct Option: A

Who is generally credited with being the first computer programmer?

  1. Blaise Pascal

  2. Ada Lovelace

  3. Jean-Benoit Fortran

  4. William Henry Gates II


Correct Option: B

Which of the following is a true statement about the C programming language?

  1. Method calls may return only one value but objects may contain any number of methods

  2. The reference count of an object must reach zero for garbage collection to take place

  3. All classes must be declared in header files before they can be instantiated as objects

  4. None of the above


Correct Option: D

What is a singleton?

  1. A class that is instantiated exactly once producing just one object of that class

  2. A complete program that takes up only one line of code

  3. A data structure such as a linked list that contains only one member

  4. None of the above


Correct Option: A

What makes parallel computing one of the more difficult disciplines for programmers to master?

  1. Race conditions can lead to data being corrupted in unexpected ways

  2. Inadequate memory management can lead to application deadlocks

  3. Too many threads or processes can actually decrease performance

  4. All of the above


Correct Option: D

Which of the following languages does NOT require every line of code to be terminated with a semicolon?

  1. Java

  2. C++

  3. Python

  4. All of the above


Correct Option: D

Which of the following is NOT a characteristic of functional programming languages?

  1. Functions can take other functions as arguments and return them as results

  2. Algorithms are expressed in natural mathematical terms rather than as procedural steps

  3. Every function must modify some kind of state - either within the machine or in the outside world

  4. Recursion is encouraged


Correct Option: C

What is a Turing machine?

  1. An abstract device that can simulate the logic of any conceivable computer algorithm

  2. Any mechanism that can simulate human intelligence sufficiently to fool a human

  3. A device used by early programmers to input punch cards into the computer

  4. Any of a number of machines derived from the first mechanical computing devices


Correct Option: A

In object-oriented programming why might you want to "serialize" an object?

  1. To sort its data structures in memory so that they can be accessed more quickly

  2. To ensure that it is thread-safe by eliminating any deadlocks or race conditions

  3. To break it into simpler subobjects known as "episodes"

  4. To convert it into a form that can be saved to persistent storage


Correct Option: D

Which of the following is NOT strictly speaking a programming language?

  1. SQL

  2. PostScript

  3. AppleScript

  4. Tcl


Correct Option: A

What is the first step to designing a recursive algorithm?

  1. Make sure all your subroutines are thread-safe

  2. Free all unallocated memory blocks

  3. Normalize your data model

  4. Determine the answer to question 8 above


Correct Option: D

C# is a language platform that is very similar to Java in many respects. If a programmer develops software in C# using Microsoft Visual Studio what is an equivalent tool for the Java platform?

  1. Subversion

  2. Apache Ant

  3. NetBeans

  4. Spring


Correct Option: C

Which of the following programming languages is a dialect of ECMAScript?

  1. ActionScript

  2. AppleScript

  3. PostScript

  4. VBScript


Correct Option: B

Which of the following programming languages is a dialect of ECMAScript?

  1. ActionScript

  2. AppleScript

  3. PostScript

  4. VBScript


Correct Option: A

What is the first step to designing a recursive algorithm?

  1. Make sure all your subroutines are thread-safe

  2. Free all unallocated memory blocks

  3. Normalize your data model

  4. Determine the answer to question above


Correct Option: D

What is a main disadvantage of using statically linked libraries to build software executables?

  1. Linking libraries statically increases executable file size and leads to code redundancy

  2. Without dynamic linking the software cannot take advantage of higher-order functions

  3. The software becomes subject to the linked libraries' license terms which may include usage fees

  4. Lack of proper dynamic linking leads to library proliferation and increased "DLL hell"


Correct Option: A

The first-ever optimizing compiler was written to support which high-level programming language?

  1. Cobol

  2. Fortran

  3. C

  4. LISP


Correct Option: B

void main() { int x=20,y=35; x= y++ + x++; y= ++y + ++x; printf(" %d %d" , x,y); }

  1. x=57 & y=94

  2. x=57,y=55

  3. X = 57 Y= 93

  4. X = 37 Y= 65


Correct Option: A

void main(){ print(“%d”,printf(“What this prints”)) };

  1. Compile error

  2. What this prints

  3. 11

  4. 15


Correct Option: D
- Hide questions