June 14, 2019

Discrete Structures for Computer Science - MCQS


 

Note: We have tried to upload as much as we can, all the question and answers might be shuffled - Please find the answer below each question, some answers might be wrong please review on the last date(some answers might be changed) if you find any wrong answer please comment down below.

Question:
Let m be an integer with m > 1. R on the set of integers is an equivalence relation if
Select one:
a. {(a, b) | a ≡ b (mod m)}
b. {(a, b) | a ≡ a (mod b)}
c. {(a, b) | b ≡ b (mod a)}
d. {(a, b) | b ≡ a (mod m)}
The Correct answer is: {(a, b) | a ≡ b (mod m)}

Question:
Consider the statement: x,  y E Z if both xy and x + y are even, then
Select one:
a. both x and y are odd
b. both x and y are even
c. x is even and y is odd
d. x is odd and y is even
The Correct answer is:both x and y are even

Question:
If A = {0, 1}, B = {1, 2}, and C = {0, 1, 2} then what of the following isn’t in A × B × C ?
Select one:
a. (1, 1, 0)
b. (2, 2, 0)
c. (1, 1, 1)
d. (1, 2, 2)
The Correct answer is: (2, 2, 0)

Question:
Let A, B, and C be sets. Identify the the correct one among the following
Select one:
a. None of these
b. A ∩ (B ∩ C) = (C B) A
c. A (B C) = (C B) B
d. A ∩ (B C) = (C B) A
The Correct answer is:  None of these

Question:
Let f1 and f2 be functions from R to R such that f1(x) = x2 and f2(x) = x − x2. What are
the functions f1 + f2 and f1 f2?
Select one:
a. x2 and x4 – x3
b. x and x3 – x2
c. x3 and x2 – x3
d. x and x3 − x4
The Correct answer is: x and x3 − x4

Question:
Determine for what of the following for “f” is not a one-to-one function:
Select one:
a. f  for f (x) = x + 1 from the set of real numbers to itself
b. f  from {a, b, c, d} to {1, 2, 3, 4, 5} with f (a) = 4, f (b) = 5, f (c) = 1, and f (d) = 3
c. f  for f (x) = x2 from Z to the set of integers
d. f  for f (x) = x2 from Z+ to the set of integers
The Correct answer is: f  for f (x) = x2 from Z to the set of integers

Question:
Which of the following is not a logical equivalence for bi-conditional representation ?
Select one:
a. (p → q) ≡ p q
b. p ↔ q ≡ (p q) (p q)
c. p ↔ q ≡ p ↔q)
d. All mentioned
The Correct answer is: (p → q) ≡ p q

Question:
By the second law of de-Morgan (r s) is equivalent to
Select one:
a. r s
b. (r s)
c. r s
d. r s
The Correct answer is: s

Question:
Let P(x) be the statement “x + 1 > x.” For the real number domain, qualify the statement for truth value;
Select one:
a. xP(x) is true
b. xP(x) is true
c. xP(x) is true
d. xP(x) is true
The Correct answer is: xP(x) is true

Question:
For {Z+: Z+ < 5} verify if xP(x) holds good for P(x) is x2 < 10
Select one:
a. xP(x) is a conjunction
b. None of these
c. xP(x) is false
d. xP(x) holds good
The Correct answer is: xP(x) is false

Question:
Identify correct statement/s among the following
Select one:
a. The relation"Union of sets" is reflexive,but not symmetric
b. The relation"parallel of lines" is always an equivalence relation
c. The relation "Division" is Symmetric
The Correct answer is: The relation"parallel of lines" is always an equivalence relation

Question:
Which of the following is/are true ?
Select one or more:
a. p p is always a contradiction
 b. p p is always a tautology
c. p p is always a contradiction
d. p p is always a tautology
The Correct answer is:  p is always a tautology, p is always a contradiction

Question:
What of the following expressions does not imply the negation of the proposition, “there is an honest politician” if h(x) represents honesty function:
Select one:
a. xH(x)
b. xH(x)
c. xH(x)
d. All of these
The Correct answer is: xH(x)

Question:
“The sum of two positive integers is always positive” into a logical expression
Select one:
a. BOTH :xy((x > 0) (y > 0) (x +y > 0)) and xy(x +y > 0)
b. xy((x > 0) (y > 0) (x +y > 0))
c. Either xy((x > 0) (y > 0) (x +y > 0)) or xy(x +y > 0)
d. xy(x +y > 0)
The Correct answer is:  BOTH :xy((x > 0)  (y > 0)  (x +y > 0)) and xy(x +y > 0)

Question:
Which of the following is/are statement/s
Select one or more:
a. How hot the day is
b. None of these are statements
c. The temperature is 40 degrees.
d. It is raining in the summer.
The Correct answer is: The temperature is 40 degrees., It is raining in the summer.

Question:
Let P be “you can take the flight,”
Let Q be “you buy a ticket.”
What of the following notates “you can take the flight if and only if you buy a ticket”
Select one:
a. None of these
b. Q →  P
c. P →  Q
d. P ↔ Q
The Correct answer is: P ↔ Q

June 13, 2019

Digital Electronics and Microprocessors - MCQS



Note: We have tried to upload as much as we can, all the question and answers might be shuffled - Please find the answer below each question, some answers might be wrong please review on the last date(some answers might be changed) if you find any of the answer is wrong please comment down below. 

Question
How many memory chips of (64 x 2) are needed to provide a memory capacity of 2048 x 8? 
A 32
B 128
C  4
D  16

Select one:
a. A
b. D
c. B
d. C
The correct answer is : 128

Question 
In 2's complement binary representation what is the magnitude of  these two numbers 1001    & 11001 
A   -6 & 6
B   9 & 25
C   -6 & -6
D   9 & -6

Select one:
a. C
b. D
c. B
d. A
The correct answer is : -6 & -6

Question
Minimum no. of  two input NAND gate required to implement a Ex-OR function is 
(A)2 (B)3
(C)4 (D)5

Select one:
a. A
b. D
c. B
d. C 
The correct answer is : 4

Question
What is the logic function implemented by the 2X1 mux shown below






A AND logic
B OR logic
C NAND logic
D Nor Logic

Select one:
a. d
b. A
c. c
d. b 
The correct answer is : OR logic

June 12, 2019

Linear Algebra and Optimization- MCQS

Note : We have tried upload as much as we can, all the question and answers might be shuffled - Answers are marked in green. Thanks for Murthy,Abirami who helped us on this quiz.

Questions:

1. In R^3   the four vectors (1,2,5)  (5,9,3) (329,431,731) and (21, -13,58) are
Select one:
A. Linearly dependent
B. Every linear combination is zero
C. Linearly Independent
D. Forms a basis for R^3

The correct answer: Linearly dependent

 2. 

Select one:
A. 45
B. 0
C. 10
D. 3

The correct answer: 0

3. The elements along principal diagonal of a Hermitian matrix are all

Select one:
A. either zero or purely imaginary
B. real
C. 0
D. imaginary

The correct answer: real

4. For the linearly dependent vectors  X=[3,-9,12] and Y=[-4,12,-16]:

Select one:
A. X-2Y=0
B. 4X+3Y=0
C. 4X-3Y=0
D. 3X+4Y=0

The correct answer: 4X+3Y=0

5. If A and B are two orthogonal matrices, each of order n then AB and BA are

Select one:
A. Orthogonal
B. asymmetric
C. symmetric
D. Hermitian

The correct answer: asymmetric

6. A set of single non-zero vector is

Select one:
A. Basis
B. None
C. Linearly dependent
D. Linearly Independent

The correct answer: Linearly Independent

7.Which one of the following is false :

Select one:
A. Matrices is an arrangement while determinant is a value of square matrices.
B. If Rank of A= Rank of B
C. Row equivalent matrices have the same rank.
D. A linearly independent set in v consisting on a maximum possible no of vectors in V is called a basis for V

The correct answer: If Rank of A= Rank of B

8. The Gauss-Elimination method, the augmented matrix reduces to…..................matrix

Select one:
a. Upper triangular
b. Diagonal
c. unit
d. None of these

The correct answer: Upper triangular



9. The Characteristics roots of an orthogonal matrix are of ------ modulus



Select one:
A. Unit
B. Two
C. Three
D. Zero



The correct answer: Unit



10.Which of the following is not a elementary transformation?

Select one:
a. Adding two rows
b. Squaring all the elements of the matrix
c. Adding two columns
d. Multiplying a row by a non-zero number

The correct answer: Squaring all the elements of the matrix



11. 

Select one:
A.




B.


C.



D.

The correct answer: C

12. If  rank = number of unknowns  and x = y = z = 0 the equation have only -------- solution

Select one:
A. Non trivial
B. Infinite
C. Unique
D. Trivial

The correct answer: Trivial


13. 

Select one:
A. 3
B. 9
C. 1
D. -3

The correct answer: 3

14.If r is the rank of the matrix [A] of order m x n then r is

Select one:
A. r is less than or equal to minimum of (m, n)
B. r is greater than or equal to 'm'
C. r is greater than 'n'
D. r is less than or equal to 'n'

The correct answer: r is less than or equal to 'n'

15. The standard basis of an inner product space R x R x R (R) forms  an

Select one:
A. Orthonormal set
B. Orthogonal set and Orthonormal set
C. Orthogonal set
D. Neither Orthogonal set nor Orthonormal set

The correct answer: Orthogonal set and Orthonormal set

16. Let A be a matrix having rank ‘r ' & B be the equivalent matrix obtained from A. Then rank of   matrix B is…

Select one:
A. r + 2
B. r -1
C. r
D. r + 1

The correct answer: r

17. State : which one is false :
Select one:
A. If A and B are Hermitian: then AB-BA is skew Hermitian

B.



C. If A  is a  skew Hermitian : then iA  is Hermitian

D.


The correct answer: D

18. 

Select one:
A. 6,6    
B. 6,-12    
C. 12,6   
D. -6,12.

The correct answer: 6,-12

19. The linear transformation Y = AX is regular if

Select one:
A. I A I#0
B. I A I=1
C. I A I=-1
D. I A I=0

The correct answer: I A I#0

20. A square matrix A of order 3 has 3 linearly independent Eigen vectors then a matrix P can be found such that   P-1AP is a

Select one:
A. Diagonal Matrix
B. Symmetric matrix
C. Singular matrix
D. Unit matrix

The correct answerDiagonal Matrix

Computer Programming - MCQS


Note: We have tried to upload as much as we can, all the question and answers might be shuffled - Please find the answer below each question, some answers might be wrong please review on the last date(some answers might be changed) if you find any wrong answer please comment down below.

Questions:
1.
#include <stdio.h>
int main()
{int x; x = 5;        
                if(x > 5)x -= 5;
                else if(x >= 0)x += 00;
                else if(x)x += 5;
                else x -= 5;
                printf("%d\n",x);
                return 0;
}

Select one:

A. None of the above
B. 10
C. -5
D.  5
E.  6

The correct answer is: 5

2.
What is the output of the following code?
#include "stdio.h"
extern int a=5;
main(){
            void fun();
            printf("\n a=%d",a);
            fun();
            return 0;
            }
void fun()
{
            int a;
            printf(" in fun a=%d",a);
}

Select one:

A. a=0 in fun a=5
B. Error
C. None
D. a=5 in fun a=0

The correct answer is: a=5 in fun a=0

3.
What is the output of following program?
#include <stdio.h>
void abc(int a, int b)
{
            printf("%d%d",++a,++b);
            }
int main()
{
            int a=10;
            abc(++a,a++);
            abc(a++,++a);
            printf("%d",a);
            return 0;
}

Select one:

A. None
B. Error
C. 13 11 14 14 14
D. 13 11 14 15 14 

The correct answer is: 13 11 14 15 14

4.
What should be the output:
void main()
{
    int a = 10/3;
    printf("%d",a);
}

Select one:

A. 0
B. 3.0
C. 3.33
D. 3

