C Programming Quiz

C Programming Quiz

University

25 Qs

quiz-placeholder

Similar activities

Apuntadores en C

Apuntadores en C

University

20 Qs

Unit1-2nd Half

Unit1-2nd Half

University

20 Qs

OPC MCQ's

OPC MCQ's

12th Grade - University

20 Qs

OCS752_CP_WEEKLY_TEST3 (20.08.2020)

OCS752_CP_WEEKLY_TEST3 (20.08.2020)

University

20 Qs

Technical Quiz

Technical Quiz

University

20 Qs

C-Py QUIZ | ROUND 1

C-Py QUIZ | ROUND 1

University

20 Qs

Beginning C Programming

Beginning C Programming

University

23 Qs

EC8393_FDS_WEEKLY_TEST3(18.08.20)

EC8393_FDS_WEEKLY_TEST3(18.08.20)

University

20 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

University

Medium

Created by

SImranjeet Kaur

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to include a header file in C?

#include "header.h"

#include

#include header.h

Both a and b

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct file extension for a C program?

.cpp

.java

.c

.py

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? printf("Hello, World!");

Hello, World!

hello, world!

Compile-time error

Runtime error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to print output to the screen in C?

cin

printf

cout

print

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return type of the main() function in C?

void

int

float

char

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

int number;

float 1stnum;

char *;

double& num;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of the int data type in C (on most platforms)?

2 bytes

4 bytes

8 bytes

Depends on the compiler

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?