wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Aptitude and Logical

Total questions: 136

Worksheet time: 2hrs 33mins

Name
Class
Date
1.

The continue statment cannot be used with

a)

for

b)

while

c)

do while

d)

switch

2.

In the following loop construct, which one is executed only once always.

for(exp1; exp2; exp3)

a)

exp1

b)

exp3

c)

exp1 and exp3

d)

exp1,exp2 and exp3

3.

What will be the output of the following C code?

#include <stdio.h>

int main()

{

int i = 0;

do

{

printf("Hello");

} while (i != 0);

}

a)

Nothing

b)

H is printed infinite times

c)

Hello

d)

Run time error

4.

#include <stdio.h>

int main()

{

int i = 0;

while (i < 3)

{

i++;

printf("In while loop\n");

}

}

a)

2

b)

3

c)

4

d)

1

5.

Is it possible to run program without main() function?

a)

yes

b)

no

c)

-

d)

-

6.

What is the output of C Program.?

int main()

{

int a=5;

while(a >= 3);

{

printf("RABBIT\n");

break;

}

printf("GREEN");

return 0;

}

a)

GREEN

b)

RABBIT GREEN

c)

RABBIT is printed infinite times

d)

None of the above

7.

What is the output of C Program.?

int main()

{

int a=25;

while(a <= 27)

{

printf("%d ", a);

a++;

}

return 0;

}

a)

25 25 25

b)

25 26 27

c)

27 27 27

d)

Compiler error

8.

What is the output of C Program.?

int main()

{

int a=32;

do

{

printf("%d ", a);

a++;

}

while(a <= 30);

return 0;

}

a)

32

b)

33

c)

30

d)

No Output

9.

What is the output of C Program.?

int main()

{

int k;

for(k=1; k <= 5; k++);

{

printf("%d ", k);

}

return 0;

}

a)

1 2 3 4 5

b)

1 2 3 4

c)

6

d)

5

10.

Choose correct C while loop syntax.

a)

while(condition) { //statements }

b)

{ //statements }while(condition)

c)

while(condition); { //statements }

d)

while() { if(condition) { //statements } }

11.

What is the output of C Program.?

int main()

{

int a=5;

while(a=123)

{

printf("RABBIT\n");

break;

}

printf("GREEN");

return 0;

}

a)

GREEN

b)

RABBIT GREEN

c)

RABBIT is printed unlimited number of times.

d)

Compiler error.

12.

int main()


{


int a = 10, b = 25;


a = b++ + a++;


b = ++b + ++a;


printf("%d %d n", a, b);


}

a)

36 64

b)

35 62

c)

36 63

d)

30 28

13.

int main()


{


char arr[7]="Network";


printf("%s", arr);


return 0;


}

a)

Network

b)

N

c)

Garbage Value

d)

Compilation error

14.

int main ()


{


int x = 24, y = 39, z = 45;


z = x + y;


y = z - y;


x = z - y;


printf ("n%d %d %d", x, y, z);


}

a)

24 39 63

b)

39 24 63

c)

24 39 45

d)

39 24 45

15.

int main() {


int m = -10, n = 20;


n = (m < 0) ? 0 : 1;


printf("%d %d", m, n);


}

a)

-10 0

b)

10 20

c)

20 -10

d)

0 1

16.

int main() {


int x = 0, y = 0;


if(x > 0)


if(y > 0)


printf("True");


else


printf("False");


}

a)

No Output

b)

True

c)

False

d)

Error because of dangling else problem

17.

#include<stdio.h>

int main()

{

int a=2,b=7,c=10;

c=a==b;

printf("%d",c);

}

a)

0

b)

7

c)

2

d)

Compilation error

18.

Who is Father of C Language

a)

Bjarne Stroustrup

b)

James A. Gosling

c)

Dennis Ritchie

d)

Dr. E.F. Codd

19.

C Language is developed at ___________?

a)

AT & T's Bell Laboratories of USA in 1972

b)

AT & T's Bell Laboratories of USA in 1970

c)

Sun Microsystems in 1973

