
Programming in C structures and files

Quiz
•
Other
•
University
•
Medium
Suresh Mamidisetti
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are themselves a collection of different data types?
Strings
Structures
Unions
Both Structures & Unions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Union differs from structure in the following way
All members are used at a time
Only one member can be used at a time
Union cannot have more members
Union initialized all members as structure
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator connects the structure name to its member name?
*
.
&
+
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The size of the following union, where an int occupies 4 bytes of memory is
union demo
{
float x;
int y;
char z[10];
};
8 bytes
4 bytes
10 bytes
18 bytes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a properly defined struct?
struct {int a;}
struct a_struct {int a;}
struct a_struct int a;
struct a_struct {int a;};
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which properly declares a variable of struct foo?
struct foo;
struct foo var;
foo;
int foo;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The first and second arguments of fopen() are
A character string containing the name of the file & the second argument is the mode
A character string containing the name of the user & the second argument is the mode
A character string containing file pointer & the second argument is the mode
None of the mentioned
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
TD 3 - 09/03/2023

Quiz
•
University
10 questions
Python quiz - 1

Quiz
•
University
14 questions
C PRogram

Quiz
•
University
11 questions
Scanning The Marketing Environment

Quiz
•
University
10 questions
Списки. PYTHON

Quiz
•
3rd Grade - University
10 questions
Java 1

Quiz
•
University
6 questions
Python

Quiz
•
University
10 questions
Arena Games x Tangem QUIZ

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University