
basic Arrays,Strings,Looping,pointers in c program

Quiz
•
Computers
•
1st Grade
•
Medium
Mohanraj S
Used 6+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array?
An array is a data structure that stores a collection of elements.
An array is a musical instrument used in orchestras.
An array is a type of programming language.
An array is a type of fish found in the ocean.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array in C?
array myArray[5];
int myArray;
myArray = [5];
int myArray[5];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an array?
Number of elements in the array
index of array
Number of dimensions in the array
Number of bytes used by the array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a string in C?
char str[] = "Hello";
string str = "Hello";
char* str = "Hello"; str = "Hello";
str = "Hello";
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two strings in C?
concat(string1, string2)
strconcat(string1, string2)
strcat(string1, string2)
strjoin(string1, string2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop in C executes at least once, even if the condition is false?
for loop
while loop
do-while loop
switch loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different types of loops in C?
if loop
until loop
for loop, while loop, do-while loop
repeat loop
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Typing

Quiz
•
KG - University
15 questions
CodeMonkey Final Exam G.1 2-2024

Quiz
•
1st Grade
20 questions
UTS DASPRO

Quiz
•
1st - 10th Grade
15 questions
Новый год и Adruino

Quiz
•
1st - 5th Grade
17 questions
Python Quiz

Quiz
•
1st - 5th Grade
15 questions
Intro to Small Basic

Quiz
•
KG - 7th Grade
15 questions
Заканчиваем JavaScript

Quiz
•
1st Grade
20 questions
X-Tech Riot (2)

Quiz
•
1st Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade