
C Programming Quiz
Authored by HASAN YIGIT
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to reach structure members if the variable is not a pointer?
.
:
::
/
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be a structure member?
Another structure
Array
Function
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size (in bytes) of the structure given below (assume 32-bit processor)?
struct test
{
int k;
char c;
};
3
4
5
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The expression aptr->suit is equivalent to __________.
a. aptr.suit
b. *aptr.suit
c. (*aptr).suit
d. *aptr.(suit)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After running the following code script below, what will the last value of a and b be? int a = 7; int b = 17; int *c = &b; *c = 7;
a. 7 7
b. 7 17
c. 17 7
d. 17 17
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C program with Structure pointer in C?
#include <stdio.h>
int main()
{
struct books{
int pages;
char str[4];
}*ptr;
printf("%d",sizeof(ptr));
return 0;
}
4
6
8
10
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
10 questions
Java SE: Programming I
Quiz
•
Professional Development
15 questions
CodeHS - Intro to Python - Conditionals Quiz
Quiz
•
9th Grade - Professio...
10 questions
C - Programming ( Output based - Loop )
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
10 questions
Access 01
Quiz
•
University - Professi...
13 questions
Python Module 1
Quiz
•
University - Professi...
10 questions
MGBTIK ALGORITMA PEMROGRAMAN
Quiz
•
Professional Development
10 questions
DECI - Week 5 - round
Quiz
•
Professional Development
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...