Quiz-day1-C

Quiz-day1-C

University

19 Qs

quiz-placeholder

Similar activities

Luyện Tập

Luyện Tập

University

20 Qs

VISVOTSAV 2K25 CODING ROUND 1 - II - IV

VISVOTSAV 2K25 CODING ROUND 1 - II - IV

University

20 Qs

Round 3-Tech Titans

Round 3-Tech Titans

University

20 Qs

intro to c

intro to c

University

16 Qs

Java Booleans FQ1

Java Booleans FQ1

University

20 Qs

AATLB-2020-FA2

AATLB-2020-FA2

University

14 Qs

Total Physical Response

Total Physical Response

University

20 Qs

CHFI v9 - Module 8 Investigating Web Attacks

CHFI v9 - Module 8 Investigating Web Attacks

University

20 Qs

Quiz-day1-C

Quiz-day1-C

Assessment

Quiz

Other

University

Medium

Created by

Hoa Van

Used 6+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a built-in function in C?

my_function

printf

display

show

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to print "Hello, World" in C?

printf("Hello, World!");

display("Hello, World!");

write("Hello, World!");

echo("Hello, World!");

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in C?

123_variable

my-variable

my_variable

my variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to get the remainder of a division in C?

/

//

%

**

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which keyword is used to define a conditional statement in C?

if

while

for

switch

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? #include int main() { int x = 10; if (x > 5) { printf("x is greater than 5\n"); } else { printf("x is less than or equal to 5\n"); } return 0; }

x is greater than 5

x is less than or equal to 5

The program will encounter an error.

Nothing is printed.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to exit a loop in C?

break

continue

stop

exit

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?