- Variable name
- Data type of variable
- Value of variable
- All right
Set of multiple choice questions on programming with P9
- Question 1. What determines the size of the memory allocated to variables:
- 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
-
Update 24 May 2019
programmingprogramming exercisesweb programmingcomputer programmingmultiple choicemobile programmingprogramming languagesprogramming applicationsiodine programming
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 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
- Set of multiple choice questions on programming with P14 prize
- Set of multiple choice questions on programming with P3 prize