C Programming Basics Quiz

C Programming Basics Quiz

12th Grade

105 Qs

quiz-placeholder

Similar activities

SOAL ADMINISTRASI JARINGAN

SOAL ADMINISTRASI JARINGAN

12th Grade

108 Qs

JS- Animation Basics - Intro to Programming - KhanAcademy

JS- Animation Basics - Intro to Programming - KhanAcademy

9th - 12th Grade

100 Qs

SOAL IFRC 2024 TRY OUT 1

SOAL IFRC 2024 TRY OUT 1

12th Grade

100 Qs

Python List

Python List

8th Grade - University

100 Qs

Computer Science  Vocabulary Practice

Computer Science Vocabulary Practice

9th - 12th Grade

100 Qs

แบบทดสอบตารางคำนวณ Excel

แบบทดสอบตารางคำนวณ Excel

9th - 12th Grade

100 Qs

Công Nghệ

Công Nghệ

1st - 12th Grade

105 Qs

Informatika 7_17112022

Informatika 7_17112022

12th Grade

100 Qs

C Programming Basics Quiz

C Programming Basics Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Vihari Busa

FREE Resource

AI

Enhance your content in a minute

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

105 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the format specifier for a floating-point number in printf()?

%d

%c

%f

%s

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will happen if you input a floating-point number using %d in scanf()?

It will store the integer part.

It will cause a runtime error.

It will store the floating-point value.

It will print a warning.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements is correct?

printf() is used to read input from the user.

scanf() is used to display output.

Both printf() and scanf() work with format specifiers.

None of the above.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the typical size of an int on a 32-bit system?

2 bytes

4 bytes

8 bytes

1 byte

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a valid use of the void data type?

Declaring a variable of type void.

Declaring a function that does not return a value.

Declaring a pointer to hold integer data.

Returning multiple values from a function.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a primitive data type in C?

int

float

array

char

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which control statement is best suited for multiple choices?

if-else

switch-case

for

goto

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?