C960 Discrete Mathematics II
Access The Exact Questions for C960 Discrete Mathematics II
💯 100% Pass Rate guaranteed
🗓️ Unlock for 1 Month
Rated 4.8/5 from over 1000+ reviews
- Unlimited Exact Practice Test Questions
- Trusted By 200 Million Students and Professors
What’s Included:
- Unlock Actual Exam Questions and Answers for C960 Discrete Mathematics II on monthly basis
- Well-structured questions covering all topics, accompanied by organized images.
- Learn from mistakes with detailed answer explanations.
- Easy To understand explanations for all students.
Free C960 Discrete Mathematics II Questions
Which of the following problems is NP-complete?
-
Sorting a list of numbers
-
Finding the shortest path in a graph
-
3-SAT (Boolean satisfiability with clauses of size 3)
-
Checking if a number is prime
Explanation
A problem is NP-complete if it is in NP (its solutions can be verified in polynomial time) and every problem in NP can be reduced to it in polynomial time. Among the options:
Sorting can be done in polynomial time, so it is in P, not NP-complete.
Shortest path can also be solved in polynomial time using Dijkstra’s or Bellman-Ford algorithms.
3-SAT is the canonical NP-complete problem: verifying a satisfying assignment is polynomial-time, and it is known that any NP problem can be reduced to 3-SAT.
Primality checking is in P (AKS algorithm), so it is not NP-complete.
How many onto functions are there from a set of 7 elements to a set of 4 elements?
-
8400
-
4096
-
1800
-
1200
Explanation
An onto function (also called a surjective function) from a set of 7 elements to a set of 4 elements means every element in the codomain (the set with 4 elements) must be mapped to by at least one element in the domain (the set with 7 elements). The number of onto functions from a set of size nnn to one of size mmm is given by the formula:
m!×S(n,m)
where S(n,m)S(n, m)S(n,m) is the Stirling number of the second kind, representing the number of ways to partition items into non-empty subsets. For =7 and =4:
What is the worst-case time complexity of Bubble Sort on an array of n elements?
-
O(n)
-
O(n log n)
-
O(n²)
-
O(n³)
Explanation
Explanation:
Bubble Sort is a comparison-based sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. In the worst case, the array is in reverse order.
For the first pass, Bubble Sort makes n−1n-1n−1 comparisons.
For the second pass, it makes n−2n-2n−2 comparisons.
This continues until the last pass, which makes 1 comparison.
The total number of comparisons is:
Which of the following graphs has an Eulerian circuit?
-
A graph with exactly 2 vertices of odd degree
-
A graph with all vertices of even degree
-
A graph with exactly 4 vertices of odd degree
-
A directed graph with unequal in/out degrees
Explanation
An Eulerian circuit is a closed trail that uses every edge exactly once. A classical theorem (Euler’s criterion) states that a finite graph has an Eulerian circuit iff it is connected (when restricted to edges that exist) and every vertex has even degree. If exactly two vertices have odd degree the graph has an Eulerian trail (open path) but not a circuit; if the graph is disconnected it cannot have a single circuit that traverses every edge. Therefore the only option that guarantees an Eulerian circuit is the connected graph where every vertex has even degree.
Which of the following is NOT a decidable language?
-
The set of all strings accepted by a DFA
-
The set of all Turing machines that halt on all inputs
-
The set of all regular languages
-
The set of all context-free languages
Explanation
A language is decidable if there exists a Turing machine that halts on every input and correctly decides membership in that language.
The language describing “the set of all Turing machines that halt on all inputs” corresponds to the totality problem, which asks whether a Turing machine halts for every possible input. This problem is undecidable, as it is more general than the Halting Problem itself.
In contrast, checking whether a DFA accepts a given string, or whether a grammar is regular or context-free, is decidable using algorithmic procedures.
What is the space complexity of depth-first search (DFS) on a graph with vertices and edges?
-
O(V + E)
-
O(V²)
-
O(V)
-
O(E)
Explanation
Depth-first search (DFS) uses a stack to keep track of vertices during traversal, which can be implemented either recursively (call stack) or iteratively (explicit stack). In addition to the stack, DFS may store the adjacency list or adjacency matrix of the graph. For a graph represented as an adjacency list, storing all edges takes space, and the stack can grow up to in the worst case. Combining these, the overall space complexity of DFS on a graph with vertices and edges is
Which of the following languages requires a linear bounded automaton (LBA)?
-
The set of palindromes over {0,1}
-
The set of strings of the form
-
The set of all binary strings
-
The set of all strings with an even number of 0s
Explanation
A linear bounded automaton (LBA) is a type of Turing machine whose tape usage is limited to a linear function of the input length. LBAs recognize context-sensitive languages, which are strictly more powerful than context-free languages but less powerful than general Turing machines.
Palindromes over {0,1} are context-free, so a pushdown automaton can handle them.
Strings of the form are context-sensitive but not context-free, so they require an LBA.
What is the minimal number of colors needed to color the vertices of the Mycielski graph with chromatic number 5?
-
3
-
4
-
5
-
6
Explanation
By definition, the chromatic number of a graph is the smallest number of colors needed to color its vertices so that no two adjacent vertices share the same color. If a particular Mycielski graph is given as having chromatic number 5, that directly means its minimal (i.e., least) number of colors required is 5 — the Mycielski construction produces graphs with a specified chromatic number while controlling other properties, but the chromatic number itself tells you the minimum coloring size.
How many 5-digit numbers have digits that sum to 20?
-
106
-
121
-
126
-
210
Explanation

A pushdown automaton that accepts must use the stack to:
-
Count the number of a’s and ensure there are twice as many b’s.
-
Match each a with exactly one b.
-
Store the input symbols for reversal
-
Recognize even-length strings only
Explanation
The language requires that for every aaa in the input, there are exactly two ’s following it. A pushdown automaton (PDA) can handle this by pushing one symbol for each read onto the stack. Then, as it reads ’s, it pops one stack symbol for every two ’s, ensuring that the total number of ’s is exactly double the number of ’s. This counting dependency between ’s and ’s is what makes the language context-free and not regular, and it is achieved by using the stack to count and verify the 2-to-1 ratio.
How to Order
Select Your Exam
Click on your desired exam to open its dedicated page with resources like practice questions, flashcards, and study guides.Choose what to focus on, Your selected exam is saved for quick access Once you log in.
Subscribe
Hit the Subscribe button on the platform. With your subscription, you will enjoy unlimited access to all practice questions and resources for a full 1-month period. After the month has elapsed, you can choose to resubscribe to continue benefiting from our comprehensive exam preparation tools and resources.
Pay and unlock the practice Questions
Once your payment is processed, you’ll immediately unlock access to all practice questions tailored to your selected exam for 1 month .