dMAT Computer Science Section (RWTH Battery Science): Syllabus and Practice
By Swastika GhoshDestination Counsellor for Germany
Last checked Reviewed by LeapScholar's Germany admissions expert 5 min read
dMAT Computer Science Practice Questions with Answers (Free)
The 12 questions below cover data types and bit widths, numeric precision and representation limits, combinational logic and truth tables, and linear discriminant analysis on high-dimensional data. They are original, built to test the same concepts as the official materials with different numbers and wording, and each one includes a full solution path. Work through them without notes and without a calculator, exactly as the real exam requires.
How it works: Questions follow the format of the official preparatory materials for this module. Answer, then compare your route with the solution path.
INPUT 1 · READ THIS FIRST
📄 Input 1 · Data Types, Bit Widths and Value Ranges
A variable is a named location in memory. In a typed language, declaring a variable fixes how much memory is reserved for it and what range of values it can hold. Declaring a variable with a value both reserves the memory and initialises it in one step; declaring without a value only reserves the memory. The table below lists representative widths. Questions 1 to 3 refer to this input.
| Type | Width | Approximate range |
|---|---|---|
| Typeboolean | Width1 bit | Approximate rangetrue or false |
| Typeshort | Width16 bit | Approximate rangeintegers |
| Typeint | Width32 bit | Approximate rangeintegers |
| Typefloat | Width32 bit | Approximate rangeup to roughly 1038 |
| Typedouble | Width64 bit | Approximate rangeup to roughly 10308 |
| Typestring | Widthvariable | Approximate rangedepends on character count |
Question 1 EasySolved example
A programmer declares a variable as boolean without assigning it a value. What has happened to memory at that point?
Worked solution
Answer: a. Declaring a variable reserves the memory its type needs, here a single bit for a boolean. Only declaring it together with a value also initialises that memory. Since no value was given, the bit is reserved but not yet set.
Question 2 MediumSolved example
Which pair of variables together uses the same total memory as a single double?
Worked solution
Answer: b. A double is 64 bits. An int (32 bits) plus a float (32 bits) also totals 64 bits. Two shorts total 32 bits, a boolean plus an int totals 33 bits, and a short plus an int totals 48 bits, so none of the others match.
High difficulty · 3 questions
Question 3 Hard
A developer needs to store a numeric value of approximately 1050 for use in arithmetic. Which type from the table is the smallest one able to hold it, and why?
View Solution Path
Answer: c. A value of 1050 is well beyond the roughly 1038 reach of a float, so a float cannot hold it. A double, reaching roughly 10308, is the smallest listed type that comfortably covers it. Overflow wrapping does not extend range, it corrupts the value, so option a is wrong for the opposite reason it claims to be right.
Low difficulty · 3 questions
INPUT 2 · READ THIS FIRST
📄 Input 2 · Numeric Precision and Representation Limits
Floating-point types trade an enormous representable range for limited precision: only a fixed number of significant digits is stored, so a value near the edge of that range is rounded to the nearest representable value. Repeated arithmetic on such approximations accumulates a representation error. Moving from float to double extends both the representable range and the number of significant digits carried, which reduces this error without removing it entirely. Questions 4 to 6 refer to this input.
Question 4 Easy
What is the main trade-off a programmer accepts when choosing a float over a double to save memory?
View Solution Path
Answer: d. The passage states that floating types trade range for precision. A float carries fewer significant digits than a double, so values are rounded more coarsely. Memory saving is real, but it comes at the cost of precision, not for free.
Medium difficulty · 4 questions
Question 5 Medium
A long sequence of oscillation readings is repeatedly summed and averaged using float variables, and the final result drifts noticeably from the value obtained by repeating the same calculation with double variables. What best explains the drift?
View Solution Path
Answer: a. Each float addition rounds to the nearest representable value. Over a long sequence, those small roundings do not cancel out perfectly, and the accumulated representation error becomes large enough to separate the float result from the more precise double result.
Question 6 Medium
Which statement about representable range versus precision is correct?
View Solution Path
Answer: b. A float already illustrates this: it reaches roughly 1038, a wide range, yet still carries only a fixed, limited number of significant digits. Range describes how large or small a value can be; precision describes how many digits of that value are actually stored. They are related but distinct properties.
Low difficulty · 3 questions
INPUT 3 · READ THIS FIRST
📄 Input 3 · Combinational Logic and Truth Tables
Combinational logic circuits build outputs directly from the current inputs using logic gates. An AND gate outputs 1 only when every input is 1. An OR gate outputs 1 when at least one input is 1. A NOT gate inverts its single input. Gates can be chained, so that the output of one gate becomes the input to the next, letting simple gates build more complex expressions. Questions 7 to 9 refer to this input.
| A | B | A AND B | A OR B |
|---|---|---|---|
| A0 | B0 | A AND B0 | A OR B0 |
| A0 | B1 | A AND B0 | A OR B1 |
| A1 | B0 | A AND B0 | A OR B1 |
| A1 | B1 | A AND B1 | A OR B1 |
Question 7 Easy
A circuit feeds inputs A and B into a single AND gate. For which combination does the output equal 1?
View Solution Path
Answer: c. An AND gate outputs 1 only when both of its inputs are 1. Checking the truth table, that happens only for A = 1 and B = 1; every other combination gives 0.
Medium difficulty · 4 questions
Question 8 Medium
A circuit computes NOT(A OR B). For A = 0 and B = 0, what is the output?
View Solution Path
Answer: d. With A = 0 and B = 0, A OR B equals 0 from the truth table. Passing that 0 through the NOT gate inverts it to 1. Gates chain freely, so a NOT gate can follow an OR gate without issue.
High difficulty · 3 questions
Question 9 Hard
A circuit combines two gates in sequence: first A AND B, then the result is passed through a NOT gate, giving output Y = NOT(A AND B). For which combination of A and B does Y equal 0?
View Solution Path
Answer: a. From the truth table, A AND B equals 1 only when A = 1 and B = 1. Passing a 1 through the following NOT gate gives Y = 0. For every other combination A AND B is 0, and NOT of 0 is 1, so A = 1 and B = 1 is the only case where Y drops to 0.
Low difficulty · 3 questions
INPUT 4 · READ THIS FIRST
📄 Input 4 · Linear Discriminant Analysis and High-Dimensional Data
Linear Discriminant Analysis, or LDA, is a linear transformation applied to high-dimensional data sets. Rather than only reducing the number of dimensions the way some other transformations do, LDA searches for the directions along which data points belonging to different classes are best separated from each other. A data set with many measured variables per sample is projected onto a smaller number of these directions, and classification is then carried out in that reduced space. In battery diagnostics, each cell can be described by many measured variables such as voltage, temperature and internal impedance, and LDA can help distinguish healthy cells from degrading ones using those measurements together. Questions 10 to 12 refer to this input.
Question 10 Easy
What is the main goal LDA optimises for when it chooses its projection directions?
View Solution Path
Answer: b. The passage states that LDA searches for the directions along which data points belonging to different classes are best separated. That is a class-separation objective, not a general variance-minimising or compression objective.
Medium difficulty · 4 questions
Question 11 Medium
A battery diagnostics data set records ten variables per cell, including voltage, temperature and impedance, and each cell is labelled as healthy or degrading. Why is LDA a reasonable technique to apply here, rather than treating this purely as unlabelled dimension reduction?
View Solution Path
Answer: c. The labels are exactly what makes LDA useful here: it uses the healthy or degrading label of each cell to pick directions that separate those two groups, which a label-blind dimension reduction technique cannot do. Neither the variable count nor the number of variables restricts LDA the way the other options claim.
High difficulty · 3 questions
Question 12 Hard
After applying LDA to the ten-variable battery data set, classification accuracy in the reduced space is noticeably lower than expected. Which of the following would most directly explain the drop?
View Solution Path
Answer: d. LDA can only find a separating direction if one exists in the data. If the healthy and degrading cells genuinely overlap across every combination of the measured variables, no linear projection will separate them well, and classification accuracy in the reduced space will suffer no matter how carefully the transformation is computed.
Original questions modelled on official preparatory materials. There are no dMAT past papers.
Next moduleElectrical EngineeringKey facts
- Computer Science is one of five disciplines in the dMAT Battery Science module, not a standalone test, tested in the Basic Task plus two Advanced Tasks if you choose it as your field
- Basic Task: data types and memory. Advanced Tasks: combinational logic, and linear transformations of high-dimensional data (LDA)
- Format: technical reading passage + four-option single-choice questions, 90 minutes for the whole subject test
- Both advanced topics map to real battery engineering: logic gates to protective circuit decisions, LDA to catching a degrading cell early
- Method: read the passage as your reference sheet first, work logic questions one gate at a time, anchor precision questions to the passage’s stated ranges
- Attempt 12 free practice questions above using this method
On this page
- dMAT Computer Science Practice Questions with Answers (Free)
- What Is the dMAT Computer Science Section?
- How to Solve dMAT Computer Science Questions
- dMAT Computer Science Syllabus: Basic and Advanced Tasks
- dMAT Computer Science Study Plan Before the 2027 Sittings
- Related dMAT topics
- Frequently Asked Questions About the dMAT Computer Science Section