C Programming Placement Prep

C Programming Placement Prep

Professional Development

15 Qs

quiz-placeholder

Similar activities

c program -basic

c program -basic

Professional Development

10 Qs

BrightChamps Technical Round - C++ language

BrightChamps Technical Round - C++ language

Professional Development

15 Qs

Functions on C

Functions on C

Professional Development

15 Qs

Java Basics

Java Basics

Professional Development

17 Qs

PSPC1

PSPC1

Professional Development

20 Qs

Menus, Dialog Boxes and Methods

Menus, Dialog Boxes and Methods

10th Grade - Professional Development

17 Qs

Anits Sample Mock Test-I

Anits Sample Mock Test-I

Professional Development

20 Qs

Quiz on switch_for_while_dowhile

Quiz on switch_for_while_dowhile

Professional Development

20 Qs

C Programming Placement Prep

C Programming Placement Prep

Assessment

Quiz

Computers

Professional Development

Hard

Created by

M N SATISH KUMAR

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between 'int' and 'float' data types in C?

int is used for characters, while float is used for integers

int and float are interchangeable data types in C

int stores floating-point numbers, while float stores integer values

The main difference between 'int' and 'float' data types in C is that 'int' stores integer values, whereas 'float' stores floating-point numbers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a constant variable in C?

constant int MY_CONSTANT = 5;

const int MY_CONSTANT = 5;

int const MY_CONSTANT = 5;

const MY_CONSTANT = 5;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of 'if' statement in C?

To execute code conditionally

To declare variables

To repeat code multiple times

To define a function

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the syntax for 'switch' statement in C?

switch(expression) { case constant1: statements1; break; case constant2: statements2; break; case constant3: statements3; break; default: defaultStatements; }

switch(expression) { case constant1: statements1; break; case constant2: statements2; break; default: defaultStatements; }

switch(expression) { case constant1: statements1; break; case constant2: statements2; break; default: defaultStatements; }

switch(expression) { case constant1: statements1; break; case constant2: statements2; break; case constant3: statements3; break; }

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the use of 'while' loop in C?

The 'while' loop in C is used to repeatedly execute a block of code as long as the specified condition is true.

The 'while' loop in C is used to terminate the program

The 'while' loop in C is used to execute code only once

The 'while' loop in C is used to skip code execution

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in C?

return_type function_name(parameters) { // function body }

return_type(parameters) { // function body } function_name

function_name(parameters) { // function body }

function_name(parameters) { // function body } return_type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is recursion in C programming?

Recursion in C programming is a technique where a function calls itself directly or indirectly.

Recursion in C programming is a data type

Recursion in C programming is a conditional statement

Recursion in C programming is a loop structure

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?