Set of multiple choice questions about programming with P7 prize
- 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
-
4 ★ | 1 Vote
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
- 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
- Set of multiple choice questions for programming with P8 prizesfollowing the series of quizzes around programming topics, below invite readers to test their knowledge with multiple choice questions that we have summarized below.
- Multiple choice questions about Photoshop P7please read your knowledge with our multiple choice quiz around the following photoshop topic. with many questions related to how to use this software, you will definitely enjoy it.
- Multiple choice questions about Photoshop P8photoshop is a complete software for handling professional digital images, containing the latest tools to work with images and new opportunities to implement creative ideas that can improve significantly. tells productivity. the following article will help you learn about this software through multiple-choice questions. let's start.
- What do you know about PHP P1please read the knowledge and multiple choice questions around the topic of php programming. with basic questions related to this topic, hopefully readers will add more useful knowledge.
- Multiple choice questions about Photoshop P3you love photoshop and want to learn more about this software, so try testing knowledge right away with our quiz below. you will certainly be provided with a lot of useful knowledge after completing this test.
- Multiple choice questions about Microsoft Word 2010 have a P2 answerword 2010 is a very useful microsoft text editor. with significant improvements, users will get a lot of interesting experiences with text editing. please join the network administrator to learn about this topic through multiple choice questions.