Set of multiple choice questions on programming with P9
- Question 1. What determines the size of the memory allocated to variables:
- Variable name
- Data type of variable
- Value of variable
- All right
-
- Question 2. What are the results of the following program:
#include
void main ()
{
int i, k;
for (i = 1;; ++) k = 5; printf ('% d', i);
};- 0
- 5
- Infinite loop
- Other results
-
- Question 3. What are the results of the following program:
#include
void main ()
{
int i = 1, k = 0;
for (; i <5; i ++) k ++; printf ('% d', k);
}- 0
- 4
- 5
- Infinite loop
-
- Sentence 4. Which of the following commands allows to jump out of the loop to any desired position:
- break
- tiếp tục
-
goto
-
- Question 5. In the following functions, which functions are not formatted to print a character to the screen:
- puts ();
- printf ();
-
putchar ();
- Only B and C
-
- Question 6. What are the results of the following program:
#include
#include void main ()
{
clrscr (); int i;
for (i = 1; i <= 24; i ++); printf ('n% d', i); getch ();
return;
};- Print the screen numbers from 1 to 24
- Error while building the program
- Print the screen numbers from 1 to 24, one line at a time
- Another result
-
- Question 7. What is the fflush (stdin) command used for:
- Read characters from the keyboard
- Clear the cache
- Clear the cache
- Other results
-
- Question 8. What are the results of the following program section:
char c; int n;
scanf ('% d% c', & n, & c); If typing: '10 T '.- n = 10, c = ''
- n = 10, c = 'T'
- Error while building the program
- Other results
-
- Question 9. Print results to the screen of the following program:
#include
void main ()
{
int i = 100; printf ('% c', i);
};- 'd'
- 'D'
- '100'
- Other results
-
- Question 10. How can the hang be defined:
- #define string
- const name_volume_value = value;
- There is no way to define
- A and B
-
5 ★ | 2 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 on award-winning programming P5
- 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
May be interested
- Set of multiple-choice questions on award-winning programming P5serializing programming tests, in the following article, readers will be able to expand their knowledge with more interesting questions. let's start.
- Set of multiple choice questions about programming with P6the following network administrators will continue to send you interesting questions about programming. if you love this topic, then try your knowledge.
- Set of multiple choice questions about programming with P10 prizethe programming questions below will give you lots of useful information. if you are interested in learning programming languages, the series of programming language topics will be very helpful for you.
- Set of multiple choice questions for programming with P15 prizeprogramming is a discipline that attracts many young people interested. not only that job opportunities after graduation with this job are extremely open. so, if you love programming, you should not ignore the following quiz series of network administrator.
- Multiple choice questions about Javascript languageif you are a beginner of these programming languages, the following multiple-choice questions of network administrator will be very suitable for you to support knowledge.
- Guide to creating multiple choice questions on VnEduone of the outstanding features of vnedu is to create multiple choice questions quickly. using vnedu, teachers will not worry about test questions that are identical to multiple choice questions, can add and edit questions easily to make midterm or final exam questions, ...
- P13 programming set of multiple choice questionsyou are a fan of programming languages and want to learn more about this topic. to give you an interesting reading about programming, in this article, the network administrator will send you a good quiz about this topic. invite your reference.
- A set of JavaScript multiple-choice questions has P4 answersplease read your knowledge and multiple choice questions around the javascript topic that the network administrator has edited below. the set of questions includes 10 sentences to try.
- A set of JavaScript multiple-choice questions with P2 answerslocated in the series of tests on programming languages, in the basic knowledge test below network administrators will send you questions with javascript topics.
- Test on JAVA test P7a set of multiple-choice questions about java gives you useful knowledge for work and study. the set of questions below includes 10 sentences for you to experience.