Printf ("%D", 5 + 2 3) : Strlen
Printf ("%D", 5 + 2 3) : Strlen
Printf ("%D", 5 + 2 3) : Strlen
A) Memory
B) CPU
C) Hard Drive
D) Input Device
Answer: B) CPU
2. Which of the following is a high-level programming language?
A) Assembly
B) C
C) Machine code
D) Binary
Answer: B) C
3. What is the output of the following code?
printf("%d", 5 + 2 * 3);
A) 11
B) 21
C) 15
D) 9
Answer: A) 11
12. What are the primary components of a computer system? A) Software and Applications
B) Hardware and Software
C) Data and Information
D) Networks and Protocols
16. Which statement is used to execute a block of code based on a condition in C? A) for
B) if
C) switch
D) both B and C
Answer: D) both B and C
17. A __________ computing environment allows multiple users to access resources and
applications over the internet. Answer: cloud
18. Programming languages are classified into high-level languages and __________
languages. Answer: low-level
19. The keyword used to define a constant value in C is __________. Answer: const
20. The __________ data type in C is used to represent single characters. Answer: char
14. In C, a loop that executes as long as a specified condition is true is called a __________ loop.
Answer: while
21. The __________ statement is used to skip the current iteration of a loop and continue
with the next iteration. Answer: continue
22. The __________ is the part of a function that specifies what value it will return. Answer:
return type
23. In C, arguments passed to a function are known as __________. Answer: parameters
24. The first element of an array is accessed using the index __________. Answer: 0