Quantitative Aptitude Series

Quantitative Aptitude Series

University

20 Qs

quiz-placeholder

Similar activities

Digital and Analog transmission

Digital and Analog transmission

University

20 Qs

GIS Unit III

GIS Unit III

University

15 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Information Technology

Information Technology

University

17 Qs

Quiz 1 CCE

Quiz 1 CCE

University

15 Qs

2.3.1 Graph Traversal & Path Finding Algorithms

2.3.1 Graph Traversal & Path Finding Algorithms

12th Grade - University

20 Qs

Quiz Harian Gdevelop MPK

Quiz Harian Gdevelop MPK

University

20 Qs

MEDIDAS DE TENDENCIA CENTRAL

MEDIDAS DE TENDENCIA CENTRAL

University

20 Qs

Quantitative Aptitude Series

Quantitative Aptitude Series

Assessment

Quiz

Computers

University

Hard

Created by

HITESH AHUJA

Used 45+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following is not a valid declaration in C?

1.short int x;

2.signed short x;

3.short x;

4.unsigned short x;

3 and 4

1

2

All are valid

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

void swap ( int x, int y )

{

int tmp;

tmp = x;

x = y;

y = tmp;

}

Ques: In order to exchange the values of two variables a and b:

Call swap (a, b)

Call swap (&a, &b)

swap(a, b) cannot be used as it does not return any value

swap(a, b) cannot be used as the parameters passed by value

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What will be the output of the following code?

#include

int main()

{

int any = ' ' * 10;

printf("%d", any);

return 0;

}

340

320

300

360

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Predict the output of the following pseudo-code?

int main()

{

float i;

i = 1;

printf("%d",i);

return 0;

}

1.000000

1

Error

Garbage Value

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Predict the Output for the following code?

int main()

{

typedef int num;

num bunk = 0.00;

printf("%d", bunk);

return 0;

}

0.0

0

logical Error

None

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the time complexity for the following code

sum =0

for(i=1;i<=n;i*=2)

for(j=1;j<=n;j++)

sum++;

O(n^2)

O(nlogn)

O(n)

O(n(logn(logn)))

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Consider the following functions from positive integers t real numbers

10 , √n , n , log₂(n) ,100/n;

The CORRECT arrangement of the above functions in increasing order of asymptotic complexity is:

log₂(n),100/n,10,√n,n

100/n,10,log₂(n), √n,n

10,100/n,√n,log₂(n),n

l00/n,log₂(n),10,√n,n

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?