d)

Cambridge University in 1972

20.

C programs are converted into machine language with the help of

a)

An Editor

b)

A compiler

c)

An operating system

d)

None of these.

21.

Which one of the following is not a valid identifier?

a)

_examveda

b)

1examveda

c)

exam_veda

d)

examveda1

22.

int main ()

{

int x = 24, y = 39, z = 45;

z = x + y;

y = z - y;

x = z - y;

printf ("%d %d %d", x, y, z);

}

a)

24 39 63

b)

39 24 63

c)

24 39 45

d)

39 24 45

23.

The process of removing a bug is known as

a)

Debugging

b)

Compilation

c)

Executing

d)

Running

24.

Every C Program Statement must be terminated with a

a)

.

b)

#

c)

;

d)

!

25.

How many choices are possible when using a single if-else statement?

a)

1

b)

2

c)

3

d)

4

26.

What does the following code fragment write to the monitor?

a)

Under

b)

Over

c)

Under the limit

d)

Over the limit

27.

What does the following code fragment write to the monitor?

a)

Under

b)

Over

c)

Under the limit

d)

Over the limit

28.

What does the following code fragment write to the monitor?

a)

You win

b)

You lose

c)

You win the prize.

d)

You lose the prize.

29.

What does the following code fragment write to the monitor?

a)

You win

b)

You lose

c)

You win the prize.

d)

You lose the prize.

30.

In if-else, else block execute when

a)

"if expression" return true

b)

"if expression" return false

c)

"else expression" return true

d)

"else expression" return false

31.

Which of the following is the boolean operator for logical-AND?

a)

&

b)

&&

c)

|

d)

||

32.

Which of the following is not a valid variable name declaration?

a)

int a3;

b)

int 3a;

c)

int _A3;

d)

int a_3

33.

All keywords in C are in ____________

a)

Lowercase

b)

Uppercase

c)

Camelcase

d)

None of these

34.

Diamond shaped symbol is used in flowcharts to show the-

a)

decision box

b)

statement box

c)

error box

d)

if-statement box

35.

Which is correct with respect to size of the data types?

a)

char > int > float

b)

int > char > float

c)

char < int < double

d)

double > char > int

36.

Which is valid C variable declarations?

a)

int my_num = 100,000;

b)

int my_num = 100000;

c)

int my num = 1000;

d)

int $my_num = 10000;

37.

The functions printf() and scanf() are defined in which of the following library file:-

a)

math.h

b)

conio.h

c)

stdio.h

d)

stdlib.h

38.

#include <stdio.h>

void main()

{

int k = 4;

float k = 4;

printf("%d", k)

}

A.

a)

4

b)

4.000000

c)

No output

d)

Compile time Error

39.

how to print a and b variable of int and float respectively

a)

scanf("%d%f",&a,&b);

b)

printf("%d%f",a,b);

c)

printf("%f%d",&a,&b);

d)

printf("%f%d",&a,&b);

40.

When applied to a variable, what does the unary "&" operator yield?

a)

The variable's address

b)

The variable's right value

c)

The variable's binary form

d)

The variable's value

41.

The operator "&" is used for

a)

Bitwise AND

b)

Bitwise OR

c)

Logical AND

d)

Logical OR

42.

Which are built-in data structures in C programming?

a)

Arrays

b)

Structures

c)

Files

d)

All of the above

43.

The size of a character variable in C is

a)

8 bytes

b)

4 bytes

c)

2 bytes

d)

1 byte

44.

Which is the correct sequence statements that swaps values of two statements?

a)

a=a+b; a=a-b; b=a-b;

b)

a=a+b, b=a-b; a=a-b;

c)

a=a-b; a=a+b; b=b-a;

d)

None of these

45.

The words if, else, auto, float etc. have predefined meaning and users cannot use them as variables.


These words are called

a)

keywords

b)

identifier

c)

data types

d)

constant

46.

While assigning a value to a variable, which operators are used to perform arithmetic operations?

a)

Logical operator

b)

Assignment operator

c)

Increment operator

