Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7) Which of the following lines of code defines an array of C-strings that will hold 49 characters and the null terminator? A) char [49];

7) Which of the following lines of code defines an array of C-strings that will hold 49 characters and the null terminator?

A) char [49];

B) char str[50];

C) char[50] str;

D) character str[50];

E) None of the above

8) The statement:

char var1 = tolower('A');

will result in:

A) var1 storing the character value 'A'.

B) var1 storing the ASCII value for lower case 'a'.

C) A is output to the monitor.

D) a is output to the monitor.

E) None of these

9) To change a character argument from lower to upper case, use this function.

A) isupper

B) toupper

C) tolarge

D) fromlower

E) None of these

10) What is the output of the following statement?

cout << tolower(toupper('Z')) << endl;

A) upper case Z

B) lower case z

C) a lower case z followed by an upper case Z

D) a compiler error

E) None of these

11) If Circle is a structure tag, the statement:

Circle doSomething(Circle c2)

can be the header line for a function that ________.

A) determines and returns the area of a circle

B) takes a Circle structure as a parameter, does something, and returns a Circle structure

C) operates on a constant reference to a Circle structure

D) takes two Circle parameters and does something

E) None of these

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

Compare and contrast special and common causes of variation.

Answered: 1 week ago

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago