0

programming languages Online Quiz - 74

Description: programming languages Online Quiz - 74
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Only with a double line between base class & derived classes

  2. A plane line with no shape on either end

  3. A line with an arrow-head pointing in direction of parent or superclass

  4. Diamond shape between classes


Correct Option: C

Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

  1. The automatic assignment operator is used

  2. The copy constructor is used

  3. Compiler error

  4. Run-time error


Correct Option: B
  1. Association

  2. Aggregation

  3. Link

  4. None of these options


Correct Option: A
  1. You can define your own data types

  2. An object oriented program can be taught to correct its own errors

  3. It is easier to conceptualize an object oriented program

  4. You can define your own data types and It is easier to conceptualize an object oriented program


Correct Option: D
  1. That's not legal syntax!

  2. foo has memory allocated for it, but is not constructed

  3. foo has memory allocated for it, and is fully constructed

  4. None of the above


Correct Option: A

What is wrong with the following code? int * x = (int *) malloc(100 * sizeof(int)); x = realloc(x, sizeof(int) * 200);

  1. If realloc fails, then the original memory is lost

  2. Nothing, realloc is guaranteed to succeed (by returning the original pointer)

  3. Nothing, realloc frees the original memory passed to it

  4. None of the above


Correct Option: A
  1. Information hiding

  2. Minimizing interdependencies among modules

  3. Make implementation independent

  4. All of these options


Correct Option: A
  1. An overloaded assignment operator

  2. The copy constructor

  3. A destructor

  4. All of these options


Correct Option: C

Which are the main three features of OOP language?

  1. Data Encapsulation, Inheritance & Exception handling

  2. Inheritance, Polymorphism & Exception handling

  3. Data Encapsulation, Inheritance & Polymorphism

  4. Overloading, Inheritance & Polymorphism


Correct Option: C

Reusability can be achieved through?

  1. Inheritance

  2. Composition

  3. Association

  4. All of these options


Correct Option: C

We can write any C# code on the code behind of workflow. True or false

  1. True

  2. False


Correct Option: B

How to pass data to a workflow

  1. using Bookmark resumption

  2. Using InArgument

  3. Using variables

  4. using bookmark resumption and using InArgument

  5. None of this


Correct Option: D
  1. using variable assigned to the OutArgument

  2. Using InArgument assigned to the OutArgument

  3. It is not possible

  4. None of the above


Correct Option: A

How to resume a bookmark

  1. workflowApplication.ResumeBookmark(bookmarkName, null)

  2. workflowApplication.ResumeBookmark(bookmarkName)

  3. workflowInvoker.ResumeBookmark(bookmarkName, null)

  4. workflowInvoker.ResumeBookmark(bookmarkName)


Correct Option: A

Which technologies are used in Activity designer

  1. WPF

  2. Windows

  3. Silverlight

  4. workflow


Correct Option: A

How to define a designer for an activity

  1. Add the Designer attribute to the Activity class

  2. Assign ActivityDesigner name in the Activity Constructor

  3. By overriding cacheMetadata

  4. None of the above


Correct Option: A
- Hide questions