d)

Conditional opertor

47.
What punctuation is used to indicate the beginning and end of code blocks?
a)
{ }
b)
-> <-
c)
BEGIN and END
d)
( and )
48.
Which of the following is the correct operator to compare two variables?
a)
:=
b)
=
c)
equal
d)
==
49.

Program is a list of_______________, written in a _______________________ to determines the behaviour of a machine.

a)

word, english

b)

instructions , programming language

c)

instructions, word

50.
How to comment in C language?
a)
//Comment
b)
A & B
c)
* Comment *
d)
<---Comment---->
51.

C programming consists of two section which are _________________ and ___________________

a)

Pre-processor directives ; Main function

b)

Pre-processor directives ; end statement

c)

statements ; Main function

52.

Process of writing the C source code is called as ___________________

a)

Editing

b)

LInking

c)

Executing

53.

#include<stdio.h> is important line in c. The stdio.h contains information on input output routines.

a)

True

b)

False

54.
How do you invoke a function?
a)
function { };
b)
function[x];
c)
function();
d)
(function);
55.
Which one will return an value?
a)
give 1;
b)
rerun 2;
c)
*a = 1;
d)
return 1;
56.
Another way of saying "otherwise"
a)
Programming
b)
Parameters
c)
Else
d)
Increment
57.
A piece of code that can be pulled over and over
a)
Function
b)
Program
c)
Simulation
d)
Interface
58.

An Integrated Development Environment typically consists of:

a)

A text editor

b)

A compiler

c)

A debugger

d)

All of these

59.

___ is used to translate source code instructions into the appropriate machine language instructions

a)

Module

b)

Library routine

c)

Compiler

d)

Preprocessor directives

60.

Computer programs are also known as:

a)

Hardware

b)

Firmware

c)

Software

d)

Silverware

61.

The primary purpose of an operating system is:

a)

To make the most efficient use of the computer hardware

b)

To make programming easier

c)

To fetch instructions

d)

To prevent multitask

62.

What is the extension of C program source code?

a)

.cpp

b)

.py

c)

.c

d)

.java

63.

What is machine language?

a)

A language used by car

b)

Machine language is made of 1's and 0's

c)

Machine language is made of 7's and 8's

d)

A language that only understands plain English

64.

Which of the following is not a high level programming language?

a)

Assembly

b)

C++

c)

Java

d)

Python

65.

What is the value of this expression using integer arithmetic:

7 / 4

a)

1

b)

2

c)

1.75

66.

Determine the value of this expression using integer arithmetic:

5 % 7

a)

0

b)

2

c)

5

67.

Determine the value of b in this code fragment:

int a=3, b;

b=++a;

a)

3

b)

4

c)

2

68.

What will be printed on the screen from this fragment:

int num=0;

printf("%d", ++num)

a)

0

b)

1

c)

2

69.

What is the abbreviated way to write this assignment statement:

total=total+num;

a)

t=t+n;

b)

total+=num

c)

total=(total+num)

70.

%s indicates in scanf statement

a)

to get an integer

b)

to get a character

c)

to get a string

d)

to get a real no.

71.
What does the Internet prefix WWW stand for?
a)
Western Washington World
b)
Worldwide Weather
c)
Wide Width Wickets
d)
Word Wide Web
72.
What company's operating system runs on the Chromebook?
a)
Apple
b)
Google
c)
Microsoft
d)
Windows
73.
What is Google Drive?
a)
A free service from Google that allows you to store files online and access them anywhere using the cloud. 
b)
The street that Google's main headquarters building is located on.
c)
A special program for controlling an automobile.
d)
A very expensive golf club.
74.
Where are documents that you place on Google Drive stored?
a)
On your school network
b)
On a flash drive
c)
Somewhere in California
d)
In the cloud
75.
What does this icon represent?
a)
Google Slides
b)
Google Forms
c)
Google Docs
d)
Google Sheets
76.
What does this icon represent?
a)
Google Slides
b)
Google Forms
c)
Google Docs
d)
Google Sheets
77.
What does this icon represent?
a)
Google Slides
b)
Google Forms
c)
Google Docs
d)
Google Sheets
78.

