C programming review Quiz

C programming review Quiz

9th Grade

12 Qs

quiz-placeholder

Similar activities

UH BAHASA ARAB KELAS 4

UH BAHASA ARAB KELAS 4

7th Grade - University

10 Qs

Kuis

Kuis

7th Grade - University

10 Qs

Communication

Communication

8th Grade - University

15 Qs

QA X - Rankings - 25 June 2022

QA X - Rankings - 25 June 2022

9th - 10th Grade

16 Qs

Violin Notes: G string

Violin Notes: G string

2nd - 9th Grade

16 Qs

Cartoons.

Cartoons.

7th - 12th Grade

10 Qs

Peygamberimizin Hayatı

Peygamberimizin Hayatı

4th Grade - University

15 Qs

Logică Diagrame Euler Bacalaureat

Logică Diagrame Euler Bacalaureat

9th - 12th Grade

14 Qs

C programming review Quiz

C programming review Quiz

Assessment

Quiz

Other

9th Grade

Medium

Created by

Saniha Jackson

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to print in C?

A. print("Hello");

B. echo("Hello");


C. printf("Hello");


D. cout << "Hello"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct header file to use printf() and scanf()?

A. <conio.h>

B. <stdio.h>


C. <string.h>


D. <stdlib.h>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return type of a function if not specified in C?

A. void


B. char


C. int


D. float

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A. value_1


B. value#

C. 1value


D. @value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop checks the condition after executing the loop body?

A. for


B. while


C. switch


D. do...while ✅

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a single character?

A. int


B. char


C. float


D. string

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after this code?

int x = 5;

x += 2;


A. 7 ✅

B.10


C. 5


D. 2

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?