
C Programming Quiz 2
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Dr. SRET
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is meaning of following declaration ? int arr[20];
A Array of Size 20
B None of these
C Integer Array of size 20
D Array of size 20 that can have integer address
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the program if the array begins 1200 in memory?
#include
1200, 1202, 1204
1200, 1200, 1200
1200, 1204, 1208
1200, 1202, 1200
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code? main() { int a=1, b=10; swap(a,b); printf("\n%d%d", a,b); } swap(int x, int y) { int temp; temp=x; x=y; y=temp; }
1 1
1 10
10 1
None of these
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following C code?
#include
hi
Compile time error
Nothing
Varies
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following C code?
#include
Compile time error
hi
Infinite hi
Nothing
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A function which calls itself is called a ___ function.
Self Function
Auto Function
Recursive Function
Static Function
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C program with pointers. int main() { int a = 20; //a memory location = 1234 printf("%d %d %d %d", a, &a, *(&a)); return 0; }
20 20 20
20 1234 1234
20 1234 20
20 20 20
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
Repaso de Python
Quiz
•
5th Grade - Professio...
12 questions
AppsLab_Q3
Quiz
•
1st Grade - Professio...
12 questions
JavaScript Quiz Day-1
Quiz
•
Professional Development
10 questions
c program -basic
Quiz
•
Professional Development
10 questions
2. Введение в язык программирования C++.
Quiz
•
Professional Development
10 questions
PreTrainingClassesObjectsMethods
Quiz
•
Professional Development
13 questions
Examen 2
Quiz
•
Professional Development
10 questions
C Language Basic Quiz
Quiz
•
7th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
