C-Programming Basics

C-Programming Basics

12th Grade

16 Qs

quiz-placeholder

Similar activities

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

1.2.4. Types of Programming Language

1.2.4. Types of Programming Language

12th Grade

12 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Common Protocols

Common Protocols

10th - 12th Grade

15 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

C-Programming Basics

C-Programming Basics

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Evange Jeba

Used 937+ times

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly shows the hierarchy of arithmetic operations in C?

/ + * -

* - / +

+ - / *

/ * + -

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To print out 'a' as an integer and 'b' as a decimal, which of the following printf() statement will you use?

printf("%f %lf", a, b)

printf("%f %f", a, b)

printf("%d %f", a, b)

printf("%f %d", a, b)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not logical operator?

&

&&

||

!

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does the code block following while(x<100) execute?

When x is less than one hundred

When x is greater than one hundred

When x is equal to one hundred

while it wishes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Input/output function prototypes and macros are defined in which header file?

conio.h

stdlib.h

stdio.h

dos.h

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of this C code?

#include <stdio.h>

int main()

{

printf("Hello World! %d \n", x);

return 0;

}

Hello World! x;

Hello World! followed by a junk value

Compile time error

Hello World!

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a correct variable type?

int

real

float

char

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?