C Programming Quiz

C Programming Quiz

University

25 Qs

quiz-placeholder

Similar activities

6INFOMAN (Recitation)

6INFOMAN (Recitation)

University - Professional Development

20 Qs

MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND

MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND

University

20 Qs

Basics of Java

Basics of Java

University - Professional Development

20 Qs

QUIZ 2

QUIZ 2

University

20 Qs

Review Quiz (Chapter 3&4)

Review Quiz (Chapter 3&4)

University

20 Qs

ĐC CNTT_Chương 1

ĐC CNTT_Chương 1

University

20 Qs

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

SImranjeet Kaur

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers