GoConqr has a new look! Let us know what you think.

Quiz

programming languages midterm

Duncan Levings 123 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (123)

  1. 1What is a programming language?
    a notational system for describing computation in human-readable and machine-readable form
    1. ATrue
    2. BFalse
  2. 2Is HTML a programming language? no.

    a programming language must be Turing complete meaning it has integer variables, arithmetic and sequentially executes statements, selection (if), and loop (while) statements, and has a mechanism for defining new functions using existing functions, selection, and recursion
    1. ATrue
    2. BFalse
  3. 3What are some of the concepts of a programming language?
    1. Aparameter passing (by-value, by-reference)
    2. Btyping (static or dynamic)
    3. Csupport for abstraction (procedural, data)
    4. Dscope (static or dynamic)
    5. Eimplementation (interpreted or compiled)
    6. Freadability (language)
    7. Greliability (safety)
  4. 4[blank_start]C vs. C++ vs. C#[blank_end] for systems programming
    [blank_start]Fortran vs. C[blank_end] for numerical computations
    [blank_start]PHP vs. Ruby[blank_end] for web-based applications
    Ada vs. C for embedded systems
    Common Lisp vs. Scheme vs. ML for symbolic data manipulation
    [blank_start]Java vs. .NET[blank_end] for networked PC programs
    1. AC vs. C++ vs. C#
    2. BFortran vs. C
    3. CPHP vs. Ruby
    4. DJava vs. .NET
  5. 5Programming languages have four properties:
    1. ASyntax
    2. BNames
    3. CTypes
    4. DSemantics
    5. ELogic
    6. FVariables
    7. GFunctions
  6. 6The syntax of a programming language is a precise description of all its grammatically correct programs
    1. ATrue
    2. BFalse
  7. 7Named entities are bound in a running program to:
    1. Ascope
    2. Bvisibility
    3. Ctype
    4. Dlifetime
    5. Eglobal
    6. Fsyntax
  8. 8A type is a collection of values and a collection of operations on those values

    Simple types - numbers, characters, booleans
    Structured types - Strings, lists, trees, hash tables
    1. ATrue
    2. BFalse
  9. 9Type system in a programming language is needed to organize data and helps to check the correctness of programs:
    Determine legal operations
    Detect type errors
    1. ATrue
    2. BFalse
  10. 10What is a paradigm?
    a model or world view

    What is a model?
    a simplified view of something in the real world

    What is a programming language paradigm?
    a pattern for a programming language to follow
    1. ATrue
    2. BFalse

Information

Description
Computer Science Quiz on programming languages midterm, created by Duncan Levings on 26/10/2018.
Language
English
Views
16
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?