COINQUEST: A Techno-Feud' 23.5

COINQUEST: A Techno-Feud' 23.5

University

15 Qs

quiz-placeholder

Similar activities

G7B_Quiz1_2T

G7B_Quiz1_2T

University

15 Qs

Web-based Development

Web-based Development

5th Grade - University

15 Qs

Array in C

Array in C

University

10 Qs

Chapter 1

Chapter 1

University

15 Qs

C++ misc-1

C++ misc-1

University

15 Qs

C programming-1

C programming-1

University

13 Qs

Exam 1 Practice

Exam 1 Practice

University

15 Qs

C Programming Upto Loops

C Programming Upto Loops

University

20 Qs

COINQUEST: A Techno-Feud' 23.5

COINQUEST: A Techno-Feud' 23.5

Assessment

Quiz

Computers

University

Hard

Created by

N. PRIYADHARSHINI

Used 7+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?