Embedded mod 4-programing tools Flashcards

1
Q

What is the purpose of creating a model for an embedded system?

A

It provides a time-saving and cost-effective approach to the development of dynamic control systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does graphical modelling languages use to represent concepts?

A

Named symbols and lines that connect the symbols.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the main benefits of software analysis and design?

A
  • Description of the system requirement
  • Description of how the system works
  • Shows system validation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a data flow graph?

A

A model of a program with no conditionals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a basic block in a high-level programming language?

A

A code segment with only one entry and exit point.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a disadvantage of data flow graphs (DFG)?

A

It gives a unit of a system with no control conditions, leading to a single path for program flow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does a control/data flow graph (CDFG) model?

A

Both data operations and control operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What types of nodes are present in a basic CDFG?

A
  • Decision nodes
  • Data flow nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an advantage of using a CDFG?

A

Guides testing for each path starting from a decision node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What defines a finite state machine (FSM)?

A

A machine that has a limited or finite number of possible states.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the components of a state machine?

A
  • A set of input events
  • A set of output events
  • A set of states
  • A function mapping states and input to output
  • A function mapping states and inputs to states
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a sequential program model characterized by?

A

Use of multiple function calls executed sequentially.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an example of a sequential program model function?

A

Run function get_user_input() to obtain input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the main difference between sequential and concurrent execution?

A

Sequential leads to poor processor utilization, while concurrent allows effective CPU usage by switching task execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a drawback of the concurrent processing model?

A

It requires additional overheads in task scheduling, synchronization, and communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an object in object-oriented modeling?

A

An entity used for representing or modeling a particular piece of the system.

17
Q

What is a class in object-oriented modeling?

A

An abstract description of a set of objects, considered a ‘blueprint’ of an object.

18
Q

Fill in the blank: Private member variables are accessible only _______.

A

within the class

19
Q

True or False: Protected member functions can be accessed by classes derived from a parent class.

20
Q

What is one of the main advantages of the object-oriented model?

A

It brings re-usability, maintainability, and productivity in system design.