Set of multiple-choice questions on award-winning programming P5
- 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 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
May be interested
- Microsoft Access has a P2 answermicrosoft access is one of the most commonly used applications, has quite useful features for small databases. here, go with the network administrator to learn about this topic through multiple choice questions.
- PowerPoint informatics test P4power point is an effective presentation tool, and in order to increase persuasiveness and attraction from slides, images are an indispensable part. to help readers have more useful knowledge about this topic, below the network administrator will send you reading extremely interesting questions about powerpoint.
- Microsoft Excel Test P9the following network administrator will send you to read multiple choice questions about excel, invite you to test your knowledge. the set of questions consists of 10 sentences, 4 answers each to choose from.
- The Microsoft Access test has a P3 answermicrosoft office access, often referred to as ms access or simply access, is a management software that is a relational database owned by microsoft. please join the network administrator to learn about this topic through multiple choice questions.
- What do you know about P8 software technologyplease read your knowledge and the following software technology quiz questions of network administrator. hopefully, these brief and concise questions will help you gain more useful knowledge about this topic.
- The Linux Network Administration test has the answer P4invite readers to join the test with multiple choice questions with the following linux topic of network administrator. there will be 10 questions, each with 4 answers, please choose the most accurate answer.