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/0

Accuracy

0%

Prime

Prime Mock

Complete Mock Subscription for HackerRank

For HackerRank
Get Prime Mock

Comments