c-basics-1

c-basics-1

10th Grade - Professional Development

24 Qs

quiz-placeholder

Similar activities

EC8393_FDS_WEEKLY_TEST3(18.08.20)

EC8393_FDS_WEEKLY_TEST3(18.08.20)

University

20 Qs

C Code Master

C Code Master

Professional Development

20 Qs

Ôn Tập Buổi TH2 - CSLT

Ôn Tập Buổi TH2 - CSLT

University

20 Qs

EST102 : PROGRAMMING IN C TEST 1

EST102 : PROGRAMMING IN C TEST 1

University

20 Qs

Technical Quiz

Technical Quiz

University

20 Qs

TECHFEST QUALIFYING ROUND

TECHFEST QUALIFYING ROUND

University

20 Qs

FDS quiz 2

FDS quiz 2

University

20 Qs

OPC MCQ's

OPC MCQ's

12th Grade - 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

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?