Emerson - Roxar @ndc 2015 Quiz

11 Questions | Total Attempts: 54

SettingsSettingsSettings
Please wait...
Emerson - Roxar @ndc 2015 Quiz

Enter the competition to win a USB charger at the end of each day and a final draw for an iPad Mini on Friday at 4pm.


Questions and Answers
  • 1. 
    What is true about a Smart Pointers in C++?
    • A. 

      There's an implementation available as part of the C++ standard library

    • B. 

      The objects they point to are automatically deleted by the garbage collector

    • C. 

      They are used to help ensure that programs are free of memory and resource leaks and are exception-safe

    • D. 

      It was invented by John Smart

  • 2. 
    What is the order that objects in an array are destroyed in C++?MyClass objs[10];
    • A. 

      The order is undefined

    • B. 

      Objects will be destroyed in the same order as they were created

    • C. 

      The order of destruction is the reverse of the order of construction

  • 3. 
    You were given a chunk of memory and constructed a new object in that chunk using placement new. What do you do to destroy that object again?
    • A. 

      The destructor will be called automatically when the chunk of memory is freed

    • B. 

      Placement new doesn’t require destruction of constructed objects

    • C. 

      I will manually invoke the destructor of the object

    • D. 

      A call to placement delete is necessary to destroy the object

  • 4. 
    What does SFINAE refer to in C++?
    • A. 

      It refers to a situation where the failed substitution of template parameters is not considered an error and compilation can eventually succeed

    • B. 

      A situation where an exception was encountered during a floating-point calculation, but the calculation continues using NaNs

    • C. 

      The initialization of an object is part of the allocation of that object

  • 5. 
    You have a model that inherits from QAbstractListModel. It happens to contain items logically ordered in the same fashion as they are being displayed which you locally store in QList list. You are implementing a custom method on this model responsible for removing items from said list. Which method from QAbstractListModel would you use:
    • A. 

      RowsAboutToBeRemoved(...)

    • B. 

      RowsRemoved(...)

    • C. 

      Reset()

    • D. 

      BeginRemoveRows(...) / endRemoveRows(..)

    • E. 

      None, QAbstractListModel handles such cases automatically

    • F. 

      None, QAbstractListModel does not care about changes in underlying data structure

  • 6. 
    What is true about Python?
    • A. 

      It's a strongly typed language

    • B. 

      It doesn't support polymorphism

    • C. 

      Can be embedded in HTML5 and are supported in most browsers

    • D. 

      The value of "[] == None" is True

  • 7. 
    What is the output when the following code is executed?list('hello roxar')[-5:] 
    • A. 

      ‘roxar’

    • B. 

      ‘hello’

    • C. 

      ['r', 'o', 'x', 'a', 'r']

    • D. 

      ['h', 'e', 'l', 'l', 'o']

  • 8. 
    Why does comparing strings using ‘is’ and the equality operator not always produce the same result in Python?
    • A. 

      ‘is’ shouldn’t be used at all for strings, it doesn’t work deterministically

    • B. 

      ‘is’ compares the identity of objects; if two strings are in different memory locations, the result will be False

    • C. 

      The equality operator ignores invisible Unicode control characters and will report True if two strings look identical on the screen

  • 9. 
    What type of transformation matrix is this?
    • A. 

      Identity matrix

    • B. 

      Translation matrix

    • C. 

      Scaling matrix

    • D. 

      Rotation matrix

  • 10. 
    What is true about SCRUM?
    • A. 

      The team delivers to the project manager

    • B. 

      The team is self organizing

    • C. 

      Planning meetings are held every morning to adjust the plan according new stakeholder requests

    • D. 

      Scrum is part of the Agile movement

  • 11. 
    What does this algorithm do?
Back to Top Back to top