C Programming Quiz

C Programming Quiz

Professional Development

35 Qs

quiz-placeholder

Similar activities

Контрольная работа 2 курс электрики СПО

Контрольная работа 2 курс электрики СПО

Professional Development

30 Qs

9 Term 1 Unit 1 Grammar Review

9 Term 1 Unit 1 Grammar Review

Professional Development

40 Qs

OPPO RENO 5 series

OPPO RENO 5 series

Professional Development

40 Qs

Correct Usage

Correct Usage

10th Grade - Professional Development

30 Qs

INM11to1 - UNIT 1

INM11to1 - UNIT 1

Professional Development

30 Qs

BASIC 10 GUIDED PRACTICE 2

BASIC 10 GUIDED PRACTICE 2

Professional Development

30 Qs

311-350

311-350

Professional Development

40 Qs

BRPI U07

BRPI U07

Professional Development

33 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

English

Professional Development

Practice Problem

Medium

Created by

Shruthi S M

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1var

var_1

var-1

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid identifier?

_main

main_

3main

main3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a variable in C?

variable

define

int

var

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the default value of a local variable in C if not initialized?

0

Garbage value

NULL

Compilation error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to declare multiple variables of the same type?

int a, b, c;

int a = b = c = 0;

int a; b; c;

declare int a, b, c;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of int data type in most 32-bit C compilers?

2 bytes

4 bytes

8 bytes

Depends on the system

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a single character in C?

char

string

character

int

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?