Arrays e Manipulação de Strings em C

Arrays e Manipulação de Strings em C

12th Grade

10 Qs

quiz-placeholder

Similar activities

JavaScript String Methods

JavaScript String Methods

12th Grade - Professional Development

15 Qs

Python Boolean and If

Python Boolean and If

9th - 12th Grade

10 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

Типы данных Python2

Типы данных Python2

6th Grade - University

12 Qs

Desafio Mobile

Desafio Mobile

9th Grade - Professional Development

6 Qs

Sains Komputer Tingkatan 5 - 2.1.3 SQL: Membina Pangkalan..

Sains Komputer Tingkatan 5 - 2.1.3 SQL: Membina Pangkalan..

10th - 12th Grade

15 Qs

Unit #3 String Objects Review

Unit #3 String Objects Review

9th - 12th Grade

14 Qs

Chap_9

Chap_9

12th Grade

11 Qs

Arrays e Manipulação de Strings em C

Arrays e Manipulação de Strings em C

Assessment

Quiz

Computers

12th Grade

Hard

Created by

BRUNA KWIATKOVSKI

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?