
Programming in C
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Mohana KR
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is not necessary for every C program? Options: Header file, Preprocessor directive, The use of a keyword, The main function
Back
Preprocessor directive
2.
FLASHCARD QUESTION
Front
Which of the following statements is incorrect about macros?
- Macros and function calls work differently
- It is always defined in capital letters
- Macros can be undefined using #undef
- You can declare macros with arguments
Back
It is always defined in capital letters
3.
FLASHCARD QUESTION
Front
Predict the output of the following code segment: // Add stdio.h header file in below code
int main() { const int limit = 10; limit++; printf("%d", limit); return 0; }
Back
Compile error
4.
FLASHCARD QUESTION
Front
Predict the output of the following code segment: // Add stdio.h header file in below code
int main () {
char line [] = "Welcome to DataFlair tutorials on C Programming";
char string1[10], string2[10], string3[10];
sscanf (line,"%*s %*s %s %*s %*s %s %s",string1, string2, string3); printf ("%s %s %s \n", string1, string2, string3); return 0; }
Back
DataFlair C programming
5.
FLASHCARD QUESTION
Front
Which mathematical function would you use to round off 4.23 to 5?
Back
ceil(4.23)
6.
FLASHCARD QUESTION
Front
Which of the following has a global scope in the program? Options: Formal parameters, Constants, Macros, Local variables
Back
Macros
7.
FLASHCARD QUESTION
Front
Predict the output of the following code segment:
```c
// Add stdio.h header file in below code
int main()
{
int array[10] = {3, 0, 8, 1, 12, 8, 9, 2, 13, 10};
int x, y, z;
x = ++array[2];
y = array[2]++;
z = array[x++];
printf("%d %d %d", x, y, z);
return 0;
}
```
Back
10 9 10
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Permainan Bahasa (BIPA)
Flashcard
•
University
10 questions
R2.3 How Far? Le Chatelier's Principle
Flashcard
•
12th Grade
16 questions
G12- Selection and Decision Making- Flash cards
Flashcard
•
12th Grade - University
15 questions
What is the ending sound?
Flashcard
•
KG
15 questions
Calculating Force
Flashcard
•
KG
15 questions
Mutations Review
Flashcard
•
KG - University
8 questions
Norme de présentation d'untravail écrit
Flashcard
•
KG - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University