BASIC C QUIZ

BASIC C QUIZ

University

15 Qs

quiz-placeholder

Similar activities

Scratch

Scratch

KG - Professional Development

10 Qs

E-Commerce

E-Commerce

University - Professional Development

16 Qs

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

computer Networks

computer Networks

University

10 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Tes Awal Modul 5

Tes Awal Modul 5

University

10 Qs

How the Internet Works

How the Internet Works

4th Grade - University

14 Qs

BASIC C QUIZ

BASIC C QUIZ

Assessment

Quiz

Computers

University

Hard

Created by

Dr K

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____________ is a datatype format specifier used to print and scan an integer value.

%f

%d

%c

%s

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

a) int number;

b) float rate;

c) int variable_count;

d) int $main;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All keywords in C are in ____________

a) LowerCase letters

b) UpperCase letters

c) CamelCase lettersned

d) None of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is valid C expression?

a) int my_num = 100,000;

b) int my_num = 100000;

c) int my num = 1000;

d) int $my_num = 10000;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the final value of x in the following C code?

#include <stdio.h>

void main()

{

int x = 5 * 9 / 3 + 9;

}

a) 3.75

b) Depends on compiler

c) 24

d) 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declaration is not supported by C?

A.String str;

B. char *str;

C. float str = 3e2;

D. int s[20];

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many characters can a string hold when declared as follows?

char name[20]:  

18

19

20

None of the these

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?