MindTree Basic Programming Skills Quiz 1

Question 1

Time: 00:00:00
What collects all the source code for an application and prepares them to be ready for execution?

Loader

Loader

Linker

Linker

Float

Float

Double

Double

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 2

Time: 00:00:00
Usain Bolt runs 400 meters race, the timekeeper wants to write a program to save his track timing. What kind of a data type should he be using to store the temporary data?

Int

Int

Short

Short

double

double

Float

Float

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 3

Time: 00:00:00
Raman works in a reputed software company. His manager has asked him to make students sit in an array-like position, an array which can store numbers in both negative a[-4] and a[4] and so on in a special compiler.

He can only use 8 bytes of addressing. How many people can sit in this array and what is the last negative position?

1024  

1024  

512  

512  

264  

264  

256

256

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 4

Time: 00:00:00
Paras has to write a code using a consecutive number of registers and these registers can at max have 11 bits. How many signed numbers can he store in this

2048  

2048  

1024  

1024  

640  

640  

852

852

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 5

Time: 00:00:00
Assembler works to convert assembly language program into machine language:

In between execution  

In between execution  

After the computer can execute it  

After the computer can execute it  

Before the computer can execute it  

Before the computer can execute it  

All of the above

All of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 6

Time: 00:00:00
Prateek has got homework from his teacher to find the number bits in a data type that will help me write in Portuguese. It has about 60 letters in it. What are number of bits he must be using -

80  

80  

32  

32  

64  

64  

24

24

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 7

Time: 00:00:00
Which of the following is not a data type?

Int  

Int  

Double  

Double  

Float  

Float  

All of the above

All of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 8

Time: 00:00:00
What is the storage size and the range for short?

 

2 bytes and -2,147,483,648 to 2,147,483,647  

2 bytes and -2,147,483,648 to 2,147,483,647  

2 bytes and 0 to 4,294,967,295  

2 bytes and 0 to 4,294,967,295  

2 bytes and -32,768 to 32,767  

2 bytes and -32,768 to 32,767  

2 bytes and -128 to 127

2 bytes and -128 to 127

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 9

Time: 00:00:00
Which of the following is not derived from Data Type?

Struct  

Struct  

Typedef  

Typedef  

Enum  

Enum  

Dint

Dint

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 10

Time: 00:00:00
Predict the output of the questions -

Function main() {

double d = 123.4

static float f =123.4

if (m equals i)

print ”Both of them are equal”

else if( f > d )

print ”Float is greater”

else

print ”Double is greater”

}

Float  

Float  

Double  

Double  

Both them are equal  

Both them are equal  

Code will generate error

Code will generate error

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Comments