Quantitative Aptitude Series

Quiz
•
Computers
•
University
•
Hard
HITESH AHUJA
Used 45+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
Fundamentals of Algorithms - Unit 1 - Test 1

Quiz
•
University
20 questions
technology (Computer)

Quiz
•
3rd Grade - University
20 questions
Advanced Excel

Quiz
•
KG - University
25 questions
QUIZ

Quiz
•
University
17 questions
Data Structures and Algorithms Quiz

Quiz
•
University
15 questions
Luyện tập

Quiz
•
KG - University
15 questions
CPIT 201 Algorithms

Quiz
•
12th Grade - University
21 questions
Sorting algorithms I

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University