What percentage of the world is on social media?

a)

20%

b)

50%

c)

70%

d)

90%

79.

Where was Netflix founded?

a)

India

b)

America

c)

England

d)

Japan

80.

What is the word or phrase that does not belong in each group?

a)
b)
c)
d)
81.

What is the word or phrase that does not belong in each group?

a)
b)
c)
d)
82.
Which of the following is spelled correctly?
a)
rituals
b)
ritauls
c)
richuals
d)
ritchuels
83.
Which of the following is spelled correctly?
a)
recreation
b)
rekreation
c)
recreasion
d)
recreetion
84.
Which of the following is spelled correctly?
a)
acquisition
b)
aquisition
c)
aquisision
d)
ackwisition
85.
Which of the following is spelled correctly?
a)
releenquish
b)
relenquish
c)
relinquish 
d)
ralinquish
86.
Which of the following is spelled correctly?
a)
conspicoouous
b)
conspicuous
c)
conspickous
d)
conspicoous
87.
established procedures for a ceremony
a)
infraction
b)
conspicuous
c)
acquisition
d)
rituals
88.
capability or capacity for something
a)
acquisition
b)
aptitude
c)
recreation
d)
infraction
89.
a shelter used for a long time
a)
recreation
b)
conspicuous
c)
dwelling
d)
aptitude
90.
an act of breaking a rule or law
a)
rituals
b)
excruciating
c)
chastisement
d)
infraction
91.
extremely painful or distressing
a)
chastisement
b)
dwelling
c)
excruciating
d)
conspicuous
92.

Find the least number which when divided by 5,7,9 and 12, leaves the same remainder 3 in each case

a)

1236

b)

1263

c)

1623

d)

1632

93.

35 x 11

a)

485

b)

375

c)

385

d)

365

94.

5, 10, 15, 20, 25, ____, ____, ____

a)

30, 35, 40

b)

65, 35, 116

c)

26, 27, 28

d)

20, 15, 10

95.
Based on the rate of change, how many circles would come next?
a)
5
b)
7
c)
9
d)
11
96.
Given the following tile pattern, how many tiles would be in the 5th shape?
a)
b = 8
b)
b = 11
c)
b = 7
d)
b = 9
97.
How would you describe this pattern's rule?
16, 11, 6, 1
a)
Add 5
b)
Subtract 3
c)
Subtract 5
d)
Subtract 6
98.

What would come next in the pattern shown?

a)
b)
c)
d)
99.
How many blocks will be in the 4th term?
a)
The next term will have 16 blocks
b)
The next term will have 15 blocks.
c)
The next term will have 14 blocks.
d)
This is the end of the pattern.
100.
What type of pattern is this
a)
Growing 
b)
Repeating
101.
What number is missing in this pattern?
327, 333, 339, ____, 351, 357
a)
340
b)
344
c)
345
102.

600, 550, _______, ________, 400, 350, 300, 250, 200

a)

500, 400

b)

350, 500

c)

450, 500

d)

500, 450

103.
What are the missing numbers in this pattern?
23, 33, ___, 53, ___, 73
a)
32, 62
b)
42, 63
c)
43, 63
d)
42, 62
104.
What is the equation of the white squares per design?
a)
4n
b)
n^2
c)
(n-1)^2
d)
(n+1)^2
105.
Determine the type of function of...
4, 12, 20, 28, 36,...
a)
Linear
b)
Quadratic
c)
Cubic
d)
Exponential
106.

What is the equation for the function

a)

y = 2x+3

b)

an = 3 (.5)n-1

c)

an = 3 (2)n-1

d)

an = 1.5 (2)n-1

107.
a)
Man on board
b)
Man over board
c)
Man on the board
d)
Man under board
108.
a)

Multiple personality

b)

Mirror personalities

c)

Split personality

d)

Double personality

109.

Daytime Entertainment

a)

TV's No Good

b)

Nothing Good On TV

c)

TV Under No Good

