CODE 4 KITSW ROUND – 3

Quiz
•
Others
•
University
•
Hard
Siddartha vaitla
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
What does "Character Arrays" refer to in programming?
A) A collection of characters arranged in a row
B) A collection of numbers arranged in a row
C) A collection of functions arranged in a row
D) A collection of objects arranged in a row
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
int main() {
char str1[20] = "BeginnersBook";
printf("%d %d ", strnlen(str1, 30),strnlen(str1, 10));
}
30 10
10 13
13 10
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
int main() {
char s1[20] = "BeginnersBook";
char s2[20] = "BeginnersBook.COM";
printf("%d",strncmp(s1, s2, 8));
}
1
Not Equal
0
ERROR
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
int main() {
char s1[10] = "Hello";
char s2[10] = "World";
strncat(s1,s2, 3);
printf("%s", s1);
}
HelloWor
Hello World
HelWor
HelloWorld
5.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What is the output of C Program with arrays.?
int main() {
char str[25];
scanf("%s", str);
printf("%s",str);
return 0;
} //input: South Africa
South
South Africa
S
Compiler error
6.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
How are storage classes used to manage memory in C programming?
Allocate and deallocate memory dynamically
Define data types for variables
Control variable scope and lifetime
Store data temporarily during program execution
7.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
What is the Format specifier used to print a String or Character array in C Printf or Scanf function.?
%c
%C
%s
%w
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University