Search Header Logo

COINQUEST: A Techno-Feud' 23.5

Authored by N. PRIYADHARSHINI

Computers

University

Used 7+ times

COINQUEST: A Techno-Feud' 23.5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who is the father of personal computer?

Edward Robert

Charles Babbage

Allen turing

Robert cailliau

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Find the missing line in the code:

a = a - b;

b = a + b;

a = a – b;

a = a + b;

b = a - b;

a = a + b;

a = a + b;

b = a - b;

a = a - b;

b = a - b;

b = a + b;

a = a - b;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

  1. Output of following C Program?

ERROR

0

1

5

Answer explanation

The crux of the question lies in the statement x = y==z. The operator == is executed before = because precedence of comparison operators (<=, >= and ==) is higher than assignment operator =. 
The result of a comparison operator is either 0 or 1 based on the comparison result. Since y is equal to z, value of the expression y == z becomes 1 and the value is assigned to x via the assignment operator.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

  1. Output of following Java Program?

Derived::show() called

Base::show() called

Answer explanation

In the above program, b is a reference of Base type and refers to an abject of Derived class. In Java, functions are virtual by default. So the run time polymorphism happens and derived fun() is called.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Output of following PYTHON Program?

8

16

INDENTATION ERROR

RUNTIME ERROR

Answer explanation

Python creates blocks of code based on the indentation of the code. Thus, new indent defines a new scope.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find the cities name with the condition and temperature from table 'whether' where condition = sunny or cloudy but temperature >= 60.

SELECT city, temperature, condition FROM weather WHERE condition = 'cloudy' AND condition = 'sunny' OR temperature >= 60

SELECT city, temperature, condition FROM weather WHERE condition = 'cloudy' OR condition = 'sunny' OR temperature >= 60

SELECT city, temperature, condition FROM weather WHERE condition = 'sunny' OR condition = 'cloudy' AND temperature >= 60

SELECT city, temperature, condition FROM weather WHERE condition = 'sunny' AND condition = 'cloudy' AND temperature >= 60

Answer explanation

We know that the AND operator gives the output only when both the first conditions are true. In contrast, the OR operator gives the output when either the first condition OR the second condition is true. Hence the option C is the correct choice.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural numbers. What is the in-order traversal sequence of the resultant tree?a.7 5 1 0 3 2 4 6 8 9

7 5 1 0 3 2 4 6 8 9

0 2 4 3 1 6 5 9 8 7

0 1 2 3 4 5 6 7 8 9

9 8 6 4 2 3 0 1 5 7

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?