P13 programming set of multiple choice questions
- Question 1. To declare a function to check an array is increasing or not we use the following statement:
- void CheckAsc (int a [], int n);
- int CheckAsc (int * a, intn);
- long CheckAsc (int * S);
- double CheckAsc (int S [], intn);
-
- Question 2. Which code will permutate 2 numbers a and b:
-
t = a; a = b; b = t;
- t = a; a = b; t = b;
- a = t; b = a; t = b;
- t = b; b = a; a = t;
-
- Question 3. In the following sentences, which sentence is correct:
-
The value of a variable can be changed.
- The value of a variable cannot be changed
- It is possible to declare two variables with the same name in the same function.
- Cannot declare 2 variables with the same name in the same function.
-
- Question 4. Symbols that characterize the impact on data are called:
- Operator
- Expression.
- Jaw
- Turn
-
- Question 5. The size of the pointer variable is:
- 1 byte.
-
2 bytes
- 3 bytes.
- There is no right answer
-
- Question 6. Indicate the value of the expression: 2 + 4> 2 && 4 <2;
- first
- -first
- 0
- There is no right answer
-
- Question 7. What is the logical value of the following expression:! (1 && 1 || 1 && 0);
- first
- 0
- -first
- There is no right value
-
- Question 8. Select the expression representing num as the number between 1 and 9 but it must be 4:
- num> 1 && num
- num> 1 || num
-
num> = 1 && num <= 9 && num! = 4;
- No sentence is correct
-
- Question 9. Find the results of the following program:
{
int n;
for (n = 18; n> 0; n / = 2)
printf ('% 3d', n);
};- '18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 '.
- '18 9 4 2 1 '.
- '18 9 4 2 1 0 '.
- No answer right
-
- Question 10. Find the results of the following program:
#include
main ()
{
int i, ch;
for (i = 0, ch = 'A'; i <5; i ++, ch ++) putchar (ch);
};- 'ABCDE'.
- 'ABC'.
- 'ACEG'.
- No answer right
-
- Question 11. Find the results of the following program:
#include
main ()
{
int i, ch;
for (i = 0, ch = 'A'; i <4; i ++, ch + = 2) putchar (ch);
};- 'ABCDE'.
- 'ABC'.
-
- 'ACEG'.
- No answer right
-
- Question 12. Which of the following is correct if the declaration is made:
char * ptr;
char msg [10]; char v;- ptr = v;
- ptr = msg;
- Both sentences are true
- No sentence correctly
-
- Question 13. Why are the functions scanf () and printf () called 2 import and export functions in the format:
- Because they have a format string in the parameter.
- They are often used to import and export values in a predetermined style.
- The above two functions are not two formatted export functions.
- Another reason
-
- Question 14. Which of the following functions belongs to unformatted import functions:
printf ();
scanf (); getchar (); putchar ();- 1 and 2
- 3 and 4
- 1 and 4
- 2 and 3
-
- Question 15. If strcmp (S1, S2) returns a negative integer, then:
- The content of S1 series is larger than the content of the S2 series
- Chain content S1 is smaller than the content of series S2.
- The content of chain S1 is equal to the content of chain S2.
-
Data entered is not properly formatted
-
4 ★ | 1 Vote
You should read it
- Set of multiple choice questions about programming with P10 prize
- Set of multiple choice questions about programming with P7 prize
- 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 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.
- Set of multiple choice questions about programming with P10 prizethe programming questions below will give you lots of useful information. if you are interested in learning programming languages, the series of programming language topics will be very helpful for you.
- Set of multiple choice questions for programming with P15 prizeprogramming is a discipline that attracts many young people interested. not only that job opportunities after graduation with this job are extremely open. so, if you love programming, you should not ignore the following quiz series of network administrator.
- 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, ...
- 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.
- Test on JAVA test P7a set of multiple-choice questions about java gives you useful knowledge for work and study. the set of questions below includes 10 sentences for you to experience.