Search Header Logo

C Programming Quiz

Authored by Awwal Mudashir

Computers

12th Grade

Used 1+ times

C Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is the correct syntax to include a header file in C?

#include "stdio.h"

include

#include<stdio.h>

nothing na

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the extension of a C program source file?

.cpp

.c

.java

.cs

3.

MULTIPLE CHOICE QUESTION

45 sec • 4 pts

Who developed the C programming language?

James Gosling

Dennis Ritchie

Bjarne Stroustrup

Ken Thompson

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which function is used to start execution in a C program?

init()

start()

main()

execute()

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which keyword is used to define a constant in C?

const

static

define

final

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is a valid variable name in C?

int

123var

_value

$number

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

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

2 bytes

4 bytes

8 bytes

1 byte

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?