MEcp1LABMT1030

MEcp1LABMT1030

University

50 Qs

quiz-placeholder

Similar activities

PROGRAMMING IN C CO-1,2

PROGRAMMING IN C CO-1,2

University

50 Qs

IPTM Midterm EXAM | Sec 2  12 Mar 2021

IPTM Midterm EXAM | Sec 2 12 Mar 2021

University

55 Qs

Quiz on C Operators

Quiz on C Operators

University

49 Qs

BSIT1104 CP PL Exam

BSIT1104 CP PL Exam

University

50 Qs

c programming

c programming

University

50 Qs

Fundamentos-Programacion

Fundamentos-Programacion

University

45 Qs

Technical MCQ

Technical MCQ

University

45 Qs

CIS 1300 FINAL EXAM

CIS 1300 FINAL EXAM

University

50 Qs

MEcp1LABMT1030

MEcp1LABMT1030

Assessment

Quiz

Computers

University

Medium

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?