HackerRank C programming Quiz- 1

Question 1

Time: 00:00:00
Which of the following is not a library in C?

<ctype.h>

<ctype.h>

<math.h>

<math.h>

<strings.h>

<strings.h>

<stdlib.h>

<stdlib.h>

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

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
Which is the correct way to write library functions in C?

#include "stdio.h"

#include "stdio.h"

#include ‘stdio.h’

#include ‘stdio.h’

#include <stdio.h>

#include <stdio.h>

Both A and C

Both A and C

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

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
What is the meaning of constant in C?

Constant is an entity whose value remains fixed.

Constant is an entity whose value remains fixed.

Constant is an entity whose value remains changed

Constant is an entity whose value remains changed

Constant is just a keyword and nothing else

Constant is just a keyword and nothing else

There is no keyword named Constant in C

There is no keyword named Constant in C

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

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
What is a variable in C?

Variable is an entity that acts as storage place for a value

Variable is an entity that acts as storage place for a value

Stores the recent values

Stores the recent values

Variable is an entity that varies from time to time

Variable is an entity that varies from time to time

Both A and B

Both A and B

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

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
We can use the keyword as a variable name

False

False

True

True

Based on program

Based on program

None of the above

None of the above

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Number of keywords in C

31

31

32

32

16

16

Not constant

Not constant

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 of the following is the correct way to write comments in C?

//

//

/* */

/* */

/

/

Both A and B

Both A and B

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

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
Which of the following is the wrong variable name

Var_iable

Var_iable

Var5t

Var5t

9var

9var

Var_8

Var_8

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 refers to the smallest lexical unit of a program

Variables

Variables

Tokens

Tokens

Identifiers

Identifiers

Segments

Segments

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

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
legal name given to a variable or a function is called

Variable name

Variable name

Tokens

Tokens

Keywords

Keywords

Identifiers

Identifiers

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!","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%

Completed

0/10

Accuracy

0%

Prime

Prime Mock

Complete Mock Subscription for HackerRank

For HackerRank
Get Prime Mock
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