• No results found

1 Exercises 1. Describe what is meant by object-oriented programming. 2. Describe what is meant by the term inheritance

N/A
N/A
Protected

Academic year: 2021

Share "1 Exercises 1. Describe what is meant by object-oriented programming. 2. Describe what is meant by the term inheritance"

Copied!
1
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

1

Exercises

1. Describe what is meant by object-oriented programming.

2. Describe what is meant by the term inheritance in object-oriented pro-gramming. Use examples.

3. A coin is weighted so that heads is four times as likely as tails. Find the probability that: (a) tails appears, (b) heads appears

4. Under which of the following functions does S = {a1, a2} become a

prob-ability space?

(a) P (a1) = 13, P (a2) =12 (b) P (a1) =34, P (a2) = 14

(c) P (a1) = 1, P (a2) = 0 (d) P (a1) =54, P (a2) = −14

5. Identify, if any, the sinks and sources of the digraph shown in Figure 1.

A B

C

Figure 1: Digraph for Question 5

2

Solutions

3 Let p = P (T ), then P (H) = 4p. We require P (H) + P (T ) = 1, so 4p + p = 1, hence p = 15. Therefore: (a) P (T ) = 15, (b) P (H) =45

4 4b and 4c

5 A is a souce and C is a sink.

Referenties

GERELATEERDE DOCUMENTEN

[2 points] The asymptotic relative efficiency of one test with respect to another test depends on the underlying distribution of the datac. [2 points] Variance inflation factors

Have you ever had any good surprise using IPM, like finding something that really helped to make your life easier.. What is your personal story

What is your goal, vision of how you think about how Quality management should be exercised in your company?. And how does this work

Through default inheritance, the base form gains access to the syntactic knowledge that it is a main verb, that its object is an.. t One may wonder how suitable these methods are

A coin is weighted so that heads is four times as likely as tails.. Describe what is meant by the term inheritance in object-oriented

A coin is weighted so that heads is four times as likely as tails.. Describe what is meant by

A coin is weighted so that heads is four times as likely as tails. Find the probability that: (a) tails appears, (b)

A coin is weighted so that heads is four times as likely