basic Arrays,Strings,Looping,pointers in c program

basic Arrays,Strings,Looping,pointers in c program

1st Grade

16 Qs

quiz-placeholder

Similar activities

Nuclio : Project Renfe - ML

Nuclio : Project Renfe - ML

1st - 5th Grade

18 Qs

GARDE 1 COMPUTER

GARDE 1 COMPUTER

1st Grade

21 Qs

Python Data types & Exceptions

Python Data types & Exceptions

1st - 10th Grade

14 Qs

Review in Computer 2nd PT

Review in Computer 2nd PT

1st - 2nd Grade

15 Qs

Ôn tập_kt giữa kỳ

Ôn tập_kt giữa kỳ

1st - 5th Grade

11 Qs

Diseño de Sistemas I

Diseño de Sistemas I

1st - 12th Grade

20 Qs

PHP ม.3

PHP ม.3

1st Grade

16 Qs

FIRST GRADE

FIRST GRADE

1st Grade

18 Qs

basic Arrays,Strings,Looping,pointers in c program

basic Arrays,Strings,Looping,pointers in c program

Assessment

Quiz

Computers

1st Grade

Practice Problem

Medium

Created by

Mohanraj S

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?