Thursday , 21 November 2024

CS410 today Solved Quizes 1 (08/05/13) Solved By Arslan Ali before Mid term

Question

We can undefine already defined preprocessor directive using

Select correct option:

#undef
#unifdef
#unenddef
None of given

Question

Static variables are made on ___________ memory location

Select correct option:

Fixed
Stack
Pointer
Variable

Question

Ptr -> age is equivalent to _______________

Select correct option:

*ptr.age
ptr.age
(ptr).age
(*ptr).age

Question

Struct Person { char name[30]; //30 bytes int age; //4 bytes float height; //4 bytes }; struct Person abc, *ptr; ptr = &abc; ptr = ptr + 1; How many bytes will skip this statement?

Select correct option:

38
40
39
Nothing will skip.

Question

Long chain of keywords in declaration can be shortened. Above line is the advantage of ______.

Select correct option:

Typedef
Struct
Union
None of given

Question

What will be the entry point to a Windows program?

Select correct option:

WinMain
Main
Java.main
System.main

Question

_________ is the handle to icon associated with Window Class.

Select correct option:

hIcon
hCursor
HINSTANCE
UINT

Question

If first non wide space character will be #, so it will be called _____.

Select correct option:

Preprocessor Directives
Preprocessor Folder
Preprocessor Director
None of Given

Question

Which languages are more close to machine language?

Select correct option:

Low Level Languages
Machine Level Language
C++
Java

 

 

1.  Ptr -> age is equivalent to _______________

Select correct option:

*ptr.age

ptr.age

(ptr).age

(*ptr).age

 

2.  ___________ is used to check the predefined identifiers.

Select correct option:

#include

 #ifdef

#def

#elif

 

3.  _________ is the handle to icon associated with Window Class.

Select correct option:

hIcon

hCursor

HINSTANCE

UINT

 

4.  Specific memory areas where parameters are copied are ______________

Select correct option:

Stacks

Arrays

Queues

Lists

 

5.  Result of _________________ of two bits is TRUE (1) if only if both are TRUE (1)

Select correct option:

OR (I)

XOR

AND (&)

NOR

 

6.  Result of _________________ of two bits is TRUE (1) if only if both are TRUE (1)

Select correct option:

OR (I)

XOR

AND (&)

NOR

 

7.  We can undefine already defined preprocessor directive using

Select correct option:

#undef

#unifdef

#unenddef

None of given


8.  We can create a window using ______________

Select correct option:

RegisterClass ( )

WNDClass

CreateWindow ( )

DestroyWinndow( )

 

 

9.  Specific memory areas where parameters are copied are ______________

Select correct option:

Stacks

Arrays

Queues

Lists

 

10.  ______________ inserts a WM_QUIT message in the program’s message queue.

Select correct option:

PostQuitMessage (0)

WM_TIMER

KillTimer ()

DispatchMessage ()

 

11. GDI is implemented through ____________________

Select correct option:

GDI.dll

Win32.dll

GDI32.dll

Kernel

 

12.  Identifier is not replaced if it appears

Select correct option:

In a comment

With in a string

As a part of a long identifier

All of given

 

13.  Struct Person { char name[30]; //30 bytes int age; //4 bytes float height; //4 bytes }; struct Person abc, *ptr; ptr = &abc; ptr = ptr + 1; How many bytes will skip this statement?

Select correct option:

38

40

39

Nothing will skip.

 

 

14.  _________ is unique identifier of the registered window class return by Registeredclass ()

Select correct option:

Handle

Cursor

Object

ATOM

 

15.  Static variables are made on ___________ memory location

Select correct option:

Fixed

Stack

Pointer

Variable

 

16.  ___________ is used to check the predefined identifiers.

Select correct option:

#include

#ifdef

#def

#elif

 

17.  Preprocessor directive starts with _________ symbol.

Select correct option:

#

&

*

%

 

18.  Name of the three dimensional array is the address of __________________

Select correct option:

First Row

First Element

First page

Last Page

 

19.  _________ is the handle to icon associated with Window Class.

Select correct option:

hIcon

hCursor

HINSTANCE

UINT

 

20.  GDI is implemented through ____________________

Select correct option:

GDI.dll

Win32.dll

GDI32.dll

Kernel

 

 

21.  Specific memory areas where parameters are copied are ______________

Select correct option:

Stacks

Arrays

Queues

Lists

 

22.   ___________ is used to check the predefined identifiers.

Select correct option:

#include

 #ifdef

#def

#elif

 

23.  There cannot be multiple _________________ messages in message queue.

Select correct option:

WM_ PAINT

WM_TIMER

WM_QUIT

WParam

 

24.  Identifier is not replaced if it appears

Select correct option:

In a comment

With in a string

As a part of a long identifier

All of given


25.   [______________ inserts a WM_QUIT message in the program’s message queue.

Select correct option:

PostQuitMessage (0)

WM_TIMER

KillTimer ()

 DispatchMessage ()

 

26.  We can create a window using ______________

Select correct option:

RegisterClass ( )

WNDClass

CreateWindow ( )

DestroyWinndow( )

 

 

 

 

 

27.   Struct Person { char name[30]; //30 bytes int age; //4 bytes float height; //4 bytes }; struct Person abc, *ptr; ptr = &abc; ptr = ptr + 1; How many bytes will skip this statement?

Select correct option:

38

40

39

Nothing will skip.

 

28.  Result of _________________ of two bits is TRUE (1) if only if both are TRUE (1)

Select correct option:

OR (I)

XOR

AND (&)

NOR

 

29.  What kind of messages can be display using messagebox function?

Select correct option:

Long messages

Short messages

Null values

None of the given

 

30.   *(a+i) can also be written as ________________

Select correct option:

a [i]

a[i+1]

*a

*a+1

31.  ______________ inserts a WM_QUIT message in the program’s message queue.

Select correct option:

PostQuitMessage (0)

WM_TIMER

KillTimer ()

DispatchMessage ()

 

32.  What will be the entry point to a Windows program?

Select correct option:

WinMain

Main

Java.main

System.main

33.  DOS boxes are also called ___________

Select correct option:

Main Window

Console Window

Dialogue Box

Arrays

 

34.  Name of the three dimensional array is the address of __________________

Select correct option:

First Row

First Element

First page

Last Page

 

35.  Long chain of keywords in declaration can be shortened. Above line is the advantage of ______.

Select correct option:

Typedef

Struct

Union

None of given

 

36.  Static variables are made on ___________ memory location

Select correct option:

Fixed

Stack

Pointer

Variable

Check Also

CS615 Today Solved Quiz 03 Fall 2013 Solved By Arslan Ali

Quiz Start Time: 08:18 PM Time Left 63 sec(s) Question # 1 of 10 ( …

One comment

  1. Share your attempted Quizs of CS410 here…..

Leave a Reply

Your email address will not be published. Required fields are marked *

*