Set of multiple-choice questions on award-winning programming P5
Serializing programming tests, in the following article, readers will be able to expand their knowledge with more interesting questions. Let's start.
- Question 1. Suppose there is a ch = 'A' statement. So how many bytes will it contain:
- first
- 2
- 3
- 4
-
- Question 2. Suppose there is a command ch [] = "A". How many bytes are included:
- first
- 2
- 3
- 4
-
- Question 3. Print results to the screen of the following program:
#include void main ()
{
int ch = 'A'; printf ('% d', ch);
}- A
- a
- 65
- Other results
-
- Question 4. Result of the following program:
#include
void main ()
{
int i = 98; printf ('% c', i);
};- B
- b
- 98
- Other results
-
- Question 5. Print results to the screen of the following program:
#include
void main ()
{
int i = 5, j = 6; i = i- --j;
printf ('% d', i);
};- 6
- 5
- first
- 0
-
- Question 6. The general form of printf () function is: printf ('array of specifications', sequence of expression code); In it, the code set will be:
- The range of data format codes displayed
- Cursor of string of characters
- Character strings are informative
- All 3 answers above
-
- Question 7. In the following functions, which function is an unformatted function to enter a character from the keyboard
- scanf ()
- getchar ()
- getch ()
- getche ()
-
- Question 8. In the following functions, which function to enter a character from the keyboard immediately after typing, do not wait press Enter and do not show the screen:
- scanf ()
- getchar ()
- getch ()
- getche ()
-
- Question 9. Which function reads the character from the keyboard immediately after typing, without waiting for pressing Enter. The characters appear on the screen:
- canf ()
- getchar ()
- getch ()
- getche ()
-
- Question 10. What is the following screen print result of the program:
#include
void main ()
{
int i;
for (i = 2; i <= 4; i + = 2) printf ('% 3d', i);
};- '1 2 3 4'
- '2 3'
- ' 2 '
- The program cannot run
-
5 ★ | 1 Vote
You should read it
- Set of multiple choice questions about programming with P12
- Set of multiple choice questions for programming with P15 prize
- Set of multiple choice questions about programming with P10 prize
- Set of multiple choice questions about programming with P7 prize
- P13 programming set of multiple choice questions
- Set of multiple choice questions about programming with P6
- Set of multiple choice questions on programming with P16 prize
- A set of multiple choice questions for programming has a P2 prize
- Set of multiple choice questions for programming with P8 prizes
- Set of multiple choice questions on programming with P14 prize
- Set of multiple choice questions on programming with P3 prize
- Set of multiple choice questions about programming with P17 prize