The correct answer is:3

5.
#include <stdio.h>
int main()
{
                int i;
                if (printf("0"))
                    i = 3;
                else
                    i = 5;
                printf("%d", i);
                return 0;
}

Select one:

A. Error
B. 3
C. 03
D. None

The correct answer is: 03

6.
#include <stdio.h>
int main()
{
    int i = 0;
    switch (i)
    {
        case '0': printf("Hello");
                break;
        case '1': printf("world");
                break;

 default: printf("Helloworld");
    }
    return 0;
}

Select one:

A. Hello
B. Helloworld
C. None of these
D. world

The correct answer is: Helloworld

7.
What will be output of following program?
#include <stdio.h>
void convention(int,int,int);
int main()
{
    int a=5;   
    convention(a,++a,a++);
    return 0;
}
void  convention(int p,int q,int r)
{
    printf("%d %d %d",p,q,r);
}

Select one:

A. Error
B. None
C. 7 5 5
D. 7 7 5

The correct answer is: 7 7 5

8.#include<stdio.h>
void  main()
{    int a=15;   printf("%x", a);    getchar();  
}
Select one:
A. 15.0
B. 12
C. None of the above
D. f
E. c

The correct answer is: f

9.
What is the correct way to round off x, a float, to an int value?

Select one:
A. y=(int)(x+0.5)
B. y=(int)x+0.5
C. y=int(x+0.5)
D.  y=(int)(int)x+0.5)

The correct answer is: y=(int)(x+0.5)
10.
#include<stdio.h>
int main()
{
      int  i=10;
      printf("i=%d", i);
      {
            int  i=20;
                printf("i=%d", i);
                i++;
                printf("i=%d", i);
 }
      printf("i=%d", i);
      return 0;
}
Select one:
A. 10,10,20,21
B. None
C. Error
D. 10,20,21,10

The correct answer is:  10,20,21,10

June 06, 2019

HTML5 - Digital Skill (TrendNXT L1)


NoteKindly prepare yourself to score good marks in HTML5. This is for TrenDNXT level 1 dumps. There may be some questions which are not listed here. To make sure read the doc very carefully, because questions would be based in the doc itself.

One Line Definitions:

1. Doctype define <!DOCTYPE html>

The <canvas> tag is used to draw graphics, on the fly, via scripting (usually JavaScript). The <canvas> tag is only a container for graphics, you must use a script to actually draw the graphics.

2. New graphic elements: <svg> and <canvas>.

3. New form control attributes: number, date, time, calendar, and range.

4. Canvas  .getContext();

5. Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and Ogg:

6. Currently, there are 3 supported file formats for the <audio> element: MP3, Wav, and Ogg:

7. <datalist> Defines pre-defined options for input controls

8.<keygen> Defines a key-pair generator field (for forms)

9. The <input type="month"> allows the user to select a month and year.

10. <input type="email"> is used for input fields that should contain an e-mail address.

11. <input type="tel"> is used for input fields that should contain a telephone number.

12.  The formaction attribute overrides the action attribute of the <form> element.

13. The formaction attribute is used with type="submit" and type="image".

14. The formenctype attribute overrides the enctype attribute of the <form> element.

15. The formenctype attribute is used with type="submit" and type="image".

16. The formenctype attribute specifies how the form-data should be encoded when submitting it to the server (only for forms with method="post").

17. The formmethod attribute overrides the method attribute of the <form> element.

18. The formmethod attribute can be used with type="submit" and type="image".

19. The formnovalidate attribute overrides the novalidate attribute of the <form> element.

20. The formnovalidate attribute can be used with type="submit".

21. default width of a text field is 20 characters.

22. The <input type="time"> allows the user to select a time (no time zone).

23. <input type="datetime-local"> allows the user to select a date and time (no time zone).

24. HTML5 added several new input types

  • color
  • datetime
  • datetime-local
  • email
  • month
  • number
  • range
  • search
  • tel
  • time
  • url
  • week
25. The <article> element specifies independent, self-contained content.

26. The <figcaption> element defines the caption.