Test about C programming
The C language is an imperative language developed from the early 1970s by Dennis Ritchie for use in the UNIX operating system. Since then, the C language has gradually been widely developed on many different operating systems. This is one of the programming languages that programmers love to use. If you are a fan of this programming language, you can try your knowledge through our multiple-choice questions.
Question 1 : C programming language is developed by Dennish based on which programming language:
A. Language B.
B. BCPL language.
C. DEC PDP language.
D. Language B and BCPL.
Question 2 : When did the programming language given by Dennish?
A. 1967.
B. 1972.
C. 1970.
D. 1976.
Question 3 : Which programming language is the structured programming language?
A. Assembler language.
B. Languages C and Pascal.
C language Cobol.
D. a, b and c.
Question 4 : Which of the following variable names are correctly written according to the naming rules of the C programming language?
A. diem
B. 3diemtoan
C. _diemtoan
D. -diemtoan
Question 5 : A variable is called a global variable if:
A. It is declared inside all functions, except for main ().
B. It is declared outside all functions including main ().
C. It is declared outside the main () function.
D. It is declared inside the main () function.
Question 6 : A variable is called a local variable if:
A. It is declared inside functions or procedures, including main ().
B. It is declared inside functions except for main ().
C. It is declared inside the main () function.
D. It is declared outside functions including main ().
Question 7 : If x is a global variable and x is not a pointer:
A. The memory area for x may change during program execution.
B. The memory area for x is only changed by operations with x inside main ().
C. The memory area for x will be changed by operations with x in all functions, including main ().
D. The memory area reserved for x is not changed during program execution.
Question 8 : Which of the following data types is considered to be the basic data type in programming language C:
A. Double type.
B. Cursor type.
C. Match type.
D. Plate type.
Question 9 : Suppose a and b are two real numbers. Which of the following expressions does not follow the syntax of C programming language:
A. (a + = b).
B. (a * = b).
C. (a = b).
D. (a & = b).
Question 10 : Suppose a and b are two real numbers. Which of the following expressions is not allowed under the syntax of the C programming language:
A. (ab).
B. (a- = b).
C. (a >> = b).
D. (a * = b).
Question 11 : Which of the following format is used to print an integer number 16:
A. '% d'.
B. '% x'.
C. '% i'.
D. '% u'.
Question 12 : Which of the following format is used to print an integer in system 8:
A. '% ld'.
B. '% x'.
C. '% o'.
D.% u '.
Question 13 : Which of the following formats is used to print a character:
A. '% f'.
B. '% x'.
C. '% s'.
D. '% c'.
Question 14 : Which of the following format is used to print a long integer:
A. '% ld'.
B. '% x'.
C. '% d'.
D. '% o'.
Answer:
1. D2. B
3. B
4. C
5. B 6. A
7. D
8. A
9. D
10.C 11.B
12.C
13.D
14.A
See more:
- The function getc () in C
- Function strxfrm () in C
- Function fputs () in C
You should read it
- Test of programming C P5
- Test about programming C P2
- Test about programming C P3
- Set of multiple choice questions about programming with P17 prize
- Set of multiple choice questions about programming with P12
- Set of multiple choice questions for programming with P8 prizes
- Set of multiple choice questions about programming with P10 prize
- A set of multiple choice questions for programming has a P2 prize
May be interested
- eQuiz - VB.NET testing test - Part 1we will continue with the vb.net programming language test, in total there will be 15 questions with no time for answering each sentence. there will be some questions with many different answer options.
- 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.
- A set of multiple choice questions for programming has a P2 prizeprogramming is the use of programming languages and utility tools to build applications and executable programs on computers for life. in this article, invite readers to test their knowledge and multiple choice questions around this topic.
- Set of multiple choice questions on award winning P4 programmingthe set of multiple choice questions for programming has been invited to read and test by the network administrator. set of 10-question questions with 4 answers, try to see how many answers you can get.
- 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.
- eQuiz - VB.NET testing test - Part 2in the previous article, i showed you the first part of the vb.net test. and this time, we will continue with part 2 of this popular quiz series on programming languages, the whole test will have 15 questions with unlimited response time.
- JAVA test test P1java is an object-oriented and class-based programming language. to help you read more interesting knowledge about the java programming language, the network administrator will send you a very interesting multiple choice question on this topic. please try.
- Test on JAVA P10 testmultiple choice questions on java programming help you test your basic knowledge of this programming language. the set of questions includes 10 sentences to try.
- Test about programming C P2if you are a fan of this programming language, you can try your knowledge through our multiple-choice questions.
- CSS test with answer P4set of multiple choice questions about css programming language, invite readers to test their knowledge on this topic. with 10 questions including 4 answers, please choose the best answer.