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 on programming with P9multiple choice questions about programming help you gain more useful knowledge for yourself in the process of learning and working. there will be 10 questions for you to test your knowledge. let's start.
- Set of multiple choice questions about programming with P12the programming test questions below will provide you with useful knowledge on this topic. if you want to study programming, you should not ignore the series of programming tests of network administration.
- 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.
- Multiple choice questions about programming with P1 prizeprogramming is the use of programming languages and tools and utilities to write code, build practical programs and applications on your computer to serve your life. the following is an invitation to test your knowledge with our following series of articles.
- 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.