# [ 100% Correct ] OpenModelica Test | Spoken Tutorial Quiz Answers

Hello and Welcome to UNIQUE JANKARI, If You are Searching for OpenModelica Test Answers Of Spoken Tutorial then You are at the perfect place. Here we will Provide 100% Correct Answers of the OpenModelica Test – Spoken Tutorial Quiz Answers.

## OpenModelica Test | Spoken Tutorial Quiz Answers

Q1. MISO(Multiple Input Single Output) available in the path:

• (A) Modelica.Blocks.Interaction
• (B) Modelica.Blocks.Types
• (C) Modelica.Blocks.Interfaces
• (D) Modelica.Blocks.logic
`Answer:-  (C) Modelica.Blocks.Interfaces `

Q2. der() is the Modelica function for:

• (A) Double derivative
• (B) Normal derivative
• (C) Time derivative
• (D) Partial derivative
`Answer:-  (C) Time derivative `

Q3. Which of the following is an incorrect field of “coordinateSystem” record?

• (A) initialScale
• (B) lineColor
• (C) grid
• (D) extent
`Answer:-  (B) lineColor `

Q4. Connectors are used in?

• (A) All of them
• (B) Communications
• (C) Coupling between components and outside world
• (D) Connections
`Answer:-  (A) All of them `

Q5. Which of the following is an incorrect way of comment in OMEdit?

• (A) Real X; // Conversion of the reactant
• (B) Real X; /* Conversion of the reactant*/
• (C) Real X; /Conversion of the reactant;
• (D) Real X  “Conversion of the reactant”;
`Answer:-  (D) Real X  “Conversion of the reactant”; `

Q6. To simulate a Modelica class, press __________ keys

• (A) Ctrl +O
• (B) Ctrl +B
• (C) Ctrl +S
• (D) Ctrl +C
`Answer:-  (B) Ctrl +B `

Q7. At the top of the modeling area, how many numbers of icons available?

• (A) 6
• (B) 3
• (C) 5
• (D) 4

Ans:- (D) 4

Q8. reinit(m,n) assigns the value of m to n when the event occurs

• (A) True
• (B) False
`Answer:-  (B) False `

Q9. By default, the model/class saved with__________ extension in OMEdit?

• (A) .mat
• (B) .mo
• (C) .csv
• (D) .om
`Answer:-  (B) .mo `

Q10. Which keys are used to switch from Modeling Perspective to Plotting Perspective?

• (A) Ctrl +F1
• (B) Ctrl +F3
• (C) Ctrl +F4
• (D) Ctrl +F2
`Answer:-  (B) Ctrl +F3 `

OpenModelica Test – Spoken Tutorial Quiz Answers – All the Answers Provided on this page are Correct if you think there is any mistake, Please comment, we will update it soon.

Q11. Choose the correct output for below code

``````model test
Real x;
Real y;
initial equation
x = 1;
y = 1;
algorithm
x := y+8;
y := x+2;
end test;``````
• (A) Initialization error
• (B) x = 9, y = 11;
• (C) Singular matrix; unsolvable system
• (D) x = 9, y = 3;
`Answer:-  (A) Initialization error `

Q12.

``````model test
parameter Integer p =10;
Real j, k(start = 2);
equation
if time > 10 then
j = p/(2);
k = p;
else
j = p;
end if;
end test;``````

The model above fails because

• (A) Model runs successfully
• (B) If statement doesn’t support equations
• (C) Number of equations are different in if branch and else branch
• (D) Variable time is not declared
`Answer:-  (C) Number of equations are different in if branch and else branch `

Q13. What is the proper syntax of for loop ?

• (A) for i=1:3 loop
a:=a+1;
end for;
• (B) for i=(1:3)
{ a=a+1;
}
• (C) for
i=1:3
a:=a+1;
• (D) for
{
i=1 and 3
a:=a+1;
}
```Answer:-
(A) for i=1:3 loop
a:=a+1;
end for; ```

Q14.

model test
parameter Real p[5] ={10,20,14,23,54};
Real j[5];
equation
j[:] = p[:] .+ 2;
end test;

Number of equations in the above model are

• (A) 10
• (B) 1
• (C) 5
• (D) 2
`Answer:-  (C) 5 `

Q15. What is the syntax for vector declaration?

• (A)Real [2]a;
• (B) Real = a[2];
• (C) Real = [2]a;
• (D) Real a[2];
`Answer:- `

Q16. Select the correct declaration of a parameter p of Integer type :

• (A) parameter Integer p = 10;
• (B) integer parameter p = 10.0;
• (C) Integer parameter p = 10;
• (D) Parameter Integer p = 10.0;
`Answer:- `

Q17. To simulate a model in OpenModelica, which statement is true:

• (A)number of equations > number of variables
• (B) number of equations <number of variables
• (C) All of them
• (D) number of equations = number of variables
`Answer:- `

OpenModelica Test – Spoken Tutorial Quiz Answers – All the Answers Provided on this page are Correct if you think there is any mistake, Please comment, we will update it soon.