MEcp1LABwth230

MEcp1LABwth230

University

50 Qs

quiz-placeholder

Similar activities

FoodBowl #8

FoodBowl #8

University

53 Qs

Elobest General Knowledge quiz

Elobest General Knowledge quiz

8th Grade - Professional Development

50 Qs

DEFINITE INTEGRALS

DEFINITE INTEGRALS

1st Grade - University

55 Qs

FHM4201_RS (16 Feb 2022@8.30AM)

FHM4201_RS (16 Feb 2022@8.30AM)

University

45 Qs

CHECC481 Organic Chemistry

CHECC481 Organic Chemistry

University

45 Qs

Airspace Part 01

Airspace Part 01

University

54 Qs

Matter Science Review

Matter Science Review

5th Grade - University

48 Qs

ENHANCEMENT PHYSICS FINAL EXAM

ENHANCEMENT PHYSICS FINAL EXAM

University

50 Qs

MEcp1LABwth230

MEcp1LABwth230

Assessment

Quiz

Science

University

Hard

Created by

Armilyn Martinez

Used 1+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is a C header file used for?

Storing data

Storing function definitions and macro declarations

Declaring main function

For file management

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is the extension for C header files?

.cpp

.hdr

.c

.h

3.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What directive is used to include a header file in a C program?

#define

#include

#ifdef

#undef

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which header file is required for using the printf() function?

stdlib.h

stdio.h

conio.h

math.h

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What does the %d format specifier represent in printf()?

Floating-point number

String

Integer

Character

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What will printf("%f", 3.14); output?

3.14

3

3.140000

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which format specifier is used to print a character in C?

%s

%d

%f

%c

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?