C Programming Essentials

Download Q&A
Q. What does recursion mean in programming?
  • A. A function calling itself
  • B. A loop that iterates
  • C. A data structure
  • D. A variable declaration
Q. What is the correct syntax to include a header file in C?
  • A. #include <header.h>
  • B. #include 'header.h'
  • C. #include header.h
  • D. #include <header>
Q. What is the output of the following code: printf("%d", 10 / 3);?
  • A. 3
  • B. 3.33
  • C. 3.0
  • D. 0
Q. What is the output of the following code: printf("%d", 5 + 10 * 2);?
  • A. 25
  • B. 20
  • C. 15
  • D. 10
Q. What is the purpose of the 'return' statement in a function?
  • A. To end the program
  • B. To return a value from a function
  • C. To declare a variable
  • D. To create a loop
Q. Which of the following is a valid variable declaration in C?
  • A. int 1number;
  • B. float number1;
  • C. char number#;
  • D. double number@;
Q. Which of the following is not a valid pointer declaration in C?
  • A. int *ptr;
  • B. float ptr;
  • C. char *ptr;
  • D. double *ptr;
Showing 1 to 7 of 7 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely