TCS Ninja Data Types Quiz-1

Question 1

Time: 00:00:00
Neelam wants to share her code with a colleague, who may modify it. Thus she wants to include the date of the program creation, the author and other she wants to include the date of the program creation, the author and other information with the program. What component should she use?

header files

header files

Iteration

Iteration

Comments

Comments

pre processor

pre processor

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

Please login to submit your explanation

Pre processor

Start

Question 2

Time: 00:00:00
What is the output of the following code statements? The compiler saves the first integer at the memory location 4165 and the rest at consecutive memory spaces in order of declaration. Integer is one byte long.
integer a
pointer c, d
a = 30c = &a
c = &a
d = c
a = a + 10
print *c

30

30

40

40

4165

4165

4166

4166

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

Please login to submit your explanation

c=40

Hi

Start

Question 3

Time: 00:00:00
A data type is stored as a 6 bit signed integer. Which of the following cannot be represented by this data type?

-12

-12

18

18

6

6

32

32

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

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
A language has 28 different letters in total. Each word in the language iscomposed of maximum 7 letters. You want to create a data-type to store a word ofthis language. You decide to store the word as an array of letters. How many bytes will you assign to the data-type to be able to store all kinds of words of the language.

7

7

196

196

35

35

34

34

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

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
A 10-bit unsigned integer has the following range:

0 to 1025

0 to 1025

0 to 1000

0 to 1000

0 to 1023

0 to 1023

0 to 1024

0 to 1024

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Parul takes as input two numbers: a and b. a and b can take integer valuesbetween 0 and 255. She stores a, b and c as 1-byte data type. She writes the following code statement to process a and b and put the result in c.
c = a + 2*b
To her surprise her program gives the right output with some input values of a and b, while gives an erroneous answer for others. For which of the following inputs will it give a wrong answer?

a = 200 b = 10

a = 200 b = 10

a = 10 b = 200

a = 10 b = 200

a = 50 b = 100

a = 50 b = 100

a = 100 b = 50

a = 100 b = 50

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

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
Which is used to convert source code to target language

Linked

Linked

Loader

Loader

Executer

Executer

Compiler

Compiler

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

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
Tricha wants to store a list of binary data.Which of following data types should she use?

Boolean

Boolean

Integer

Integer

Character

Character

Float

Float

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

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
Which of the following options is an exception to being a part of composite data types?

Arrays

Arrays

Structure

Structure

Union

Union

Stacks

Stacks

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

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
Which data type is most suitable for storing a number 65000 in a 32-bit system?

short

short

int

int

long

long

double

double

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

Please login to submit your explanation

Start

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

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%

Completed

0/10

Accuracy

0%

Get Prepinsta Prime

Get all 200+ courses offered by Prepinsta

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

Follow us on our Media Handles, we post out OffCampus drives on our Instagram, Telegram, Discord, Whatsdapp etc.

Get Hiring Updates
Amazon,Google,Delottie & 30+companies are hiring ! Get hiring Updates right in your inbox from PrepInsta

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.

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.

Get PrepInsta Prime Subscription

Get access to all the courses that PrepInsta offers, check the out below -

Companies

TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies

Programming

Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects

Skills

Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects

Comments