Set of multiple choice questions about programming with P11 prize
Instead of going to the centers to learn about programming, you can completely learn at home with extremely useful multiple-choice questions that the Network Administrator summarized below.
- Question 1. What function clrscr () is:
- As a function to delete the entire screen, after deleting, the cursor will be on the left side of the screen
- Used to clear the keyboard cache
- A function to delete characters located on the left of the cursor
- A function to delete characters located to the right of the cursor
-
- Question 2. What are the results of the following program section:
char c; int n;
scanf ('% c% d', & n, & c); If typing: 'r 45'.- n = 45, c = ''.
- n = 45, c = 'r'.
- Error while building the program
- Other results
-
- Question 3. Function scanf ('% [^ n]', str); Similar to the following command:
- getch ();
- getche ();
- getchar () macro;
- gets (str);
-
- Question 4. For the following program section:
#include
The requirements of the above paragraph are:
#include void main ()
{
char c; clrscr ();
because c = getchar (); while (c! = '*'); getch ();
};- Enter 1 character until you see the character '*'.
- Enter the characters until you see the '*' character.
- Enter the characters '*'.
- Error while building the program
-
- Question 5. What are the results of the following program:
#include
void main ()
{
printf ('% d', 3 6);
};- 0
- first
- true
- Other results
-
- Question 6. The '++ n' operator is understood:
- The value of n decreases after its value is used
- The value of n decreases before its value is used
- The value of n is increased after its value is used
- The value of n is increased before its value is used
-
- Question 7. The 'n--' operator is understood:
- The value of n decreases after its value is used
- The value of n decreases before its value is used
- The value of n is increased after its value is used
- The value of n is increased before its value is used
-
- Question 8. Which one-sided operation is used to determine the value at the address of the pointer pointing to:
-
- !
-
- &;
-
- *;
- Other results
-
- Question 9. Subtracting 1 pointer with an integer will be:
- An integer
- A pointer of the same type
- Both results are correct
- Both results are wrong
-
- Question 10. What is the result of the following code:
Employeestruct Employee struct {char Code [], name []; long Salary;};Employee e1= { 'E089', 'Hoang so', 12000}, e2=e1; long Salary;}; Employee e1 = {'E089', 'Hoang so', 12000}, e2 = e1; printf ('% ld', el.Salary + e2 -> Salary);
- 24000
- 12000
- The code is broken
- Other results
-
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 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