GATE (Graduate Aptitude Test in Engineering) Computer Science: Questions 1713 - 1715 of 2080

Access detailed explanations (illustrated with images and videos) to 2080 questions. Access all new questions- tracking exam pattern and syllabus. View the complete topic-wise distribution of questions. Unlimited Access, Unlimited Time, on Unlimited Devices!

View Sample Explanation or View Features.

Rs. 550.00 -OR-

How to register? Already Subscribed?

Question 1713

Question

MCQ▾

In , the associativity of which of the following operators is from Left to Right?

Choices

Choice (4)Response

a.

Array element access

b.

unary Operator

c.

Address of

d.

Logical Not

Question 1714

Appeared in Year: 2019 (UGC-NET)

Question

MCQ▾

Which of the following statements are true? (June)

P: An XML document with correct syntax as specified by W3C is called “Well Formed” .

Q: An XML documented validated against a DTD is both “Well formed” and “valid” .

R:< xml version = “1.0” encoding = “UTF-8” > is syntactly correct declaration for the version of an XML document.

Select the correct answer from the options given below:

Choices

Choice (4)Response

a.

Q and R only

b.

P and R only

c.

P and Q only

d.

All of the above

Question 1715

Appeared in Year: 2019 (UGC-NET)

Question

MCQ▾
  1. ConsiderthefollowingC++ functionf ():
  2. unsignedintf (unsignedintn) {
  3. unsignedintb=0;
  4. while (n) {
  5.   b+=n & 1;
  6.   n>>=1;
  7. }
  8. returnb;
  9. }

The function f () returns the int that represents the ________P________ in the binary representation of positive integer n, where P is (June)

Choices

Choice (4)Response

a.

Number of consecutive 1՚s

b.

Number of 1՚s

c.

Number of bits

d.

Number of 0՚s

Developed by: