Search Header Logo

Arrays e Manipulação de Strings em C

Authored by BRUNA KWIATKOVSKI

Computers

12th Grade

Used 2+ times

Arrays e Manipulação de Strings em C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções declara corretamente um array de 10 inteiros em C?

int arr[10];

int arr;

int arr(10);

array int[10];

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a forma correta de inicializar uma string com o valor "Hello" em C?

char str[] = "Hello";

string str = "Hello";

char str = "Hello";

char str[5] = 'Hello';

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dada a declaração de array int numbers[5] = {1, 2, 3, 4, 5};, qual é o valor de numbers[2]?

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual função é usada para copiar uma string para outra em C?

strcpy()

strcat()

strcmp()

strrev()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual será a saída do seguinte código? ```c char str[20] = "C Programming"; printf("%c", str[2]); ```

C

P

r

o

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você encontra o comprimento de uma string em C?

strlen()

length()

size()

count()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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?