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

Quiz

Programming Languages Ch12 & Ch13

Miguel Lopez 28 questions

Take the quiz

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

Questions in this quiz (28)

  1. 1– [blank_start]explicit[blank_end] (Programmer control)
    • [blank_start]Dangling pointer[blank_end] problem

    - [blank_start]Implicit[blank_end] through garbage collection
    • Various Garbage collection techniques
    1. Aexplicit
    2. BDangling pointer
    3. CImplicit
  2. 2Should all binding of messages to methods be
    dynamic?
    1. ATrue
    2. BFalse
  3. 3The initialization issue is [blank_start]whether[blank_end] and [blank_start]how[blank_end] objects are [blank_start]initialized[blank_end] when they are created.
    1. Awhether
    2. Bhow
    3. Cinitialized
  4. 4Smalltalk is a pure [blank_start]OOP[blank_end] language
    – Everything is an [blank_start]object[blank_end]
    – All computation is through [blank_start]objects[blank_end] sending messages to
    [blank_start]objects[blank_end]
    – None of the appearances of imperative languages
    – All objected are allocated from the [blank_start]heap[blank_end] and referenced
    through [blank_start]reference variables[blank_end]
    – All de-allocation is [blank_start]implicit[blank_end]
    – Constructors must be [blank_start]explicitly[blank_end] called when an object is
    created
    • A class can have multiple [blank_start]constructors[blank_end], but each must have a
    [blank_start]unique name[blank_end]
    1. AOOP
    2. Bobject
    3. Cobjects
    4. Dobjects
    5. Eheap
    6. Freference variables
    7. Gimplicit
    8. Hexplicitly
    9. Iconstructors
    10. Junique name
  5. 5Support for OOP in Smalltalk

    Type Checking and Polymorphism
    – All binding of messages to methods is [blank_start]dynamic[blank_end]
    1. Adynamic
  6. 6The only type checking in Smalltalk is static
    1. ATrue
    2. BFalse
  7. 7All variables are typeless in Smalltalk
    1. ATrue
    2. BFalse
  8. 8in Smalltalk, all [blank_start]subclasses[blank_end] are [blank_start]subtypes[blank_end] (nothing can be hidden
    1. Asubclasses
    2. Bsubtypes
  9. 9Smalltalk is fast compared with conventional compiled imperative languages
    1. ATrue
    2. BFalse
  10. 10Dynamic binding allows [blank_start]type errors[blank_end] to go [blank_start]undetected[blank_end] until run time
    1. Atype errors
    2. Bundetected

Information

Description
Computer Science Quiz on Programming Languages Ch12 & Ch13, created by Miguel Lopez on 13/04/2022.
Language
English
Views
1
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?