Introduction to C Language Unit-3: Strings and Length

CleanUtopia avatar
CleanUtopia
·
·
Download

Start Quiz

Study Flashcards

12 Questions

What does the length() function return when applied to the string 'C PROGRAMMING IS FUN'?

20

According to the algorithm to calculate the length of a string, what is the initial value of 'I'?

0

What is the ASCII code for the uppercase letter 'Z'?

91

If the ASCII code for a lowercase character is 105, what will be the ASCII code for the corresponding uppercase character?

137

What is the result of LENGTH('0') if the function returns the number of characters in a string?

0

What is the result of LENGTH('') if the function returns the number of characters in a string?

0

What is the length of the string 'C PROGRAMMING IS FUN'?

20

What is the length of the string '0'?

1

What is the first step in the algorithm to calculate the length of a string?

SET I = 0

What does the length() function return for an empty string?

0

If the ASCII code for the lowercase character is 105, what will be the ASCII code for the corresponding uppercase character?

73

What is the ASCII code for the uppercase letter 'Z'?

90

This quiz covers the concept of strings in the context of C Language Unit-3. It includes questions about the length of strings and related concepts.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser