c-basics-1

c-basics-1

10th Grade - Professional Development

24 Qs

quiz-placeholder

Similar activities

Evaluasi 1

Evaluasi 1

10th Grade

20 Qs

PH_1 SAP

PH_1 SAP

11th Grade

20 Qs

DSA Quest 1.0

DSA Quest 1.0

University

19 Qs

แบบทดสอบกลางภาค

แบบทดสอบกลางภาค

11th Grade

20 Qs

Quiz #1 RStudio

Quiz #1 RStudio

University

20 Qs

PSPC1

PSPC1

Professional Development

20 Qs

Remedial Informatika

Remedial Informatika

9th - 12th Grade

20 Qs

Kuis 2 DRPL

Kuis 2 DRPL

University

20 Qs

c-basics-1

c-basics-1

Assessment

Quiz

Computers

10th Grade - Professional Development

Medium

Created by

Viv viv

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

24 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

char userInput [3] ;
int difference = strcmp(userInput, "yes");


Given that userInput is set to "yes", what is the value of difference?

Enter a number below:

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do we compare two strings?

strcmp(str1, str2)

str1 = str2

str1 == str2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a declaration?

Saying what a variable or function is equal to

Saying that a variable or function exists

An error statement

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following :

int age = 12;


How do we print the variable age?

print("%d", age);

printf("%d", age);

printf("%s", age);

printf(age);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following string declaration:

char userInput[30];

How do we get input and store it in userInput?

fscanf(stdin, "%d", userInput);

fscanf(stdin, userInput);

input(stdin, userInput);

fscanf(stdin, "%s", userInput);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do end the program programmatically?


Hint: Programmatically means through the c code

exit(0);

break;

end;

exit;

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Define a boolean type variable called isUgly and set it equal to true

Create a free account and access millions of resources

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?

Discover more resources for Computers