Set of multiple choice questions about programming with P7 prize
Current programming is no longer strange to us. Programming work is becoming hot and more interested. Please join the Network Administrator to learn about programming skills through multiple-choice questions below.
- Question 1. What is the result of printing to the screen of the following expression: -3 + 4% 5/2.
- -first
- -3
- first
- Other results
-
- Question 2. There are the following declarations: int x = 15; int * p; Want to p is the pointer to x must execute any command:
- p = x;
-
p = & x;
- p = * x;
- All commands are correct
-
- Question 3. If there are the following statements:
char msg [10];
char value;
Which sentence is correct?- msg [2] = value;
- msg = value;
- Both sentences are wrong
- Both are true
-
- Question 4. If there are the following statements:
char msg [10];
Which sentence is correct
char * ptr; char value;- ptr = value;
- ptr = msg;
- Both are true
- Both are wrong
-
- Question 5. Any sign that is the pointer of the third element of a film has 4 characters:
- * (a + 3);
- * (a + 2);
- * a + 3;
- * (a + 4);
-
- Question 6. For the following statements:
void * tongquat;
Which assignment is invalid:
int * nguyen; char * kitu;- tongquat = nguyen;
-
- * nguyen = * tongquat;
-
- kitu = (char) tongquat;
-
tongquat = kitu;
-
- Question 7. Indicate the results of the following program section:
int p = 4;
p = 10 + ++ p;- 14
- 15
- 16
- Other results
-
- Question 8. There are the following declarations, which declaration is correct:
char tb, bearing [15];
-
tb = 'hello b n ';
-
- gets (bearing);
-
- bearing = 'chaoban';
-
- gets (tb);
-
- Question 9. Adding a pointer to an integer will be:
- A pointer has the same type
- An integer
- Both results are correct
-
- The two results are wrong
-
- Question 10. Subtraction of 2 pointers with the same type will be:
- A pointer has the same type
- An integer
- Other results
- Not possible
-
Discover more
programming programming exercises web programming computer programming multiple choice mobile programming programming languages programming applications iodine programmingShare by
Jessica Tanner
Update 24 May 2019
You should read it
- Set of multiple choice questions about programming with P10 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
- The Quiet Details That Make a Sports Betting Platform Feel Reliable
- Instructions on creating toy set images with ChatGPT AI
- How are AI agents changing the journalism industry?
- Set of multiple choice questions for programming with P8 prizes
- Multiple choice questions about Photoshop P7
- Multiple choice questions about Photoshop P8