d)

CNN

110.

Sad when this happens

a)

Forgotten Hero

b)

Gots left Heroes

c)

Heroes Write Gots

d)

Left four Hero ten

111.

It Only Gets...

a)

& Better times two

b)

& Better & Better

c)

Bigger & Better

d)

This & Better

112.
a)

Blue Mo Once On

b)

Moon only Once

c)

Once in a Blue Moon

d)

Moon over Miami

113.
a)

Generate Arrow

b)

Down Between R and A

c)

Generation Gap

d)

Blue Arrow Gener Ation

114.
a)

Two APPOINTed

b)

A POINT beside A POINT

c)

Up to A POINT

115.
a)

Too FUNNY for WORDS

b)

Two FUNNY over four WORDS

c)

Funniest Words

116.
I am more than 50, but less than 60. I have a 1 in my ones spot.
a)
15
b)
51
c)
61
d)
65
117.
I am in the same row as 43. I have a zero in my ones spot.
a)
40
b)
60
c)
44
d)
50
118.
Your in a race you bypass the person in 2nd place what place are you in
a)
1st
b)
2nd
c)
3rd
d)
4th
119.
Your a bus driver and you pick up and drop kids off after school you drop off Sally, Ted, Alan, and Nate what is the bus drivers name 
a)
Ted
b)
STAN
c)
your name
d)
Alan
120.
The more you take the more you leave behind what am I
a)
footsteps
b)
Water
c)
memories
d)
farts
121.
2+2=fish
3+3=8
7+7=?
a)
Triangle
b)
14
c)
21
d)
49
122.
Better than sorry is
a)
safe
b)
Monopoly
c)
money
d)
friends
123.
The more there is of me the less you see of other things. What am I? 
a)
a fat person
b)
darkness
c)
greediness
d)
magic is always the answer
124.
Whats big and yellow a comes in the morning to brighten moms day
a)
sun 
b)
banana
c)
school bus
d)
your smile
125.
If you want to buy a sweater that costs $15, you will have to pay 5% sales tax. How much tax will you have to pay?
a)
$15.50
b)
$0.05
c)
5%
d)
$0.75
126.

You find me in December, but not in any other month. What am I?

a)

Christmas

b)

Winter

c)

Hanukkah

d)

The letter D

127.

What goes up but not down

a)

Your Age

b)

Your dog

c)

your laugh

d)

Air

128.
Before Mt. Everest was discovered, what was the highest mountain in the world?
a)
Mt. Kilamanjaro
b)
Mt. Hood
c)
Mt. St. Helens
d)
NONE of the above
129.

If it takes 5 machines 5 minutes to make 5 T-shirts, how long will it take 100 machines to make 100 T-shirts?

a)

100 minutes

b)

50 minutes

c)

5 minutes

d)

20 minutes

130.

When the alarm sounded, the ______ at the party changed from festive to terrifying.

a)

Ambiance

b)

Ballistics

c)

Aptitude

d)

Chronic

131.

to improve

a)

disposition

b)

vague

c)

chastisement

d)

enhance

132.

Study the chart and answer the questions: The pie

chart given here represents the domestic expenditure of a family in percent.Study the chart and answer the following questions if the total monthly income of the family is Rs. 33,650.

The house rent per month is:

a)

Rs. 6000

b)

Rs. 6152

c)

Rs. 6057

d)

Rs. 6048

133.

Study the chart and answer the questions: The pie chart given here represents the domestic expenditure of a family in percent. Study the chart and answer the following

questions if the total monthly income of the family is Rs. 33,650.

After providential fund deductions and payment of house rent, the total monthly income of the family remains:

a)

Rs. 23545

b)

Rs. 24435

c)

Rs. 23555

d)

Rs. 25355

134.

An______________ is someone who provides a product or service for someone else for money.

a)

entrepreneur

b)

aptitude

c)

consumer

135.

A person or organization that pays people to work for them

a)

employer

b)

employee

c)

co worker

136.

a skill you have already developed

a)

ability

b)

aptitude

c)

interests