Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 1 _________ is a function that converts a sequence of characters repres

ID: 3918030 • Letter: Q

Question

QUESTION 1

_________ is a function that converts a sequence of characters representing a floating-point value to double.

strconv

strtod

strtol

strtoul

QUESTION 2

Statements in a program are executed one after the other in the order in which they’re written. This is called _______________ execution.

structured

sequential

layered

periodic

QUESTION 3

Linked lists are ____________.

static

Dynamic

Start Date

Assigned

QUESTION 4

C imposes _______ structure on a file.

no

strict

implied

guarded

QUESTION 5

If memory is low and execution efficiency is a concern, never use pointers.

True

False

QUESTION 6

Function memchr searches for the first occurance of a ________.

byte

pointer

string

character

QUESTION 7

Certain words used in C Programming like INT and IF are called _______________.

constants

phrases

keywords

pretext

QUESTION 8

Each called function always finds the information it needs to return to its caller at the ______ of the call stack.

Bottom

Top

Middle

Called Spot

QUESTION 9

The C compiler ignores white-space characters such as blanks, tabs and newlines used for indentation and vertical spacing.

True

False

QUESTION 10

Function getchar reads a character from the standard input and returns the character as an integer.

True

False

C++ questions

strconv

strtod

strtol

strtoul

Explanation / Answer

A1) strtod (as per the documentation on the official website).

A2) sequential (as the statements are executed one after another).

A3) Dynamic because the number of nodes can shrink and grow as per the demand

A4) no structure is imposed by C on files as the records are stored in the form of bytes and it is the programmer who has to provide the fiel structure.

A5) False

A6) character (in memchr the occurence of the first character within a certain number of bytes pointed by the pointer passed to the function)

A7) keywords (as int and if are special keywords so cannot be used as the name for a variable)

A8) Bottom (as the return statement is made at the end of the function when it is about to return control the caller function).

A9) True

A10) True

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote