Discrete Mathematics

Problems related to graph theory, combinatorics, logic, etc.

Problems in this category

The task is to determine the output of the given pseudocode. The pseudocode initializes a variable $...

AlgorithmsPseudocodeLoopsIterationSequences
2025/5/6

We need to solve question number 35. The question asks: Consider the 'while' loop and the 'repeat un...

AlgorithmsLoopsIterationComputer Science
2025/5/6

We are given a set of multiple-choice questions related to computer science concepts. We need to sel...

Number SystemsBinaryOctalHexadecimalBCDASCIIBase Conversion
2025/5/6

The problem is to trace the execution of a given pseudo code and determine the output. The pseudo co...

AlgorithmsPseudo CodeLoopsIterationComputational Thinking
2025/5/6

The problem asks to determine the output of the given Pascal program segment. The program initialize...

ArraysProgramming LogicAlgorithmsPascal
2025/5/6

The problem consists of three parts. (5i) Complete the pseudo code to display the first ten triangul...

AlgorithmsPseudo CodeSequencesPascal
2025/5/6

The problem has two parts: i. Explain the concept of "Universal Gates" and name two logic gates that...

Logic GatesBoolean AlgebraCircuit DesignNAND GateNOR GateUniversal Gates
2025/5/5

The problem asks us to determine the output sequence of the variable $num$ when the provided pseudoc...

AlgorithmsPseudocodeIterationSequencesLoops
2025/5/5

We are given a pseudocode and we need to determine the output of the program, which is the value of ...

AlgorithmsIterationPseudocodeProgram Execution
2025/5/5

The problem consists of two parts. Part a asks to find: i. The complement of set $B$, denoted as $\o...

Set TheorySet OperationsUnionIntersectionComplementCardinality
2025/5/3