How to practice year:2017

Attempt a question, record the concept and assumptions, then check the available answer. Rework mistakes after revising the relevant concepts. Topic tags can overlap; review the question context.

Questions 1–10 of 130. Imported answers require independent review unless marked reviewed.

Topic practice 130 questionsPage 1 of 13

Question 1

Open question
CSMCQ1 markNeeds review
The statement

is logically equivalent to which of the statements below?
I.

II.

III.

IV.

Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 1

Open question
CSMCQ1 markNeeds review
The representation of the value of a 16-bit unsigned integer X in hexadecimal number system is BCA9. The representation of the value of X in octal number system is
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 2

Open question
CSMCQ1 markNeeds review
Consider the first-order logic sentence

. Assuming non-empty logical domains, which of the sentences below are implied by

?
I.

II.

III.

IV.

Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 2

Open question
CSMCQ1 markNeeds review
Match the following: (P) static char var; (Q) m = malloc(10); m = NULL; (R) char *ptr[10]; (S) register int var;
(i) Sequence of memory locations to store addresses (ii) A variable located in data section of memory (iii) Request to allocate a CPU register to store data (iv) A lost memory which cannot be freed
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 3

Open question
CSMCQ1 markNeeds review
Let

be scalars, not all zero, such that

where

are column vectors in

. Consider the set of linear equations

where

and

. The set of equations has
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 3

Open question
CSMCQ1 markNeeds review
Match the algorithms with their time complexities:
Algorithm Time complexity (P) Towers of Hanoi with n disks (i) Θ(n²) (Q) Binary search given n sorted numbers (ii) Θ(n log n) (R) Heap sort given n numbers at the worst case (iii) Θ(2ⁿ) (S) Addition of two n × n matrices (iv) Θ(log n)
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 4

Open question
CSMCQ1 markNeeds review
Consider the following functions from positive integers to real numbers:

The CORRECT arrangement of the above functions in increasing order of asymptotic complexity is:
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 4

Open question
CSMCQ1 markNeeds review
Let L₁, L₂ be any two context-free languages and R be any regular language. Then which of the following is/are CORRECT?
I. L₁ ∪ L₂ is context-free. II. L̅₁ is context-free. III. L₁ − R is context-free. IV. L₁ ∩ L₂ is context-free.
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 5

Open question
CSMCQ1 markNeeds review
Consider the following table:
Algorithms
Design Paradigms
(P) Kruskal
(i) Divide and Conquer
(Q) Quicksort
(ii) Greedy
(R) Floyd-Warshal
(iii) Dynamic Programming
Match the algorithms to the design paradigms they are based on.
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 5

Open question
CSMCQ1 markNeeds review
Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it:
(P) Syntax tree (Q) Character stream (R) Intermediate representation (S) Token stream
(i) Code generator (ii) Syntax analyser (iii) Semantic analyser (iv) Lexical analyser
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer