CODE 4 KITSW ROUND - 4

Quiz
•
Others
•
University
•
Medium
Siddartha vaitla
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
What is the purpose of using structures in C programming?
To perform mathematical operations
To group variables of different data types
To define functions
To print output
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the below pseudo code?
struct Student {
int roll_number;
char name[20]; };
int main() {
struct Student s;
s.roll_number = 101;
strcpy(s.name, "John Doe");
printf("%d %s", s.roll_number, s.name);
return 0; }
101
101 John Doe
Error
John Doe
3.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
How do you access a member of a structure variable in C?
Using the dot operator (.)
Using the arrow operator (->)
Using the star operator (*)
Using the hash operator (#)
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be the output of the above pseudo code?
union Data {
int num;
char letter;
};
int main() {
union Data d;
d.num = 65;
printf("%d %c", d.num, d.letter);
return 0;
}
65 A
65
Error
A
5.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
Which of the following is true about arrays of structures in C?
Arrays can store structures of the same type
Arrays can store structures of different types
Arrays can only store integers
Arrays cannot store structures
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be the output of the above pseudo code?
void swap(int *a, int *b) {
int temp = *a;
*a = temp;
*b =*a;
}
int main() {
int x = 5, y = 10;
swap(&x, &y);
printf("%d %d", x, y);
return 0;
}
10 10
5 10
5 5
10 5
7.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
Which operator is used to access the value pointed to by a pointer in C?
Hash operator (#)
Arrow operator (->)
Dot operator (.)
Star operator (*)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Kuis Kelas XII (TIK)

Quiz
•
University
20 questions
IT ERA QUIZ ACTIVITY

Quiz
•
University
20 questions
Java Тілінің Сұрақтары

Quiz
•
University
10 questions
WORKSHOP MULTIMEDIA

Quiz
•
University
10 questions
QUIZ DDTI KELOMPOK 3

Quiz
•
University
12 questions
Криволинейные интегралы: основы и задачи

Quiz
•
University
20 questions
♡ KUIS PENCERDASAN PROPO LPJ 2025 ♡

Quiz
•
University
10 questions
Anime Quiz set 4

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Others
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University